skills/security-scan/SKILL.md
Scan the codebase for security vulnerabilities based on the OWASP Top 10. Use when the user asks to audit security, find vulnerabilities, check for security issues, or says "security scan", "audit this", "find security bugs".
npx skillsauth add codewithbehnam/cc-docs security-scanInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
git rev-parse --show-toplevel 2>/dev/null || pwdfind . -type f \( -name "*.py" -o -name "*.ts" -o -name "*.js" -o -name "*.go" -o -name "*.rb" -o -name "*.java" \) | sed 's/.*\.//' | sort | uniq -c | sort -rn | head -10Perform a security audit of the codebase (or the path specified in $ARGUMENTS) covering the OWASP Top 10:
A01 - Broken Access Control: Look for missing authorization checks, IDOR patterns, direct object references, insecure direct database access without ownership checks.
A02 - Cryptographic Failures: Find hardcoded secrets, API keys, passwords in source code. Check for use of weak algorithms (MD5, SHA1 for passwords, ECB mode). Look for unencrypted sensitive data in logs or responses.
A03 - Injection: Search for SQL queries built with string concatenation, unsanitized shell commands, template injection, LDAP injection, and XSS sinks.
A04 - Insecure Design: Identify missing rate limiting on auth endpoints, no CSRF protection on state-changing forms, missing input length limits.
A05 - Security Misconfiguration: Check for debug mode enabled, verbose error messages exposing internals, permissive CORS headers, default credentials in config files.
A06 - Vulnerable Components: Note any obviously outdated dependency versions or known-vulnerable packages in package.json, requirements.txt, go.mod, or Gemfile.
A07 - Authentication Failures: Look for weak session management, missing account lockout, insecure password reset flows, JWT with weak or no signature verification.
A08 - Software Integrity Failures: Check for use of untrusted CDN resources without integrity hashes, insecure deserialization of user-supplied data.
A09 - Logging Failures: Verify that authentication events are logged, that logs do not contain passwords or tokens, and that errors are logged without exposing stack traces to users.
A10 - SSRF: Find URL parameters or user-controlled values passed to HTTP clients, file readers, or DNS lookups without validation.
For each finding, read the surrounding code to confirm it is a real issue, not a false positive.
Total findings by severity. One-paragraph risk assessment.
For each vulnerability:
path/to/file.py:42List categories where no issues were detected (to show coverage).
Note any areas not checked (e.g., third-party libraries, infrastructure config not present in the repo).
tools
macOS GUI automation CLI. Use steer to see the screen, click elements, type text, send hotkeys, scroll, drag, manage windows and apps, run OCR on Electron apps, and wait for UI conditions.
testing
Ship workflow: merge main, run tests, review diff, bump VERSION, update CHANGELOG, commit, push, create PR.
testing
Import cookies from your real browser (Comet, Chrome, Arc, Brave, Edge) into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages.
development
Weekly engineering retrospective. Analyzes commit history, work patterns, and code quality metrics with persistent history and trend tracking. Team-aware: breaks down per-person contributions with praise and growth areas.