← all repositories
cloudflare/security-audit-skill

Six phases of prompts to make AI find (and disprove) its own bugs

This skill turns a coding agent into a security auditor by making parallel agents hunt for vulnerabilities, then independently verify each other's work.

2k stars JavaScript Coding AssistantsAgents
security-audit-skill
Collecting fresh signals — velocity needs a few days of history.
collecting data…
star history

What it does

This repository is a set of prompts, schemas, and orchestration rules that turns a coding agent into a structured security auditor. It guides parallel sub-agents through reconnaissance, vulnerability hunting, adversarial validation, and machine-readable reporting. The goal is exploitable findings with concrete attack scenarios, not theoretical checklist deviations.

The interesting bit

The clever part is the adversarial structure: agents that find bugs are not the agents that validate them. A separate validation phase tries to disprove every finding, and a final verification phase sends fresh agents to check factual claims against the source code. It is essentially a prompt-engineered peer-review system for automated code review.

Key highlights

  • Six-phase pipeline: recon, hunt, validate, report, structure, and independently verify.
  • findings.json output conforms to a strict JSON schema and is validated by a zero-dependency Node.js script.
  • Multiple runs against the same repository are additive; the skill reads prior results to skip known issues and target gaps.
  • Design rules are opinionated: defense-in-depth gaps are hardening notes, not vulnerabilities, and severity requires real impact.
  • Single runs find roughly half the total vulnerabilities; coverage improves with repeated audits.

Caveats

  • Requires a coding agent with tool use and parallel sub-agent support; this is not a standalone scanner.
  • A single pass is intentionally incomplete, so you need multiple runs for broad coverage.
  • Node.js is required only for the final schema validation step.

Verdict

Worth a look if you are building AI-driven security tooling or want to harden a codebase with agentic audits. Skip it if you need a traditional, deterministic static analysis tool that runs without a model backend.

Frequently asked

What is cloudflare/security-audit-skill?
This skill turns a coding agent into a security auditor by making parallel agents hunt for vulnerabilities, then independently verify each other's work.
Is security-audit-skill open source?
Yes — cloudflare/security-audit-skill is open source, released under the MIT license.
What language is security-audit-skill written in?
cloudflare/security-audit-skill is primarily written in JavaScript.
How popular is security-audit-skill?
cloudflare/security-audit-skill has 2k stars on GitHub.
Where can I find security-audit-skill?
cloudflare/security-audit-skill is on GitHub at https://github.com/cloudflare/security-audit-skill.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.