Professional white-box code security audit skill with 55+ vulnerability types, dual-track audit model, and multi-agent deep analysis.
$ npx -y skills add 3stonebrother/code-audit --agent claude-code
Run the curl in your terminal, the rest in Claude Code.
Repo: 3stonebrother/code-audit
What's inside
Professional white-box code security audit skill with 55+ vulnerability types, dual-track audit model, and multi-agent deep analysis.
Code Audit is a professional security audit skill for Claude Code. It performs static white-box analysis to systematically discover and verify security vulnerabilities in source code.
# Clone to Claude Code skills directory
cp -r code-audit ~/.claude/skills/
# Or clone from repository
cd ~/.claude/skills
git clone <repository-url> code-audit
The skill activates automatically when you request security audits in Claude Code.
"Audit this project"
"Check code security"
"Find security vulnerabilities"
"/audit" or "/code-audit"
| Mode | Use Case | Scope |
|---|---|---|
| Quick | CI/CD, small projects | High-risk vulns, secrets, dependency CVEs |
| Standard | Regular audits | OWASP Top 10, auth, crypto, 1-2 rounds |
| Deep | Critical projects, pentests | Full coverage, attack chains, business logic, 2-3 rounds |
User: /code-audit deep /path/to/project
Claude: [MODE] deep
[RECON] 874 files, Spring Boot 1.5 + Shiro 1.6 + JPA + Freemarker
[PLAN] 5 Agents, D1-D10 coverage, estimated 125 turns
... (user confirms) ...
[REPORT] 10 Critical, 14 High, 12 Medium, 4 Low
Different vulnerability types require fundamentally different detection strategies:
| Track | Dimensions | Method | What It Finds |
|---|---|---|---|
| Sink-driven | D1 (Injection), D4 (Deserialization), D5 (File Ops), D6 (SSRF) | Grep dangerous patterns -> trace data flow -> verify no defense | Dangerous code that exists |
| Control-driven | D3 (Authorization), D9 (Business Logic) | Enumerate endpoints -> verify security controls exist -> missing = vuln | Security controls that are absent |
| Config-driven | D2 (Auth), D7 (Crypto), D8 (Config), D10 (Supply Chain) | Search configs -> compare against baseline | Misconfigurations |
| # | Dimension | Coverage |
|---|---|---|
| D1 | Injection | SQL/Cmd/LDAP/SSTI/SpEL/JNDI |
| D2 | Authentication | Token/Session/JWT/Filter chain |
| D3 | Authorization | CRUD permission consistency, IDOR |
| D4 | Deserialization | Java/Python/PHP gadget chains |
| D5 | File Operations | Upload/download/path traversal |
| D6 | SSRF | URL injection, protocol restriction |
| D7 | Cryptography | Key management, cipher modes, KDF |
| D8 | Configuration | Actuator, CORS, error exposure |
| D9 | Business Logic | Race conditions, mass assignment, state machine, multi-tenant |
| D10 | Supply Chain | Dependency CVEs, version checks |
Phase 1: Reconnaissance
-> Tech stack identification
-> Attack surface mapping (5-layer deduction)
-> Endpoint-Permission Matrix generation
-> Agent allocation
Phase 2: Parallel Agent Execution (R1)
-> Agent 1: Injection (D1) [sink-driven]
-> Agent 2: Auth + AuthZ + Business Logic (D2+D3+D9) [control-driven]
-> Agent 3: File + SSRF (D5+D6) [sink-driven]
-> Agent 4: Deserialization (D4) [sink-driven]
-> Agent 5: Config + Crypto + Supply Chain (D7+D8+D10) [config-driven]
Phase 3: Coverage Evaluation
-> Per-track coverage metrics (fanout rate / endpoint audit rate)
-> Gap identification -> R2 supplemental agents if needed
Phase 4: Report Generation
-> Severity calibration (decision tree)
-> Cross-agent deduplication
-> Attack chain construction
code-audit/
βββ SKILL.md # Skill entry point (frontmatter + execution controller)
βββ agent.md # Agent workflow (state machine + dual-track model)
βββ README.md # Documentation (English)
βββ README_CN.md # Documentation (Chinese)
βββ references/
βββ core/ (16) # Core methodology
β βββ phase2_deep_methodology.md # Dual-track audit methodology
β βββ taint_analysis.md # Data flow tracking
β βββ anti_hallucination.md # False positive prevention
β βββ ...
βββ checklists/ (11) # D1-D10 coverage matrix + 9 language checklists
βββ languages/ (18) # Language vulnerability patterns
βββ security/ (21) # Security domain modules
βββ frameworks/ (14) # Framework-specific modules
βββ adapters/ (5) # Language adapters (YAML)
βββ wooyun/ (9) # WooYun real-world case library
βββ cases/ (1) # Real vulnerability cases
βββ reporting/ (1) # Report templates
Every finding must be based on actual code read via tools:
Java, Python, Go, PHP, JavaScript/TypeScript, C/C++, C#/.NET, Ruby, Rust
Spring Boot, Django, Flask, FastAPI, Express, Koa, Gin, Laravel, Rails, ASP.NET Core, NestJS, Fastify, Rust Web (Actix/Axum)
API Security, LLM/AI Security, Serverless, Cryptography, Race Conditions, OAuth/OIDC/SAML, WebSocket/gRPC, HTTP Smuggling, Supply Chain/CI-CD
Contributions welcome! To add support for a new language or framework:
references/languages/{language}.md or references/frameworks/{framework}.mdagent.md tech stack routing table if neededJoin our WeChat group for discussion and support:
MIT License
This skill is intended for authorized security testing only. Users must:
Unauthorized security testing of systems you do not own may be illegal.
agent.md
image/
wechat.png
README_CN.md
README.md
references/
adapters/
go.yaml
java.yaml
javascript.yaml
php.yaml
python.yaml
cases/
real_world_vulns.md
checklists/
c_cpp.md
coverage_matrix.md
dotnet.md
go.md
java.md
javascript.md
php.md
python.md
ruby.md
rust.md
universal.md
core/
anti_hallucination.md
attack_path_priority.md
audit.sh
benchmark_methodology.md
bypass_strategies.md
capability_baseline.md
comprehensive_audit_methodology.md
data_flow_methodology.md
docker_verification.md
dynamic_code_audit.md
external_tools_guide.md
false_positive_filter.md
phase2_deep_methodology.md
poc_generation.md
security_controls_engine.py
security_controls_matrix.yaml
security_controls_methodology.md
security_indicators.md
semantic_search_guide.md
sensitive_operations_matrix.md
sinks_sources.md
systematic_reflection.md
taint_analysis.md
verification_methodology.md
version_boundaries.md
frameworks/
django.md
dotnet.md
express.md
fastapi.md
flask.md
gin.md
java_web_framework.md
koa.md
laravel.md
mybatis_security.md
nest_fastify.md
rails.md
rust_web.md
spring.md
languages/
c_cpp.md
dotnet.md
go_security.md
go.md
java_deserialization.md
java_fastjson.md
java_gadget_chains.md
java_jndi_injection.md
java_practical.md
java_script_engines.md
java_xxe.md
java.md
javascript.md
php_deserialization.md
php.md
python_deserialization.md
python.md
ruby.md
rust.md
reporting/
attacker_perspective.md
security/
api_gateway_proxy.md
api_security.md
authentication_authorization.md
business_logic.md
cache_host_header.md
cross_service_trust.md
cryptography.md
dependencies.md
file_operations.md
frontend_frameworks.md
graphql.md
http_smuggling.md
infra_supply_chain.md
input_validation.md
llm_security.md
logging_security.md
memory_native.md
message_queue_async.md
mobile_security.md
oauth_oidc_saml.md
race_conditions.md
realtime_protocols.md
scheduled_tasks.md
serverless.md
wooyun/
command-execution.md
file-traversal.md
file-upload.md
INDEX.md
info-disclosure.md
logic-flaws.md
sql-injection.md
unauthorized-access.md
xss.md
SKILL.mdFAQ
code-audit is a Claude Code plugin with 1 hand-picked skill for security work, indexed on Flowy. Install it with the command on its page. It includes code-audit. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.