# security-auditor

security-auditor finds exploitable vulnerabilities in auth, untrusted-input handling, secrets, and dependencies. Triggered after changes to auth, API endpoints, or file operations.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 276 repo stars
- Author: Samarth Gupta
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/gupsammy/Claudest/tree/HEAD/plugins/claude-coding/agents/security-auditor.md
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/samarth-gupta-security-auditor

## What it does

The subagent operates in two modes: quick advice during development and thorough audit of finished code. It checks for injection flaws (SQL, command, path), missing authorization, credential leaks, and outdated libraries with known CVEs. It traces how user input reaches dangerous operations by reading source files — it does not run exploits or execute project code.

It uses Read, Grep, Glob for static analysis and Bash only for `git diff`, `find`, and read‑only scanners like `npm audit`. If dependencies require FFmpeg, Python, or external libraries for auditing, the subagent will not work without them. WebSearch is used to verify current CVE data when a suspect package version is found.

In audit mode, it starts by mapping the attack surface: entry points, trust boundaries, secret storage. Then it traces the path from untrusted source to dangerous sink and provides `path:line` references for each finding.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add gupsammy/Claudest
```
In the agent chat (not a shell):
```text
/plugin install claude-coding@Claudest
```

2. **Manually: put the files in place**
- File: `.claude/agents/security-auditor.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/security-auditor.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/security-auditor.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/gupsammy/Claudest/tree/HEAD/plugins/claude-coding/agents/security-auditor.md

## When to use it
- detect SQL injection and command injection in API handlers
- verify authorization before object access (IDOR)
- find hardcoded keys and tokens in code
- identify outdated dependencies with known CVEs
- trace user input path to dangerous operations

## Example prompts
- Check this endpoint for SQL injection
- Run a security audit after changes to `auth.js`
- Is the `fileUpload` handling in `routes/api.ts` safe?

## Similar
- [security_auditor](https://affpapa.org/en/nevibecode/agents/agenticorglab-security-auditor.md) — subagent · ★ 776 repo stars
- [security-engineer](https://affpapa.org/en/nevibecode/agents/josstei-security-engineer.md) — subagent · ★ 489 repo stars
- [dependencies-audit](https://affpapa.org/en/nevibecode/skills/dependencies-audit.md) — skill · 1900 installs
- [maven-dependency-audit](https://affpapa.org/en/nevibecode/skills/maven-dependency-audit.md) — skill · 322 installs
- [dependency-auditor](https://affpapa.org/en/nevibecode/skills/onewave-ai-dependency-auditor.md) — skill · 323 installs
- [security-review](https://affpapa.org/en/nevibecode/skills/factory-ai-security-review.md) — skill · 168 installs

## Other versions with the same name
- [security-auditor · anthropics](https://affpapa.org/en/nevibecode/agents/security-auditor.md) — 10718 installs
- [security-auditor · voltagent](https://affpapa.org/en/nevibecode/agents/voltagent-community-security-auditor.md) — 10718 installs
- [security-auditor · voltagent](https://affpapa.org/en/nevibecode/agents/voltagent-security-auditor.md) — ★ 6505 repo stars
- [security-auditor · rohitg00](https://affpapa.org/en/nevibecode/agents/rohitg00-security-auditor.md) — ★ 2858 repo stars
- [security-auditor · cloudai-x](https://affpapa.org/en/nevibecode/agents/cloudai-x-security-auditor.md) — ★ 1424 repo stars

From the same set: [gupsammy/claudest](https://affpapa.org/en/nevibecode/by/gupsammy/claudest.md) — 47 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
