agentleFS
augments-labsaugments-labs/sdlc-skills/skills/testing/security-audits/SKILL.md

security-audits

Skill1 starsChanged 4 months agoMITView on GitHub

Audits what an attacker can make a change do, from attacker-controlled input to its effect. Use when a change touches a trust boundary, attacker-controlled input, authentication or authorization, secrets, sensitive data, isolation, a dependency, build or deploy exposure, availability, sessions, or cryptography, including anything touching login, tokens, permissions, uploads, or user input reaching a query or a shell. Skip only when no security surface changed.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 8 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    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:

    Skip: only after inspecting reachability and confirming that no security surface changed.

    line 16
  2. Distinctive:

    Stop writers this task started.

    line 21
  3. Very specific:

    Read references/audit-checklists.md before tracing, and work every category checklist in it.

    line 42
  4. Distinctive:

    Write each finding in three parts: attacker-controlled source, propagation, the sink or effect it actually reaches.

    line 45
  5. Very specific:

    Run the assurance-matrix security gates for every relevant platform, build mode, and environment cell, under …

    line 47
  6. Distinctive:

    Never exploit shared or production state without exact, direct authority.

    line 49
  7. Very specific:

    Write each traced finding (source, propagation, sink) to a working note at …

    line 52
  8. Very specific:

    Never self-certify: a labelled self-audit never issues security clear.

    line 63
  9. Distinctive:

    Only the auditor's terminal result counts.

    line 64
  10. Distinctive:

    After a fix: new candidate, rerun the affected gates, independent focused re-audit.

    line 68
  11. Very specific:

    Read the auditor's completed report.

    line 70
  12. Distinctive:

    No gate exists, or the probe needs shared or production state you cannot touch.

    line 82
  13. Distinctive:

    Ask one question offering: authorize the exact probe with its effects and blast radius.

    line 86

≈ “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

Security Audits

Trace what an adversary can make the exact candidate do, from every attacker-controlled source to the sink it reaches. Never copy a prior finding, scanner summary, or comment as a verdict.

When to use

  • The candidate changes a trust boundary, or changes how untrusted actors reach data, operations, dependencies, runtime resources, or deployment.
  • Skip only after inspecting reachability and confirming that no security surface changed. “Small diff” and “internal refactor” are not evidence.

Step 1: Freeze and model

  1. Stop writers this task started; report any other writer to its owner and keep review pending until it stops.
  2. Consume the review-candidate descriptor its caller passed, candidate and review-input identities already frozen. No descriptor → the audit is pending: ask the caller for one. Never obtain it by invoking a review skill; that dispatches a second review and routes this audit back here.
  3. REQUIRED SUB-SKILL: invoke verification-before-completion for the exact-state gates that apply. Join its state identity byte-for-byte.
  4. Inventory the threat model: protected assets, trusted and untrusted actors, entry points, trust boundaries, privileges, assumptions, abuse cases. Give each a stable ID and the source digest it was taken against.
  5. For each assumption record: supporting evidence, how it is validated, its owner, its expiry, and what happens if it is false.

Step 2: Trace

  1. Expand scope by reachability from the changed code: newly reachable old code, callers, shared serializers and guards, generated sources, data stores, dependencies, build and CI, configuration, deployment. Record why each expansion is relevant.
  2. Note pre-existing unrelated issues separately. Keep them out of this verdict.
  3. Read references/audit-checklists.md before tracing, and work every category checklist in it.
  4. Mark each category covered, or obtain an omission through Step 4.
  5. Write each finding in three parts: attacker-controlled source, propagation, the sink or effect it actually reaches.
  6. Run the assurance-matrix security gates for every relevant platform, build mode, and environment cell, under verification-before-completion's effect authority. Never exploit shared or production state without exact, direct authority.
  7. Missing or stale gate: record a blocker and go to Step 4. Do not work around it.
  8. Write each traced finding (source, propagation, sink) to a working note at .sdlc-skills/evidence/{{YYYY-MM-DD}}-{{topic}}/security-notes.md, never into the report template. Fix = the smallest change that closes the path. Sensitive evidence = a redacted location or digest, never the value.

Step 3: Verdict

  1. Send the blank assets/security-report.md when you dispatch the independent auditor's instructions per dispatching-parallel-agents Step 2 — never your working note or a filled copy. Only the auditor fills the report, Verdict included. Never self-certify: a labelled self-audit never issues security clear.
  2. Only the auditor's terminal result counts; a running, failed, or cancelled audit leaves the verdict pending.
  3. REQUIRED SUB-SKILL: invoke receiving-code-review for every finding that comes back.
  4. After a fix: new candidate, rerun the affected gates, independent focused re-audit. Never certify your own correction.
  5. Read the auditor's completed report. Match Candidate and Review inputs byte-for-byte to the descriptor, Role to security, and Verdict to step 6. Missing, unreadable, conflicting, or mismatched fields → inconclusive.
  6. Issue one verdict: security clear, security blocked, or inconclusive, bound to the candidate and review-input identities. security clear requires the independent auditor.
  7. Return the report or its location to the requesting review. Leave releasability to release-readiness. Any security-relevant edit invalidates the verdict.

Step 4: When a category cannot be covered

No gate exists, or the probe needs shared or production state you cannot touch. Do not approve the omission yourself.

  1. State the candidate, the blocked category and reason, and the exposure.
  2. Ask one question offering: authorize the exact probe with its effects and blast radius; accept the omission with owner, expiry, and compensation; keep the candidate security-blocked.
  3. Recommend the safest evidence-supported answer with one sentence. Stop.
  4. Unanswered, silence, urgency: verdict stays inconclusive.
  5. An accepted omission binds to this exact candidate and dies with the verdict on any security-relevant edit.
  6. Missing auditor independence is not on this menu; Step 3 settles it.

Gotchas

  • An audit of the changed lines misses old code the change newly exposes. Reachability from the change sets the scope, not the diff.
  • A scanner summary is not a traced path. A finding stands only with its source, propagation, and sink written out, and a summary names none of them.

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.