Agent Skill
2/7/2026

security-audit

Security audit with OWASP top 10 checklist, dependency scanning, secrets detection, input validation, and injection prevention. Use when auditing code security, reviewing auth implementations, handling user input, or hardening applications.

B
bigpapicb
0GitHub Stars
1Views
npx skills add BigPapiCB/Universal-Claude-Skills

SKILL.md

Namesecurity-audit
DescriptionSecurity audit with OWASP top 10 checklist, dependency scanning, secrets detection, input validation, and injection prevention. Use when auditing code security, reviewing auth implementations, handling user input, or hardening applications.

name: security-audit description: Security audit with OWASP top 10 checklist, dependency scanning, secrets detection, input validation, and injection prevention. Use when auditing code security, reviewing auth implementations, handling user input, or hardening applications. metadata: version: "1.0" allowed-tools: Bash Grep Read

Security Audit

Decision Tree

Security concern → What type?
    ├─ Reviewing code changes → OWASP checklist below
    ├─ Handling user input → Where does it go?
    │   ├─ Database query → Parameterized queries (see references/injection-patterns.md)
    │   ├─ HTML output → Framework escaping (see references/injection-patterns.md)
    │   ├─ Shell command → Array arguments (see references/injection-patterns.md)
    │   ├─ File path → Resolve + verify within allowed dir
    │   └─ URL redirect → Allowlist or relative paths only
    ├─ Auditing dependencies → Run scanning commands below
    └─ Full security audit → All phases below

Phases

Phase 1: Scan → Phase 2: Analyze → Phase 3: Report

OWASP Top 10 Checklist

#VulnerabilityCheck
A01Broken Access ControlAuth on every endpoint, RBAC server-side, no IDOR
A02Cryptographic FailuresTLS everywhere, no MD5/SHA1 for passwords, secrets in env not code
A03InjectionParameterized queries, no string concat for SQL/shell/HTML
A04Insecure DesignRate limiting, account lockout, input size limits
A05Security MisconfigurationNo default creds, errors don't leak internals, CORS restricted
A06Vulnerable ComponentsDeps updated, no known CVEs, lockfile committed
A07Auth FailuresStrong passwords, MFA available, session timeout
A08Data IntegritySigned updates, CI/CD secured, no untrusted deserialization
A09Logging FailuresAuth events logged, no sensitive data in logs
A10SSRFURL validation, allowlists for external calls

Scanning Commands

# Dependency vulnerabilities
npm audit                          # Node
pip-audit                          # Python (pip install pip-audit)

# Secret detection
gitleaks detect --source .

# Static analysis
semgrep --config auto .            # Multi-language
bandit -r .                        # Python

Input Validation Checklist

InputValidate
StringsMax length, allowed characters, trim whitespace
NumbersMin/max range, integer vs float, NaN check
EmailFormat + domain check (not just regex)
URLsProtocol allowlist (http/https only), no internal IPs
File uploadsExtension allowlist, MIME check, size limit
JSON bodySchema validation (zod, joi, pydantic)
IDsFormat check (UUID format, positive integer)

Response Headers

Content-Security-Policy: default-src 'self'
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Strict-Transport-Security: max-age=31536000; includeSubDomains

Output Format

[CRITICAL|HIGH|MEDIUM|LOW] Category - Finding
  Location: file:line
  Impact: What an attacker could do
  Fix: Specific remediation

For injection prevention patterns see:

Skills Info
Original Name:security-auditAuthor:bigpapicb