2026-11-26 15:48 UTC

Cloudflare publishes a structured, adversarial security-audit skill for coding agents

state: watchingheat: mediumuncertainty: mediumrelevance: mediumagentic-security agent-harnesses coding-agentsCloudflare

What is this?

Cloudflare’s open-source `security-audit-skill` is a single-repository workflow for coding agents, derived from the company’s larger vulnerability-discovery harness. It organizes audits into six phases: reconnaissance and a coverage ledger; isolated, coverage-led hunting; fresh-agent attempts to disprove candidates; schema-validated findings; independent checks of final source claims; and reports generated from verified records. The project says target code should only be executed in an OS-enforced sandbox with restricted networking, environment, resources, and write access; without that, leads remain unresolved rather than confirmed.

Why it matters

This is a useful, concrete example of turning a coding agent into a more auditable security-review workflow: it tracks what was checked, separates discovery from attempts to disprove findings, and validates report records. That may help teams using coding agents distinguish evidence-backed vulnerabilities from plausible but unverified leads. It is a workflow release, not evidence that the skill finds vulnerabilities reliably or outperforms human review; the supplied sources provide no independent benchmark, and multi-agent audits may be costly. Its requirement for an OS-enforced sandbox is an important operational constraint, not a detail to skip.

Current assessment

Cloudflare’s GitHub project describes an open-source, single-repository coding-agent skill that grew out of its larger vulnerability-discovery harness. The six-phase workflow covers reconnaissance and a coverage ledger; isolated, ledger-driven hunting with coverage critics; fresh-agent attempts to disprove candidates; findings classified as confirmed, needs_validation, or rejected and checked against a JSON schema; independent verification of final source claims; and reports generated from those records. The project says repeated runs are additive and that, in its test runs, one run found roughly half the vulnerabilities found across repeated runs combined. This is a project-reported result, with no test details or independent validation in the supplied evidence. Execution of target-controlled code requires an OS-enforced sandbox with external networking disabled, a sanitized environment, resource limits, and restricted writes; absent those controls, a lead stays needs_validation. The release is notable as a practical, evidence-oriented agent harness, but the sources do not establish detection accuracy, comparative performance, or cost. Hacker News comments raise token-use concerns, including one user’s report of spending a million tokens, but these are anecdotal rather than measured cost data.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 1691h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

09-17 05:21 (minted)⭐ origin echo-reconstructedCloudflare releases the single-repository skill that seeded its vulnerability-discovery harness, with six audit phases, independent finding
Cloudflare on github (echo) · attributed from hn.story.49736466 · published time unknown
—
09-17 04:36first on hacker news · published · lag ?Cloudflare/Security-Audit-Skill
donk8r
—
09-17 04:36amplified on hacker news 👑hn.story.49736466
donk8r
peak 213 · 38 comments · 100% of case engagement
09-17 05:20our radar first saw it · lag ?discovery anchor: hn.story.49736466—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnCloudflare/Security-Audit-Skill
Retrieved article excerpt

Open article · Retrieved 2026-09-17T05:21:38.155784+00:00

# security-audit

A coding-agent skill that turns your agent into a security auditor. It orchestrates isolated agents through reconnaissance, coverage-led hunting, candidate validation, structured output, independent record verification, and target-neutral reporting.

This is the skill that seeded Cloudflare's vulnerability discovery harness, described in [Build your own vulnerability harness](https://blog.cloudflare.com/build-your-own-vulnerability-harness). The harness grew into a multi-stage, fleet-wide system; this skill is the single-repo starting point it evolved from.

## What it does

The skill runs a structured audit in six phases:

1. **Reconnaissance** -- map architecture, trust boundaries, input surfaces, prior evidence, and deterministic coverage in `architecture.md` and `coverage-ledger.json`.
2. **Coverage-led hunting** -- assign isolated hunters from ledger units, record their checks, and use coverage critics to find gaps.
3. **Candidate validation** -- give every unique candidate to a fresh verifier that tries to disprove it.
4. **Structured output** -- write `confirmed`, `needs_validation`, and `rejected` records to `findings.json` and validate them against `report-schema.json`.
5. **Independent record verification** -- fresh agents verify final source claims. Material replacements receive another independent verifier.
6. **Target-neutral reporting** -- derive `REPORT.md`, `FINDINGS-DETAIL.md`, and `NEEDS-VALIDATION.md` from the verified records and coverage ledger.

The parent runs `validate-coverage-ledger.cjs` after creating the ledger and after each later ledger update. It runs `validate-findings.cjs` in Phase 4 and again after every Phase 5 replacement.

The verdicts are distinct: `confirmed` has a complete source trace and bounded observed result, `needs_validation` has an exact unresolved fact and no severity, and `rejected` records a disproved candidate.

Multiple runs against the same repo are additive. The skill 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.

## Files

| File | Purpose |
| --- | --- |
| `SKILL.md` | Setup, core principles, platform terminology, workflow overview, and audit anti-patterns |
| `RECONNAISSANCE.md` | Phase 1 reconnaissance prompts and synthesis instructions |
| `HUNTING.md` | Phase 2 orchestration, hunting methodology, and validation rules |
| `ATTACK-CLASSES.md` | Core, wildcard, and obvious-things attack prompts |
| `MEMORY-SAFETY-AND-BINARY.md` | Memory-safety, binary, and kernel hunting classes for native targets |
| `AI-AND-LLM.md` | Prompt-injection, agent/tool, and output-handling hunting classes for LLM-backed targets |
| `WEB-PROTOCOL-AND-AUTH.md` | HTTP request-framing, cache, and authentication-protocol hunting classes for HTTP-protocol and auth targets |
| `CLIENT-SIDE.md` | DOM-injection, messaging-trust, UI-redress, and prototype-pollution hunting classes for client-side/browser targets |
| `SUPPLY-CHAIN-AND-RELEASE.md` | Dependency, CI, release, signing, update, plugin, and extension hunting classes |
| `CLOUD-AND-DEPLOYMENT.md` | IAM, infrastructure-as-code, container, serverless, ingress, and runtime-configuration hunting classes |
| `PROTOCOLS-RPC-AND-MESSAGING.md` | RPC, serialization, queue, broker, webhook, and streaming-protocol hunting classes |
| `RESOURCE-EXHAUSTION-AND-AVAILABILITY.md` | Shared resource, quota, queue, worker, and operator-spend hunting classes |
| `DATA-ISOLATION-AND-LIFECYCLE.md` | Tenant isolation, cache, search, export, backup, migration, deletion, and restore hunting classes |
| `DESKTOP-MOBILE-AND-LOCAL-IPC.md` | Native app, deep-link, webview, exported-component, helper, daemon, and local-IPC hunting classes |
| `VALIDATION-AND-REPORTING.md` | Phases 3–6 candidate validation, structured output, record verification, and reporting |
| `report-schema.json` | JSON schema for all three `findings.json` verdicts |
| `validate-findings.cjs` | Zero-dependency validator for `findings.json` in Phases 4 and 5 |
| `validate-findings.test.cjs` | Findings-validator tests and producer-compatible fixture checks |
| `validate-coverage-ledger.cjs` | Zero-dependency validator for `coverage-ledger.json` in Phases 1–5 |
| `validate-coverage-ledger.test.cjs` | Coverage-ledger validator tests |

## Installation

Install the skill with the [Skills CLI](https://skills.sh):

```
npx skills add https://github.com/cloudflare/security-audit-skill \
  --skill security-audit
```

Use `--global` for a user-level installation:

```
npx skills add https://github.com/cloudflare/security-audit-skill \
  --skill security-audit \
  --global
```

Run `npx skills --help` for agent-selection and non-interactive options.

## Usage

Start your coding agent in (or pointed at) the codebase you want to audit, then ask it to do a security audit:

```
security audit this codebase
```

```
find security vulnerabilities in ./src
```

```
do a security review, output to ~/audits/my-project
```

The skill activates automatically when the request matches its trigger (security audit, find vulnerabilities, pen-test the code, etc.). A direct codebase audit or pen-test request uses full audit mode. Security questions and focused vulnerability work use guidance mode unless you request report artifacts. In full audit mode, an unspecified output directory defaults to `~/security-audit-skill/<repo-name>/run-<N>`. The workflow writes inside the target repository only when you explicitly select a directory that version control ignores.

## Requirements

- A coding agent with a model that supports tool use and parallel sub-agents
- Node.js for the zero-dependency findings and coverage-ledger validators
- An OS-enforced sandbox for target-controlled builds, tests, processes, browsers, emulators, fuzzers, and fixtures. It must disable external networking, use a sanitized allowlisted environment, enforce resource limits, and allow writes only to assigned scratch paths. Without these controls, the workflow keeps the lead as `needs_validation` instead of executing target code.

## Design principles

- **Only confirm established boundary failures.** Keep a source-grounded blocked lead as `needs_validation` with its exact unresolved fact.
- **Adversarial validation.** The agent that checks a finding is never the agent that found it.
- **Severity requires impact.** Likelihood x impact, not deviation from a checklist.
- **Defense-in-depth gaps are not vulnerabilities.** If Layer A prevents the attack, the absence of Layer B is a hardening note.
- **Multiple runs improve coverage.** In our test runs, a single run found roughly half of the vulnerabilities that repeated runs found in total.

## Contact

Questions, feedback, or comparing notes on AI-driven security tooling: [email protected]

## License

MIT -- see [LICENSE](https://github.com/cloudflare/security-audit-skill/blob/main/LICENSE).
donk8r21338
🟧 echo.github ⭐Cloudflare releases the single-repository skill that seeded its vulnerability-discovery harness, with six audit phases, independent finding Cloudflare——

Interpretation history

Decision trace