falcoschaefer99-eng/michael-security-agent/security-audit
Claude Code and agent skill by falcoschaefer99-eng/michael-security-agent
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install falcoschaefer99-eng/michael-security-agent/security-auditSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as falcoschaefer99-eng/michael-security-agent/security-audit.
Security Audit
Invoked via /security-audit, /michael, or when your orchestrator dispatches for security review.
Operating Modes
Quick Audit (deploy gate, ~5 min)
Use before deploys or for rapid pass/fail assessment.
- Grep for dangerous patterns (hardcoded secrets, innerHTML, eval, raw SQL)
- Check auth on all new/changed endpoints
- Verify input validation on new user inputs
- Scan for new dependencies with known vulnerabilities
- Verdict: PASS, PASS WITH NOTES, or BLOCK
Deep Review (threat model, ~30 min)
Use after feature sprints or when new trust boundaries are introduced.
- Map all entry points and data flows
- Identify trust boundaries (client/server, server/database, service/service)
- STRIDE threat analysis on each boundary
- Run full 10-category checklist below
- Test with curl where endpoints are accessible
- Dependency/supply chain review on new packages
- Full findings report with threat model summary
Incident Response
Use when a breach is suspected or a relevant CVE is disclosed. See ~/.claude/agents/references/security-intel.md incident response playbook.
10-Category Audit Checklist
1. Path Traversal & File Access [OWASP A01] [NIST PR.AC, PR.DS]
- [ ] Every handler accepting path/file/territory/namespace params validates input
- [ ] Check for
../, null bytes (%00), URL-encoded traversal (%2e%2e%2f) - [ ] Paths/keys resolve within expected boundaries (allowlist, not blocklist)
- [ ] Validation on BOTH read AND write operations
- [ ] R2 object keys constructed from user input are validated (key traversal)
2. Authentication & Authorization [OWASP A01, A07] [NIST PR.AC, PR.AA]
- [ ] Every endpoint requires auth (no accidentally public routes)
- [ ] Auth comparison is timing-safe (
crypto.timingSafeEqual,crypto.subtle.verify, or equivalent) - [ ] API keys in
Authorization: Bearerheader, never in URL parameters - [ ] Tokens not logged or included in error responses
- [ ] Trust boundary mapping: who authenticates at each boundary?
- [ ] JWT:
algheader validated, expected algorithm enforced - [ ] OAuth:
redirect_urihardcoded, state parameter present, PKCE recommended - [ ] Role/tier values validated against allowlist at write boundary (never accept from client)
- [ ] WebSocket: auth on connection, not just first message
- [ ] IDOR prevention: verify resource ownership, not just authentication
3. Input Validation [OWASP A03] [NIST PR.DS, DE.CM]
- [ ] Request body size limits enforced (1MB default; Cloudflare Workers need explicit middleware)
- [ ] All user-supplied strings sanitized before use
- [ ] IDs/slugs validated against expected patterns
- [ ] No raw user input in file paths, shell commands, R2 keys, or query construction
- [ ] Array/collection inputs have size caps (AI tools amplify unbounded writes)
- [ ] Graph traversal: cap by max hops AND max nodes visited
- [ ] URL validation before server-side fetches (SSRF prevention — OWASP A10)
4. Error Handling & Information Disclosure [OWASP A09] [NIST DE.AE, RS.AN]
- [ ] Error responses don't leak stack traces, file paths, or internal state
- [ ] Generic error messages for auth failures (no user enumeration)
- [ ] Health endpoints verify dependencies without exposing credentials
- [ ] Webhook handlers return 200 only on success, 500 on transient failure
- [ ] Security events logged (auth failures, permission denials, input validation failures)
5. Output & Rendering [OWASP A03] [NIST PR.DS]
- [ ] Dynamic content uses
textContent, neverinnerHTMLwith user data - [ ] No raw user input reflected in HTML without escaping
- [ ] Content-Type headers set correctly on all responses
- [ ] CSP headers configured in production
6. Deployment Security [OWASP A05] [NIST PR.IP, PR.PT]
- [ ] Secrets in environment variables or secret stores, not in code or config files committed to git
- [ ] CORS configured for specific origins, not
*in production - [ ] Rate limiting on all public-facing endpoints
- [ ] Rate limiting mandatory on endpoints triggering external API calls (email, SMS, AI)
- [ ] Production deploys strip debug endpoints/logging
- [ ] Security headers present: CSP, HSTS, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy
7. Configuration File Security [OWASP A05] [NIST PR.IP, ID.AM]
- [ ]
.mcp.json— no auto-trust of MCP server configs from external sources - [ ]
.env— not committed to git,.gitignoreverified - [ ]
wrangler.toml— no secrets, only bindings and config - [ ] IDE configs (
.cursor/,.vscode/) — no credentials, no auto-execute settings - [ ]
Dockerfile/docker-compose.yml— no secrets in build args or environment - [ ] OAuth config — redirect URIs are hardcoded, not dynamic
- [ ] Agent definition files (
.md) — no executable content from untrusted sources
8. Supply Chain & Dependencies [OWASP A06, A08] [NIST ID.SC, PR.DS]
- [ ] New dependencies reviewed: correct name? Reputable publisher? Recent first-publish is a red flag.
- [ ]
package-lock.json/ lockfile committed and integrity hashes present - [ ] Check
scriptsfield in new dependency'spackage.jsonforpostinstallhooks - [ ] Run
npm auditand review HIGH/CRITICAL findings - [ ] No wildcard version ranges (
*,>=) in production dependencies - [ ] Pinned versions preferred for critical dependencies
- [ ] SBOM assessment: total dependency count, abandonment check, license audit (see
security-intel.md§ SBOM)
9. Infrastructure Security [OWASP A05] [NIST PR.PT, PR.AC]
- [ ] Cloudflare Workers:
bodyLimitmiddleware,cf-connecting-ipfor client IP - [ ] R2 buckets: private access, CORS per-bucket, keys validated
- [ ] D1: parameterized queries only, application-level authorization
- [ ] Durable Objects: auth on WebSocket connect, state size bounded, alarm payloads validated
- [ ] Tunnels: application-level auth (tunnel itself doesn't authenticate)
- [ ] DNS: no dangling CNAMEs (subdomain takeover risk)
- [ ] HTTPS enforced on all endpoints
10. Incident Response Readiness [OWASP A09] [NIST RS.RP, RC.RP]
- [ ] All secrets can be rotated without code changes (env vars / secret stores)
- [ ] Key rotation documented: what breaks, how to restore
- [ ] Logs retained long enough for forensics (Cloudflare: check analytics retention)
- [ ] Stripe webhook event IDs tracked for idempotency (prevents replay attacks)
- [ ] Recovery path exists: can the system be restored from a compromised state?
- [ ] User notification plan: GDPR 72-hour window if PII exposed
11. Agentic AI Security [OWASP Agentic AI Top 10]
For projects using AI agents, MCP servers, or tool-calling systems:
- [ ] Agent tool permissions follow least privilege (read-only agents have NO write tools)
- [ ] All tool parameters validated inside the tool, not by the calling agent
- [ ] Tool output treated as untrusted input — never influences security decisions directly
- [ ] Agent definitions loaded only from version-controlled sources
- [ ] MCP server configs NOT auto-trusted from cloned repos or external sources
- [ ] Agent actions logged with attribution (which agent, what action, when)
- [ ] Collection/batch operations have size caps (AI amplifies unbounded writes)
- [ ] No agent can modify its own definition or escalate its own permissions
- [ ] Third-party MCP servers default BLOCK until auth verified
- [ ] Prompt injection mitigations on all agent input surfaces
OpenAPI Testing Patterns
When a project contains openapi.json, openapi.yaml, swagger.json, or similar:
Systematic API Security Checklist
- [ ] Every endpoint in spec has auth declared AND enforced
- [ ] Every endpoint in code exists in spec (no shadow APIs)
- [ ] Request schemas enforce type, length, and format constraints
- [ ] Response schemas don't include internal fields (password hash, internal IDs)
- [ ] Pagination is enforced with maximum limits
- [ ] Bulk endpoints have batch size limits
- [ ] Rate limiting applied per-endpoint based on cost (expensive ops = lower limits)
- [ ] API versioning strategy doesn't expose deprecated insecure endpoints
Curl Test Patterns
Tooling (when available)
Output Format
Security Assessment: [Name] Mode: Quick Audit | Deep Review | Incident Response Verdict: PASS | PASS WITH NOTES | BLOCK
| Severity | Category | Finding | File:Line | Fix | |
|---|---|---|---|---|---|
| CRITICAL | [1-10] | [description] | [location] | [specific fix] | |
| HIGH | [1-10] | [description] | [location] | [specific fix] | |
| MEDIUM | [1-10] | [description] | [location] | [specific fix] | |
| LOW | [1-10] | [description] | [location] | [specific fix] |
- Threat model summary (deep review only)
- Attack surface map
- Supply chain notes
- Recommendations — ordered by severity, with effort estimates
Lessons From Our Bugs
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/security-audit/SKILL.md
Popularity
- Repository stars
- 11
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/falcoschaefer99-eng/michael-security-agent/security-audit)