florianbruniaux/claude-code-ultimate-guide/security-audit
Claude Code and agent skill by florianbruniaux/claude-code-ultimate-guide
- community
Checking that the SKILL.md file is still in the repository.
Comprehensive security audit with scored posture assessment
Install
npx vskill@latest install florianbruniaux/claude-code-ultimate-guide/security-auditSKILL.md
The same SKILL.md was published earlier as florianbruniaux/claude-code-ultimate-guide/security-audit.
Security audit
Comprehensive security audit of your project AND Claude Code configuration. Analyzes secrets exposure, injection surfaces, dependencies, hook security, and produces a scored security posture assessment.
Time: 2-5 minutes | Scope: Full project + Claude Code config
For a quick config-only check, use/security-checkinstead.
Instructions
You are a senior application security engineer. Perform a 6-phase security audit and produce a scored report with prioritized remediation plan.
Pre-Step: Establish audit context
Before running any checks, use AskUserQuestion to ask:
- Environment: Is this code running in production, staging, or local development?
- Scope: Full audit or specific areas to prioritize?
This is critical for accurate findings:
- Local dev:
DEBUG=True, CORS*, HTTP without TLS,.envfiles, all normal. Do NOT flag as vulnerabilities. Mention in an "Before going to production" informational section instead. - Staging: Configs should mirror production. Flag deviations as MEDIUM.
- Production: Any misconfiguration is a real finding with full severity.
If the user doesn't answer or is unsure, default to production (conservative).
Phase 1: Configuration security (via /security-check)
Execute all checks from /security-check (the examples/skills/security-check/SKILL.md skill). This covers:
- MCP server audit against CVE database
- Skills & agents against known malicious entries
- Hook exfiltration patterns
- Memory poisoning detection
- Permissions & settings review
- Exposed secrets in Claude Code config
Record findings, as they contribute to the final score.
Phase 2: Project secrets scan
Scan the entire project for exposed secrets and credentials:
Anti-false-positive rule (MANDATORY before reporting any secret finding):
Before raising a secrets finding, run these verification commands:
Only report a secret finding if you have concrete proof from these commands. A .env file present locally is not a finding if it's in .gitignore. Never report "secrets may be exposed" based on pattern matching alone.
Scoring:
- 0 secrets found → +20 points
- 1-3 secrets → +10 points
- 4+ secrets → 0 points
- Private key committed → -10 points
Phase 3: Prompt injection surface
Analyze markdown and config files for injection vectors:
Scoring:
- 0 injection vectors → +15 points
- 1-2 vectors (likely false positives) → +10 points
- 3+ vectors → +5 points
- Confirmed injection in CLAUDE.md → 0 points
Phase 4: Dependency audit
Run the appropriate package audit for the project:
If no package manager detected, note it and skip (no penalty).
Scoring:
- 0 vulnerabilities → +20 points
- 0 critical + 0 high → +15 points
- 1-3 high → +10 points
- Any critical → +5 points
- 10+ high or 3+ critical → 0 points
Phase 5: Hook security assessment
Verify security hooks from guide/security/security-hardening.md are properly installed:
Scoring:
- PreToolUse security hooks declared in settings → +10 points
- PostToolUse output scanner declared in settings → +5 points
- Prompt injection detector hook → +5 points
- No hooks at all → 0 points
Phase 6: Posture score & report
Calculate total score and generate report.
Scoring Breakdown:
| Category | Max Points | Source | |
|---|---|---|---|
| Config Security (Phase 1) | 30 | /security-check results | |
| Secrets Scan (Phase 2) | 20 | Secrets found in project | |
| Injection Surface (Phase 3) | 15 | Injection vectors found | |
| Dependencies (Phase 4) | 20 | Vulnerability audit | |
| Hook Security (Phase 5) | 15 | Security hooks installed | |
| Total | 100 |
Phase 1 scoring detail:
- 0 CRITICAL findings → +15 points
- 0 HIGH findings → +10 points
- 0 MEDIUM findings → +5 points
- Any CRITICAL → 0 for that sub-score
Grade Scale:
| Score | Grade | Meaning | |
|---|---|---|---|
| 90-100 | A | Excellent: production-ready security posture | |
| 75-89 | B | Good: minor improvements recommended | |
| 60-74 | C | Acceptable: address HIGH issues before production | |
| 40-59 | D | Poor: significant security gaps | |
| 0-39 | F | Critical: do not deploy, address CRITICAL issues immediately |
Output format
$ARGUMENTS
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingexamples/skills/security-audit/SKILL.md
Popularity
- Repository stars
- 6,277
- Repository forks
- 817
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/florianbruniaux/claude-code-ultimate-guide/security-audit)