SuperAPIAI Directory

security-audit-skill

github.com · AI security

security-audit-skill is an open-source coding-agent skill from Cloudflare that turns a coding agent into a security auditor, orchestrating isolated agents across six phases to complete reconnaissance, coverage-driven vulnerability hunting, candidate validation, structured output, independent record verification, and target-agnostic report generation. Audit conclusions fall into three categories—confirmed, needs_validation, and rejected—and are written to machine-readable files such as findings.json, enabling incremental multi-round audits of the same repository. The skill is installed via the Skills CLI, requires an agent that supports tool calls and parallel sub-agents, requires Node.js installed locally, and recommends an OS-level sandbox. The project is MIT licensed.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Purpose security-audit-skill is a skill for coding agents that turns the agent into a security auditor. It orchestrates multiple isolated agents to sequentially complete reconnaissance, coverage-driven hunting, candidate validation, structured output, independent record verification, and target-agnostic report generation. According to the project description, the skill is the starting point of Cloudflare's vulnerability harness, which later evolved into a multi-phase, cluster-wide system, while this repository is the single-repository version from before that evolution.

Six-Phase Audit Process

  1. Reconnaissance: map out the architecture, trust boundaries, input surfaces, existing evidence, and deterministic coverage, producing architecture.md and coverage-ledger.json.
  2. Coverage-driven hunting: assign isolated hunters based on the units in the coverage ledger, record their checks, and have a coverage critic identify gaps.
  3. Candidate validation: hand each unique candidate to a fresh validator that attempts to falsify 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: a fresh agent verifies the final provenance claims; if a substantive replacement occurs, it is handed to another independent validator.
  6. Target-agnostic reporting: derive REPORT.md, FINDINGS-DETAIL.md, and NEEDS-VALIDATION.md from the verified records and the coverage ledger.

Validation Scripts and Conclusion Categories The parent agent runs validate-coverage-ledger.cjs after creating the coverage ledger and after each subsequent ledger update; it runs validate-findings.cjs in phase 4 and after each replacement in phase 5. The three conclusion types have different meanings: confirmed has complete provenance tracing and bounded observations; needs_validation retains one precisely unresolved fact and carries no severity level; rejected records falsified candidates.

Multi-Round Runs Multiple runs against the same repository are cumulative. The skill uses prior ledgers and findings to locate gaps, re-verify changed source code, and carry forward current source evidence rather thanTreat expired or unresolved work as covered.

How to use Install the skill via the Skills CLI, using --global for a user-level install; run npx skills --help to see agent selection and non-interactive options. Start a coding agent in (or pointed at) the codebase to be audited, then ask it to perform a security audit. The skill activates automatically when a request matches the trigger conditions (security audit, find vulnerabilities, pen-test the code, etc.). Direct codebase audit or penetration-test requests use full audit mode; security questions and focused vulnerability work use guidance mode, unless you ask for a report artifact. In full audit mode, when no output directory is specified, the default is ~/security-audit-skill/<repo-name>/run-<N>. The workflow writes inside the target repository only when you explicitly choose a directory ignored by version control.

Requirements Requires a coding agent driven by a model that supports tool calling and parallel sub-agents; requires Node.js to run the zero-dependency findings and coverage ledger validators; also requires an OS-level enforced sandbox to run builds, tests, processes, browsers, emulators, fuzzers, and test fixtures controlled by the target code. The sandbox must disable external network, use a sanitized allowlisted environment, enforce resource limits, and allow writes only to an allocated temporary path. Without these controls, the workflow keeps leads as needs_validation rather than executing target code.

Design principles Confirm only established boundary failures; keep sourced but blocked leads as needs_validation with the exact unresolved fact. Adversarial validation: the agent that checks a finding is never the agent that found it. Severity requires impact: measured as likelihood × impact, not as deviation from a checklist. Defense-in-depth gaps are not vulnerabilities: if layer A already blocks the attack, the absence of layer B is only a hardening recommendation. Multiple rounds improve coverage: in a project's test runs, a single round finds roughly only half of the vulnerabilities found by repeated runs combined.

Limitations and other Facts such as the specific form of the install command, fees and pricing, and the range of supported platforms are not yet provided in the available material. The project uses the MIT license; see LICENSE for details. The repository also contains a Code of conduct and a Security policy. Forquestions, feedback, or discussion of AI-driven security tools, contact security-ai-research@cloudflare.com.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools