# Cloudflare Security Audit Skill

Source: https://trendhub.net/skills/cloudflare-security-audit-skill
Repository: https://github.com/cloudflare/security-audit-skill
Author: Cloudflare (https://github.com/cloudflare)
License: MIT
GitHub stars: 80,715

Cloudflare's Security Audit Skill makes a coding agent audit a repository in six phases: map trust boundaries, hunt with isolated subagents, have fresh agents try to disprove every candidate, then write schema-checked findings and reports. For everyday questions it acts as guidance only. It suits teams that want evidence-backed source reviews rather than checklist warnings.

## What problems it solves

- **Scanners flag checklist items, not real bugs**: A candidate only becomes a confirmed finding when it names who crosses which trust boundary and what concrete result follows.
- **Agents confirm their own false positives**: Every candidate goes to a fresh verifier agent whose job is to disprove it, and final records are re-checked by yet another agent.
- **Audit output is hard to reuse**: Findings are written to findings.json, validated against a JSON schema, and a coverage ledger records which areas were and were not examined.
- **One pass misses half the issues**: Repeated runs read earlier ledgers and findings, aim at the gaps and recheck code that has changed since.

## Install

### Skills CLI (project)

Installs the skill for the agent you pick in the current project.

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

### Skills CLI (global)

Installs at user level so every project can use it.

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

You need an agent whose model supports tool use and parallel subagents, plus Node.js for the two bundled validators. To let the audit run target code at all, provide an OS-enforced sandbox with networking disabled; without one, leads that need execution stay marked as needing validation.

## Skills

Skill names are shown as /name. Depending on the agent, a skill runs when it is relevant or when you call it by name; plugin installs may add a prefix.

- `/security-audit`: Audits a codebase in six phases with isolated hunters, adversarial verifiers and schema-validated findings, or answers focused security questions. (https://trendhub.net/skills/cloudflare-security-audit-skill/security-audit.markdown)

## Questions

### Is the Security Audit Skill free?

Yes. Cloudflare publishes it under the MIT license.

### Will it run a full audit every time I ask a security question?

No. It defaults to guidance mode and only runs all six phases when you explicitly ask for a codebase audit, pen test, full review or report files. If the request is ambiguous it asks first.

### Where does it write its output?

By default to a numbered run folder for the repository under ~/security-audit-skill in your home directory. It writes inside the target repository only if you choose a directory there that version control ignores.

### Which agents can use it?

The skill is written to be agent-neutral and needs a model with tool use and parallel subagents; installation goes through the Skills CLI, whose help lists agent-selection options.

## Before you install

The skill reads source, dispatches subagents, writes audit files to a directory outside the target repo by default and runs two small Node.js validator scripts. It forbids probing live endpoints and only executes target code inside a sandbox that blocks the network, and it describes fixes without editing your source.
