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
1---
2name: audit-code
3description: Security-focused code review for hardcoded secrets, dangerous calls, and common vulnerabilities
4disable-model-invocation: true
5allowed-tools: Read, Glob, Grep, Bash
6context: fork
7metadata:
8 source: https://skillmd.com/skills/modbender/audit-code
9---
10
11# audit-code -- Project Code Security Review
12
13Security-focused code review of project source code. Covers OWASP-style vulnerabilities, hardcoded secrets, dangerous function calls, and patterns relevant to AI-assisted development.
14
15## What to do
16
17Run the auditor against the target path:
18
19```bash
20python3 "$SKILL_DIR/scripts/audit_code.py" "$ARGUMENTS"
21```
22
23If `$ARGUMENTS` is empty, default to `$PROJECT_ROOT`.
24
25## What it checks
26
27- **Hardcoded secrets** -- API keys (AWS, GitHub, Stripe, OpenAI, Slack), tokens, private keys, connection strings, passwords
28- **Dangerous function calls** -- eval, exec, subprocess with shell=True, child_process.exec, pickle deserialization, system(), gets(), etc.
29- **SQL injection** -- String concatenation/interpolation in SQL queries
30- **Dependency risks** -- Known hallucinated package names, unverified installations
31- **Sensitive files** -- .env files committed to git, credential files in repo
32- **File permissions** -- Overly permissive chmod patterns
33- **Exfiltration patterns** -- Base64 encode + network send, DNS exfiltration, credential file reads
34
35## Output
36
37Structured report with severity-ranked findings, file locations, and actionable remediation steps.
38
39## When to use
40
41- Before committing or pushing code
42- When reviewing third-party contributions or PRs
43- As part of a periodic security audit of the codebase
44- After AI-assisted code generation to verify no secrets or vulnerabilities were introduced