opensourceprojects.dev

A broadsheet for software that doesn't ask for your email

A coding-agent skill that runs six-phase security audits
GitHub RepoViews5

Project Description

View on GitHub

Your Coding Agent Can Hunt Bugs—If You Give It a Real Process

You've probably pointed an AI agent at a codebase and asked it to find security issues. It comes back with a confident list, half of which are wrong, and you have no way to tell which half. The problem isn't that the agent can't read code—it's that "find vulnerabilities" isn't a workflow. Cloudflare's security-audit-skill is an attempt to fix that by handing your agent an actual audit process to follow.

What It Does

This is a coding-agent skill—a set of instructions and supporting files that turns your agent into a security auditor. It runs a structured audit in six phases: reconnaissance, coverage-led hunting, candidate validation, structured output, independent record verification, and target-neutral reporting.

The architecture is built around isolation. Reconnaissance maps the architecture, trust boundaries, input surfaces, and prior evidence into architecture.md and coverage-ledger.json. Hunters get assigned from ledger units, and coverage critics look for gaps. Every unique candidate goes to a fresh verifier that actively tries to disprove it. Confirmed, needs-validation, and rejected records land in findings.json, validated against report-schema.json. Then fresh agents verify the final source claims, and the parent derives REPORT.md, FINDINGS-DETAIL.md, and NEEDS-VALIDATION.md from those verified records.

The skill ships with a SKILL.md covering setup and core principles, plus phase-specific files like RECONNAISSANCE.md, HUNTING.md, and VALIDATION-AND-REPORTING.md. It also includes attack-class prompt libraries for different target types—memory safety and binary, AI and LLM, web protocol and auth, client-side, supply chain, cloud and deployment, RPC and messaging, resource exhaustion, data isolation, and desktop/mobile/local IPC.

Why It's Cool

  • It treats "I found a bug" as a claim to disprove, not a result to report. Every candidate goes to a fresh verifier whose job is to kill it. That's a fundamentally different posture than asking an agent to find problems, and it's the single biggest reason this might produce fewer false positives than the usual approach.

  • The three verdicts are honest about uncertainty. confirmed requires a complete source trace and a bounded observed result. needs_validation records an exact unresolved fact and deliberately carries no severity. rejected documents a disproved candidate. Most tools blur these together; this one won't let an unresolved fact masquerade as a finding.

  • Coverage is a tracked artifact, not a vibe. The ledger is validated by validate-coverage-ledger.cjs after creation and after every update. Findings get validated too—in Phase 4 and again after every Phase 5 replacement. The parent agent runs these checks, so the process enforces itself rather than relying on the model's goodwill.

  • Runs are additive. Point it at the same repo twice and it uses prior ledgers and findings to target gaps, revalidate changed source, and carry forward current-source evidence—without treating stale or unresolved work as covered. That's the behavior you'd want from a real audit cycle, and it's rare to see it built in.

  • The attack-class files are the interesting part. Rather than one generic "find bugs" prompt, there are separate hunting classes for native targets, LLM-backed targets, HTTP protocol and auth targets, client-side code, supply chains, cloud deployments, and so on. You get prompts tuned to the thing you're actually auditing.

  • It has real lineage. This is the skill that seeded Cloudflare's vulnerability discovery harness, which grew into a multi-stage, fleet-wide system. This repo is the single-repo starting point that system evolved from—so you're getting the distilled version, not a toy.

How to Try It

  1. Head to the repository: github.com/cloudflare/security-audit-skill
  2. Read SKILL.md first—it covers setup, core principles, platform terminology, and the audit anti-patterns to avoid.
  3. Load the skill into your coding agent of choice and point it at a repository you want audited.
  4. Expect it to produce architecture.md, coverage-ledger.json, findings.json, and the derived report files as it works through the phases.
  5. If you want the backstory on how this became a fleet-wide harness, read Cloudflare's post, Build your own vulnerability harness.

Final Thoughts

This isn't a turnkey scanner—it's a process you hand to an agent that's already capable of reading and reasoning about code. If you're doing security review with AI assistance and you're tired of untrustworthy finding lists, the six-phase structure and the adversarial validation step are worth studying even if you don't adopt it wholesale. It's also a useful template: the pattern of isolated agents, tracked coverage, and independent verification applies well beyond security work. Worth a look if you care about getting audit results you can actually act on.

Back to Projects
Project ID: security-audit-skillLast updated: December 6, 2026 at 05:54 AM