# Security Audit

> Security vulnerability audit — check for OWASP top risks, hardcoded secrets, injection points, and dependency CVEs. Use when auditing code for security vulnerabilities, reviewing authentication/authorization logic, or checking for secrets leakage before merge.

- Skill: `hardness1020/security-audit` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add hardness1020/security-audit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hardness1020/security-audit/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: hardness1020 (https://skillmd.com/u/hardness1020)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/hardness1020/security-audit

---


# Security Audit

## Workflow

1. **Search for secrets** — grep for API keys, tokens, passwords in source
2. **Check injection points** — find user input flowing into commands, queries, HTML
3. **Review auth & crypto** — verify password hashing, session management, TLS
4. **Check dependencies** — look for known CVEs, unpinned versions
5. **Write findings** — categorize by severity, cite evidence

## Quick Checks

```bash
# Hardcoded secrets
grep -rn "password\|secret\|api_key\|token" --include="*.py" --include="*.ts" .

# Dangerous functions
grep -rn "eval\|exec\|os.system\|subprocess.call" --include="*.py" .

# SQL injection risk
grep -rn "f\".*SELECT\|f\".*INSERT\|f\".*UPDATE" --include="*.py" .
```

## Rules

- **Critical findings block merge** — hardcoded secrets, RCE, SQL injection
- Cite file:line for every finding
- Flag false positives — better safe than sorry
- Check test files too — test secrets sometimes leak to production

## Output Format

Structure findings by severity:
- **Critical**: Must fix before merge
- **High**: Should fix
- **Medium**: Recommend fixing

For the full OWASP-based checklist, read [references/owasp.md](references/owasp.md).

