agentleFS
0x-Professor0x-Professor/Agent-Skills-Hub/skills/web-security-auditor/SKILL.md

web-security-auditor

Skill11 starsChanged 9 months agoApache-2.0View on GitHub

Aggregate SAST, SCA, DAST, secrets, API, frontend, and backend security checks into one report.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 12 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run Semgrep for injection, secrets, crypto misuse, and prototype pollution.

    line 28
  2. Very specific:

    Run ESLint security plugins (eslint-plugin-security, eslint-plugin-no-unsanitized).

    line 29
  3. Distinctive:

    Run Bandit for Python codebases.

    line 30
  4. Very specific:

    Run npm audit, pip-audit, or cargo audit by stack.

    line 34
  5. Distinctive:

    Run OWASP ZAP automation/headless scans.

    line 40
  6. Distinctive:

    Run Gitleaks across repository and history.

    line 46
  7. Distinctive:

    Verify CSP (no unsafe inline/eval in production policy).

    line 51
  8. Very specific:

    Verify clickjacking protection (X-Frame-Options or frame-ancestors).

    line 52
  9. Very specific:

    Verify no sensitive data in localStorage and no exposed production source maps.

    line 55
  10. Very specific:

    Check for XSS hazards (dangerouslySetInnerHTML, innerHTML, eval).

    line 56
  11. Distinctive:

    Verify parameterized DB access / ORM usage.

    line 60
  12. Distinctive:

    Verify strong JWT secret management and token expiry.

    line 61
  13. Distinctive:

    Verify rate limiting on auth/sensitive routes.

    line 62
  14. Distinctive:

    Verify strict CORS origins.

    line 63
  15. Distinctive:

    Verify input validation on all endpoints.

    line 64
  16. Distinctive:

    Verify secure password hashing (bcrypt/argon2).

    line 65
  17. Distinctive:

    Check IDOR controls on user-owned resources.

    line 66

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Web Security Auditor

Objective

Perform a comprehensive web application security review aligned to OWASP Top 10 and practical production hardening controls.

Required Workflow

A. Static Analysis (SAST)

  • Run Semgrep for injection, secrets, crypto misuse, and prototype pollution.
  • Run ESLint security plugins (eslint-plugin-security, eslint-plugin-no-unsanitized).
  • Run Bandit for Python codebases.

B. Dependency Scanning (SCA)

  • Run npm audit, pip-audit, or cargo audit by stack.
  • Include Aikido Security or Snyk where available.
  • Include Vulert for no-install open-source dependency checks.

C. Dynamic Analysis (DAST)

  • Run OWASP ZAP automation/headless scans.
  • Optionally run StackHawk.
  • Optionally run Nuclei templates for quick vulnerability sweeps.

D. Secret Detection

  • Run Gitleaks across repository and history.
  • Run TruffleHog scan.

E. Frontend Security Checks

  • Verify CSP (no unsafe inline/eval in production policy).
  • Verify clickjacking protection (X-Frame-Options or frame-ancestors).
  • Verify HSTS.
  • Verify X-Content-Type-Options: nosniff.
  • Verify no sensitive data in localStorage and no exposed production source maps.
  • Check for XSS hazards (dangerouslySetInnerHTML, innerHTML, eval).

F. Backend Security Checks

  • Verify parameterized DB access / ORM usage.
  • Verify strong JWT secret management and token expiry.
  • Verify rate limiting on auth/sensitive routes.
  • Verify strict CORS origins.
  • Verify input validation on all endpoints.
  • Verify secure password hashing (bcrypt/argon2).
  • Check IDOR controls on user-owned resources.

G. API Security

  • Include Akto or Escape.tech checks for business-logic and GraphQL/REST API risks.

Output

  • security-report.json with findings grouped by Critical, High, Medium, Low

Execution

python skills/web-security-auditor/scripts/security_auditor.py --input <workspace> --output <out.json> --format json

References

  • references/tools.md

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.