agentleFS
kenjichristopherv-delkenjichristopherv-del/securitymaxxing/skills/security-review-method/SKILL.md

security-review-method

Skill1 starsChanged 4 months agoApache-2.0View on GitHub

The evidence discipline for any security review, audit, threat model, or vulnerability triage. Use this skill whenever performing or reporting on application security work: auditing code for vulnerabilities, reviewing a diff or PR for security impact, triaging a scanner result, judging whether a finding is real, or assigning severity. Trigger on 'security review', 'security audit', 'is this vulnerable', 'pentest my code', 'find vulnerabilities', 'CVE', 'CWE', 'OWASP', 'severity', 'false positive', 'exploitable'. Defines the source-to-sink proof requirement, the severity rubric, the finding format, and the anti-false-positive rules that every securitymaxxing command depends on.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If you cannot name both, you do not have a finding.

    line 34
  2. Distinctive:

    Zero findings is a valid, respectable result: Never pad a report to look thorough.

    line 57
  3. Distinctive:

    Never invent a CVE, CWE number, or advisory: If you are not certain of the identifier, describe the class in words instead.

    line 60
  4. Distinctive:

    Prefer the fix that removes the vulnerability class, not the single instance.

    line 118
  5. Distinctive:

    Never propose a fix that depends on a library or version the project does not have without saying so.

    line 120
  6. Distinctive:

    If the fix requires a rotation (leaked key, exposed token), say so explicitly — patching the code does not un-leak the secret.

    line 124
  7. Distinctive:

    Do not modify code during a review unless explicitly asked.

    line 129
  8. Very specific:

    Every command in this toolkit closes its report with one line — → Recommended next: … — so the user is never left holding findings with no …

    line 136

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

Security Review Method

A security report that cannot be acted on is worse than no report. It burns the reader's trust, and the next real finding gets ignored. This skill defines how to produce reports people act on.

The one rule

No finding without a traced path from an attacker-controlled source to a dangerous sink.

You must be able to name both ends:

  • Source — where attacker-controlled data enters. HTTP body/query/path/header, cookie, uploaded file, webhook payload, message queue, third-party API response, database row that another user wrote, environment of a multi-tenant runtime, LLM output derived from any of the above.
  • Sink — where it does damage. SQL/NoSQL/ORM raw query, shell/exec/spawn, filesystem path, HTML/DOM insertion, template render, deserializer, HTTP client (SSRF), redirect target, auth/authz decision, price/quantity/role field, log line, eval.

If you cannot name both, you do not have a finding. You have a hypothesis — report it as Needs verification and state exactly what you'd need to read to settle it.

Anti-false-positive rules

These exist because the default failure mode of AI security review is confident nonsense.

  1. Check the mitigation before you write the finding. Parameterized queries, ORM binding, framework auto-escaping, SameSite=Lax by default, CSRF middleware already mounted, a validation layer upstream. Read the framework's actual behavior for the version in package.json / requirements.txt / go.mod. Most "SQL injection in an ORM" findings die here.
  2. Follow the call chain to a real entry point. A dangerous function that is only ever called with a hardcoded constant is not a vulnerability. Grep for every caller.
  3. Trust boundaries are the whole game. Code that is only reachable by an authenticated admin has a different severity than the same code on a public endpoint. Establish who can reach it before you rate it.
  4. Non-shipping code is not a production vulnerability. Tests, fixtures, seed scripts, local dev docker-compose, examples in docs. Report them separately as hygiene if they leak real credentials — otherwise leave them out. Verify they are not shipped or deployed before dismissing them.
  5. Do not report the absence of defense-in-depth as a vulnerability. A missing X-Frame-Options on a JSON API is not a finding. A missing CSP on an app that already escapes all output is LOW at most. Say what the actual exposure is.
  6. Zero findings is a valid, respectable result. Never pad a report to look thorough. If the code is clean, say the code is clean and describe what you checked so the reader can judge the coverage.
  7. Never invent a CVE, CWE number, or advisory. If you are not certain of the identifier, describe the class in words instead.
  8. Distinguish "I read this" from "I inferred this." Quote the code you actually read.

Severity rubric

Rate by realistic exploitability × impact, not by scary-sounding class name.

SeverityBar
CRITICALUnauthenticated attacker gets RCE, full database read/write, auth bypass, or takeover of arbitrary accounts. Exploitable against production as it stands today.
HIGHAuthenticated attacker crosses a trust boundary — reads/writes another tenant's or user's data, escalates privilege, achieves stored XSS, or extracts secrets/keys. Also: a credential committed to a repo that is currently valid.
MEDIUMReal exploit path but meaningful preconditions (specific user interaction, race window, non-default config), or limited impact — self-XSS, verbose error leaking stack traces, missing rate limit on an abusable-but-not-critical endpoint, open redirect.
LOWDefense-in-depth gap with no demonstrated exploit path given the current code.
INFOHygiene, hardening, or maintainability-of-security observation.

Two rules on top of the table:

  • Chained findings get rated as the chain. Two MEDIUMs that combine into account takeover are reported once, as one CRITICAL, with both links shown.
  • Downgrade for compensating controls you verified, and name the control. Don't downgrade for a control you assume exists.

Finding format

Report every finding in exactly this shape. Ordered most severe first.

[SEVERITY] Short, specific title
Location:   path/to/file.ext:120-135  (plus any secondary sites)
Class:      OWASP A01:2021 Broken Access Control / CWE-639
Confidence: Confirmed | Likely | Needs verification

Evidence:
  <the actual code, quoted, with the source and sink both visible>

Exploit path:
  1. Attacker authenticates as any user (or: no auth required)
  2. Sends POST /api/orders/1042 with body {...}
  3. Handler reads req.params.id at line 120 and queries without an owner check at line 131
  Result: reads another tenant's order, including their billing address

Impact:
  <what the attacker actually gets, in business terms>

Fix:
  <the specific change — show the patch, not "validate input">

Residual risk:
  <what the fix does NOT cover, if anything>

Close every report with a Coverage section: what you reviewed, what you could not reach, and what a human should still check manually. That is how the reader calibrates trust.

Fix guidance quality bar

  • Show the corrected code, in the project's existing style and framework idiom.
  • Prefer the fix that removes the vulnerability class, not the single instance. A helper that makes the safe path the easy path beats one patched call site.
  • Never propose a fix that depends on a library or version the project does not have without saying so.
  • Flag when a fix has a breaking or behavioral side effect. Security fixes that silently break users get reverted, which leaves you less secure than before.
  • If the fix requires a rotation (leaked key, exposed token), say so explicitly — patching the code does not un-leak the secret.

Scope discipline

Do not modify code during a review unless explicitly asked. A review is read-only. Findings first, patches second, and only on request. Never run exploits against a live system, never touch infrastructure you were not pointed at, and never exfiltrate real secrets into the transcript — refer to them by location, redact the value (AKIA…7Q3F).

Always end with the next step

Every command in this toolkit closes its report with one line — → Recommended next: … — so the user is never left holding findings with no path forward. The through-line is find → prove → fix → re-review:

  • A review surfaced exploitable findings → prove them with /securitymaxxing:redteam, then patch with /securitymaxxing:fix.
  • fix finished → re-run the review that raised the finding, to confirm it now comes back clean.
  • The review was clean → say so, and point at the next gate (/securitymaxxing:ship-check) or the next surface — never invent work to fill the line.

Tailor the recommendation to what you actually found. Never end a report without it.

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.