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.

hardness1020 9a386c9 2 files · 2.9 KB Updated

File contents

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

# 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.

hardness1020/leeway/tree/main/.leeway/skills/security-audit commit 9a386c9b8c

Frequently asked questions

npx skillmds@latest add hardness1020/security-audit