verified-security-audit
Run a security audit in separate phases where every finding is re-checked by an independent verification pass before it is reported, and deliver the result as both a readable report and machine-readable JSON. Use when asked for a security audit with no false positives, audit this codebase and verify the findings, give me findings I can feed into a tracker, or re-check these security findings. Produces a scoped audit plan, verified findings with evidence and reproduction steps, a list of rejected candidates with the reason, and a JSON findings file.
Try your first task
A source-grounded starter task has not been verified for this skill yet.
SKILL.md
name: verified-security-auditdescription: "Run a security audit in separate phases where every finding is re-checked by an independent verification pass before it is reported, and deliver the result as both a readable report and machine-readable JSON. Use when asked for a security audit with no false positives, audit this codebase and verify the findings, give me findings I can feed into a tracker, or re-check these security findings. Produces a scoped audit plan, verified findings with evidence and reproduction steps, a list of rejected candidates with the reason, and a JSON findings file."Verified Security Audit Skill
A single-pass audit produces a long list in which real issues sit beside plausible guesses, and the reader cannot tell them apart. This skill separates finding from confirming. One pass hunts and is allowed to be suspicious; a second pass, working only from the code and the claim, tries to disprove each candidate. Only what survives is reported as confirmed. Use it for authorised reviews of code and configuration you own or have written permission to test. For a quick review of one change, use security-review; for an audit of a skill file, use skill-security-auditor.
What This Skill Produces
- A scope statement: what is in, what is out, and who authorised the review
- Verified findings, each with location, evidence, a reproduction path, severity with its reasoning, and a fix
- Rejected candidates with the reason each failed verification, so the same false alarm is not raised again
findings.jsonin a stable shape, for a tracker or a CI gate- A coverage note: which areas were examined and which were not
Required Inputs
Ask for these if not provided:
- Authorisation and scope: the repository or system, and confirmation that the requester may have it tested. Without this, stop and say why
- What matters most: the data or capability whose loss would hurt (credentials, payment data, admin access, user content)
- Entry points: how untrusted input arrives (HTTP routes, file uploads, queues, CLI arguments, webhooks)
- Constraints: read-only review or permission to run code; anything that must not be touched
Framework: Four Phases
- Map. List entry points, trust boundaries, and where sensitive data is stored and sent. Output: an attack surface table. No findings yet.
- Hunt. For each entry point, trace untrusted input to a dangerous operation: query construction, command execution, file paths, deserialisation, redirects, template rendering, access checks. Also read configuration for secrets, permissive defaults and missing authentication. Record each suspicion as a candidate with file, line and the claimed path.
- Verify, independently. Take each candidate with only its claim and the code. Try to disprove it: is the input really attacker-controlled, is there a check upstream, does the framework already neutralise it, is the code reachable? Assign exactly one verdict: confirmed (a concrete path exists), plausible (path likely, one link unproven: say which), or rejected (name the control that stops it). The verifier does not see the hunter's confidence, only the evidence.
- Report. Rank confirmed findings by impact and ease of use together, and state the reasoning rather than a bare label. Give the smallest fix and a test that would catch a regression.
Output Format
Security Audit: [system]
Scope: [in / out / authorised by] Method: read-only or executed Coverage: [areas examined / not examined]
Confirmed Findings
[ID] [title]
- Where:
path:line - Path: [input] → [steps] → [dangerous operation]
- Evidence: [the code that shows it]
- Severity: [level] because [impact and ease]
- Reproduce: [steps on a test system]
- Fix: [smallest change] · Regression test: [what to assert]
Plausible, Needs Confirmation
[Finding and the one unproven link]
Rejected Candidates
| Candidate | Why it does not hold |
|---|
findings.json
{
"schema": "verified-audit/1",
"scope": "",
"findings": [
{
"id": "F-001",
"title": "",
"verdict": "confirmed",
"severity": "high",
"file": "",
"line": 0,
"path": "",
"evidence": "",
"fix": "",
"regression_test": ""
}
],
"rejected": [{ "title": "", "reason": "" }],
"not_examined": []
}
Quality Checks
- Authorisation and scope are stated before any finding
- Every confirmed finding has a file, a line and a traced path from untrusted input
- Each candidate carries exactly one verdict, and rejected ones name the control that stops them
- Severity is argued from impact and ease, not asserted
- The JSON parses and matches the report
- Areas not examined are listed
Anti-Patterns
- Do not audit systems the requester has no right to test
- Do not report a candidate as a finding because it matches a pattern; trace the path
- Do not hide rejected candidates: they are evidence of coverage
- Do not include working exploit code for systems outside a test environment; describe the path
- Do not claim the system is secure: report what was examined and what was not
Example Trigger Phrases
- "Audit this codebase and verify every finding."
- "I want a security audit without the false positives."
- "Give me findings as JSON for our tracker."
- "Re-check these security findings and tell me which are real."
Run this skill in your browser: https://mohitagw15856.github.io/pm-claude-skills/skill/verified-security-audit.html