agentleFS
pvnarppvnarp/agent-skills/skills/security-audit/SKILL.md

security-audit

Skill1 starsChanged 9 months agoMITView on GitHub

Performs security audits against OWASP Top 10 and common vulnerability patterns. Checks authentication, authorization, input validation, secrets management, and dependency vulnerabilities. Use when reviewing security posture or before a release.

  • Reads credentials

140 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use asset-spec, create-control-manifest and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • cenconq25Skill

    asset-spec

    Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.

    Also in 5 projects that use this

  • cenconq25Skill

    create-control-manifest

    Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.

    Also in 5 projects that use this

  • +10 more from cenconq25

The file

Files
SKILL.md

Security Audit

Authentication

  • Passwords hashed with bcrypt/scrypt/argon2 (NOT MD5/SHA)
  • Session tokens are cryptographically random and sufficient length
  • Sessions expire and can be invalidated
  • Rate limiting on login attempts (prevent brute force)
  • Multi-factor authentication available for sensitive operations
  • Password reset tokens are single-use and time-limited

Authorization

  • Every endpoint checks permissions (not just the UI)
  • No IDOR: users can't access other users' resources by changing IDs
  • Role/permission checks happen server-side, never client-only
  • API keys scoped to minimum necessary permissions
  • Admin endpoints behind additional authentication

Input Validation

  • All user input validated and sanitized server-side
  • SQL queries use parameterized statements (never string concatenation)
  • HTML output escaped to prevent XSS
  • File uploads validated (type, size, content - not just extension)
  • URL redirects validated against allowlist (open redirect prevention)
  • JSON/XML parsing has depth/size limits (prevent DoS)
  • Command execution never includes user input (or uses strict allowlists)

Secrets Management

  • No secrets in source code (API keys, passwords, tokens)
  • No secrets in client-side code/bundles
  • .env and credential files in .gitignore
  • Secrets rotatable without code deploy
  • Different secrets per environment (dev/staging/prod)
  • Secrets in environment variables or secret manager (not config files)

Data Protection

  • Sensitive data encrypted at rest (PII, financial, health)
  • TLS/HTTPS enforced for all connections (HSTS headers set)
  • Logs don't contain sensitive data (passwords, tokens, PII)
  • Error messages don't expose internal details to users
  • Database backups encrypted
  • Data retention policy defined and enforced

Dependencies

  • No known CVEs in dependencies (npm audit, pip-audit, cargo audit, etc.)
  • Dependencies from trusted sources (official registries)
  • Lock files committed (prevent supply chain attacks via version drift)
  • Unused dependencies removed (smaller attack surface)

Infrastructure

  • CORS configured restrictively (not * in production)
  • Security headers set (CSP, X-Frame-Options, X-Content-Type-Options)
  • Default credentials changed on all services
  • Unnecessary ports/services not exposed
  • Error pages don't reveal stack traces or versions

Utility Scripts

  • scripts/scan_secrets.sh [dir] - Scan for hardcoded secrets (API keys, passwords, tokens, private keys, connection strings).
  • scripts/check_deps.sh [dir] - Detect project type and run the appropriate dependency audit tool (npm audit, pip-audit, cargo audit, etc.).

Output

[CRITICAL] - [finding] - [impact] - [fix]
[HIGH]     - [finding] - [impact] - [fix]
[MEDIUM]   - [finding] - [impact] - [fix]
[LOW]      - [finding] - [impact] - [fix]
[OK]       - [area checked] - looks good

End with: top 3 priorities, estimated effort for each fix.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.