# security-audit

The security-audit command for Claude Code and Codex inspects a project alongside Claude Code settings. It checks for exposed secrets, dependency flaws, injection risks, and hook issues, then returns a score and remediation plan.

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 6529 repo stars
- Author: FlorianBruniaux
- License: CC-BY-SA-4.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/FlorianBruniaux/claude-code-ultimate-guide/tree/HEAD/.claude/commands/security-audit.md
- Updated: 2026-11-14
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/florianbruniaux-security-audit

## What it does

The command reviews a project and its Claude Code configuration across six areas, then creates a scored report out of 100 with fixes ranked by priority. It searches for exposed credentials and prompt-injection signals, audits dependencies, and checks security hooks and settings. The configuration review runs `/security-check`.

Dependency checks use `npm audit`, `pip-audit`, `cargo audit`, or `govulncheck`, depending on the project files. If no package manager is detected, that phase is skipped without a score penalty. The report gives results for each phase and assigns a grade from A to F.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/security-audit.md` — Call it with /security-audit. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/security-audit.md` — Call it with /prompts:security-audit. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/security-audit.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/security-audit.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/FlorianBruniaux/claude-code-ultimate-guide/tree/HEAD/.claude/commands/security-audit.md

## When to use it
- find credentials committed in project files
- inspect Markdown and config files for injection signals
- audit dependencies with the matching package tool
- review Claude Code security hooks and settings

## Example prompts
- Run a full security audit of this project and its Claude Code settings.
- Check dependencies, exposed credentials, and hooks, then rank the fixes.
- Assess prompt-injection risks and give the project a security score.

## Similar
- [mcp-security-audit](https://affpapa.org/en/nevibecode/skills/mcp-security-audit.md) — skill · 1100 installs
- [security](https://affpapa.org/en/nevibecode/skills/boshu2-security.md) — skill · 1400 installs
- [security-reviewer](https://affpapa.org/en/nevibecode/agents/sangrokjung-security-reviewer.md) — subagent · ★ 880 repo stars
- [dependency-audit](https://affpapa.org/en/nevibecode/commands/dependency-audit.md) — command · 658 installs
- [vibe-security](https://affpapa.org/en/nevibecode/skills/vibe-security.md) — skill · 3900 installs
- [security-auditor](https://affpapa.org/en/nevibecode/skills/security-auditor.md) — skill · 1100 installs

## Other versions with the same name
- [security-audit · davila7](https://affpapa.org/en/nevibecode/commands/security-audit.md) — 1485 installs
- [security-audit · centminmod](https://affpapa.org/en/nevibecode/commands/centminmod-security-audit.md) — ★ 2744 repo stars

From the same set: [florianbruniaux/claude-code-ultimate-guide](https://affpapa.org/en/nevibecode/by/florianbruniaux/claude-code-ultimate-guide.md) — 45 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
