agentleFS
mihaimurra001mihaimurra001/preConfigProject/.agents/skills/appsec-code-review/SKILL.md

appsec-code-review

Skill1 starsChanged 2 months agoMITView on GitHub

Audit source code for OWASP Top 10 security vulnerabilities, injection flaws, authentication weaknesses, and insecure data handling.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Injection (CWE-89, CWE-78): Verify all database queries use parameterized prepared statements (never string interpolation).

    line 11
  2. Distinctive:

    Broken Object Level Authorization (BOLA / IDOR / CWE-639): Verify the authenticated user owns or is authorized to access the specific …

    line 14
  3. Distinctive:

    Insecure Deserialization (CWE-502): Avoid native unpickling or untrusted object evaluation.

    line 17
  4. Distinctive:

    Verify that defenses cannot be bypassed with encoded payloads or alternate casing.

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Application Security (AppSec) Code Review & Vulnerability Audit

Perform rigorous security auditing against the OWASP Top 10 and CWE standards:

1. Vulnerability Checklist

  • Injection (CWE-89, CWE-78): Verify all database queries use parameterized prepared statements (never string interpolation). Verify all shell executions sanitize arguments or avoid shell invocation.
  • Cross-Site Scripting (XSS / CWE-79): Context-aware output encoding in templates/HTML responses. Safe innerText/textContent instead of innerHTML.
  • Server-Side Request Forgery (SSRF / CWE-918): Validate external URLs against allowlists, block private/internal IP ranges (127.0.0.1, 10.0.0.0/8, 192.168.0.0/16, AWS metadata 169.254.169.254).
  • Broken Object Level Authorization (BOLA / IDOR / CWE-639): Verify the authenticated user owns or is authorized to access the specific requested resource ID.
  • Authentication & Session (CWE-287, CWE-384): Strong password hashing (bcrypt, Argon2id), secure session cookies (HttpOnly; Secure; SameSite=Strict).
  • Path Traversal (CWE-22): Resolve user-supplied file paths with strict boundaries; reject ../ directory escapes.
  • Insecure Deserialization (CWE-502): Avoid native unpickling or untrusted object evaluation.

2. Review Process

  1. Trace untrusted user input from entry points (HTTP handlers, CLI arguments, webhook payloads) to sinks (DB queries, shell commands, file I/O).
  2. Report vulnerabilities with: File & Line, Severity (Critical/High/Medium/Low), CWE identifier, and concrete remediation code.
  3. Verify that defenses cannot be bypassed with encoded payloads or alternate casing.

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.