audit-code -- Project Code Security Review
Security-focused code review of project source code. Covers OWASP-style vulnerabilities, hardcoded secrets, dangerous function calls, and patterns relevant to AI-assisted development.
What to do
Run the auditor against the target path:
python3 "$SKILL_DIR/scripts/audit_code.py" "$ARGUMENTS"
If $ARGUMENTS is empty, default to $PROJECT_ROOT.
What it checks
- Hardcoded secrets -- API keys (AWS, GitHub, Stripe, OpenAI, Slack), tokens, private keys, connection strings, passwords
- Dangerous function calls -- eval, exec, subprocess with shell=True, child_process.exec, pickle deserialization, system(), gets(), etc.
- SQL injection -- String concatenation/interpolation in SQL queries
- Dependency risks -- Known hallucinated package names, unverified installations
- Sensitive files -- .env files committed to git, credential files in repo
- File permissions -- Overly permissive chmod patterns
- Exfiltration patterns -- Base64 encode + network send, DNS exfiltration, credential file reads
Output
Structured report with severity-ranked findings, file locations, and actionable remediation steps.
When to use
- Before committing or pushing code
- When reviewing third-party contributions or PRs
- As part of a periodic security audit of the codebase
- After AI-assisted code generation to verify no secrets or vulnerabilities were introduced
Converted and distributed by TomeVault
Context snippets also available to append to your CLAUDE.md, GEMINI.md, and copilot-instructions.md — download at TomeVault
1---2name: audit-code3description: Security-focused code review for hardcoded secrets, dangerous calls, and common vulnerabilities Use when this capability is needed.4---56# audit-code -- Project Code Security Review78Security-focused code review of project source code. Covers OWASP-style vulnerabilities, hardcoded secrets, dangerous function calls, and patterns relevant to AI-assisted development.910## What to do1112Run the auditor against the target path:1314```bash15python3 "$SKILL_DIR/scripts/audit_code.py" "$ARGUMENTS"16```1718If `$ARGUMENTS` is empty, default to `$PROJECT_ROOT`.1920## What it checks2122- **Hardcoded secrets** -- API keys (AWS, GitHub, Stripe, OpenAI, Slack), tokens, private keys, connection strings, passwords23- **Dangerous function calls** -- eval, exec, subprocess with shell=True, child_process.exec, pickle deserialization, system(), gets(), etc.24- **SQL injection** -- String concatenation/interpolation in SQL queries25- **Dependency risks** -- Known hallucinated package names, unverified installations26- **Sensitive files** -- .env files committed to git, credential files in repo27- **File permissions** -- Overly permissive chmod patterns28- **Exfiltration patterns** -- Base64 encode + network send, DNS exfiltration, credential file reads2930## Output3132Structured report with severity-ranked findings, file locations, and actionable remediation steps.3334## When to use3536- Before committing or pushing code37- When reviewing third-party contributions or PRs38- As part of a periodic security audit of the codebase39- After AI-assisted code generation to verify no secrets or vulnerabilities were introduced4041---42> Converted and distributed by [TomeVault](https://tomevault.io/claim/openclaw)43> Context snippets also available to append to your CLAUDE.md, GEMINI.md, and copilot-instructions.md — [download at TomeVault](https://tomevault.io/claim/openclaw)44<!-- tomevault:4.0:skill_md:2026-04-08 -->