# Security agent

> Security agent is an open-source agent skill for security. Audits a codebase for security flaws and OWASP issues, reporting findings without fixing. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ivy00johns/Skill-Madness/tree/main/skills/roles/security-agent
- **Repository:** https://github.com/ivy00johns/skill-madness
- **GitHub stars:** 12
- **License:** MIT
- **Skill name:** security-agent
- **Collection:** https://github.com/ivy00johns/Skill-Madness
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill turns the agent into a read-only security auditor for a codebase. It is meant for an orchestrator dispatching it as a role in a multi-agent build, or for a user who explicitly asks for a solo security review. The agent checks dependencies with the project's audit tools, scans source for hardcoded secrets, walks through an OWASP Top 10 checklist, and reviews authentication details such as password hashing, token lifetimes, rate limiting and CSRF protection.

The workflow starts by reading API contracts and data-layer notes to understand auth headers, error envelopes and sensitive data handling. Findings are then written into a structured report with severity ratings, file locations, impact and remediation advice. The skill explicitly forbids editing production code; it only writes to its own security report output.

The skill expects a project with its own security tooling available, such as npm audit, pip-audit or govulncheck depending on the stack, and access to the repository files. It also describes an optional pre-scan script that exists only in the Skill-Madness repository root and is not bundled with the skill folder.

## When your agent uses it

> Audit codebases for security vulnerabilities, auth defects and OWASP compliance in native orchestrator dispatch or explicitly requested solo read-only security review. Report findings, never fix production code; load it when the orchestrator assigns this role or the user asks for it.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/roles/security-agent)
- [Asks for: Read, Write, Grep, Glob, Bash](https://github.com/ivy00johns/Skill-Madness/blob/HEAD/skills/roles/security-agent/SKILL.md)
- [License: MIT](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/roles/security-agent)

## Features

- **Dependency vulnerability audit:** Runs stack-specific audit tools such as npm audit, pip-audit or govulncheck and flags serious issues in direct dependencies.
- **Secret scanning:** Looks for committed env files, hardcoded connection strings, API keys and private keys in the source tree.
- **OWASP Top 10 review:** Walks through injection, broken authentication, data exposure, access control and misconfiguration checks.
- **Auth implementation review:** Checks password hashing, token expiry, session handling, auth rate limits and CSRF protection.
- **Structured findings report:** Produces a severity-rated report with file paths, impact and remediation guidance for every finding.
- **Read-only enforcement:** Keeps production code untouched, so the audit only reports problems for other agents or developers to fix.

## Good for

- Audit this repository for security vulnerabilities before release
- Check our dependencies for known critical vulnerabilities
- Review our login and token handling for authentication defects
- Scan the codebase for hardcoded secrets and API keys
- Produce an OWASP compliance report with severity ratings

## Install

### Claude Code

This skill ships in the `skill-madness` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ivy00johns/Skill-Madness
/plugin install skill-madness@skill-madness
```

Or copy only this skill to `~/.claude/skills/security-agent`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/security-agent &&
cp -R "$tmp/skills/roles/security-agent" ~/.claude/skills/security-agent &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/security-agent` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/security-agent` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/security-agent &&
cp -R "$tmp/skills/roles/security-agent" ~/.agents/skills/security-agent &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/security-agent` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/security-agent` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/security-agent &&
cp -R "$tmp/skills/roles/security-agent" ~/.cursor/skills/security-agent &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/security-agent` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ivy00johns/Skill-Madness.git --path skills/roles/security-agent
```

Or copy the folder to `~/.gemini/skills/security-agent` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/security-agent`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/security-agent &&
cp -R "$tmp/skills/roles/security-agent" ~/.copilot/skills/security-agent &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/security-agent` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git
```

Then copy `Skill-Madness/skills/roles/security-agent` into your agent's skills folder as `security-agent`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Security agent fix security issues it finds?

No. The skill is explicitly read-only for production code and only reports findings with remediation suggestions.

### When does Security agent load?

It is designed for an orchestrator to assign it as the security role, or when a user explicitly asks for a security review. Native activation is set to manual invocation.

### What tools does Security agent need?

It lists Read, Write, Grep, Glob and Bash as allowed tools, and expects project security tools such as npm audit, pip-audit or govulncheck to be available.

### How do I install Security agent in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/security-agent to use it in all your projects, or to .claude/skills/security-agent in one project. Or install the skill-madness plugin, which includes it: /plugin marketplace add ivy00johns/Skill-Madness, then /plugin install skill-madness@skill-madness.

### Does Security agent run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Security agent?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Security agent?

The closest alternatives to Security agent are Security review, Security review edho ferdian, Source code scanning, Security review and Security review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Security review](https://ai-powered.com/skills/security-review): Security review is an open-source agent skill for security.
- [Security review edho ferdian](https://ai-powered.com/skills/security-review-edho-ferdian): Security review edho ferdian is an open-source agent skill for security.
- [Source code scanning](https://ai-powered.com/skills/source-code-scanning): Source code scanning is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-nabwinsaud): Security review is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-getsentry): Security review is an open-source agent skill for security.
- [Security audit](https://ai-powered.com/skills/security-audit-pstuart): Security audit is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-sorah): Security is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-ramboz): Security review is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/security-agent
