How to install · Download source (ZIP)
Cloudflare's skill helps find security flaws in source code and verify each finding separately. It connects a conclusion to specific code, the conditions needed for a flaw and a safe way to check the result.
What it is useful for
Use it to review your own app, API, library or local program. For example, check whether a user can read another user's record by knowing its number. Trace the request through the ownership check rather than just searching for user_id.
There are two modes. A question or focused review uses the relevant methodology without producing the full report set. A full audit has six phases: mapping the code, searching the planned areas, checking candidates, recording results, independent record verification and reporting. Installing the skill does not run these phases.
How to connect it to Codex
The official command uses Skills CLI:
npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit
Before running it, Codex checks Node.js, the current folder, previous installations and the skill's contents. The assistant selects Codex and the located project in the installer when available; a global installation is not needed for the first trial. Review the changes before approving them. This installs a skill, not an MCP server or access to a Cloudflare account.
The full workflow requires a client with tools and separate verifier agents. Check their availability and permission to run them separately. Without delegation, do not claim independent verification took place: a limited source review can still identify its missing checks.
Executing target code requires an OS-enforced sandbox: no external network, an allowlisted environment, read-only source and tools, scratch-only writes and resource limits. A new folder alone does not provide this. If these controls are unavailable, the assistant reads source and records the exact unresolved hypothesis instead of running a build or test. The skill does not automatically create this isolation.
How to run a first review
- Codex finds your project, rules, source revision and prior results. If no area is selected, it asks which to review, such as serving a user's record. It locates the handler and access check. Agree on scope, mode and cost before a large run. A first focused consultation can stay read-only without running all six phases.
- The assistant traces the data and existing controls. For a candidate it names the input, crossed boundary, conditions and possible result. A safe example uses two dummy accounts and test data. Execution is allowed only in the sandbox described above, without contacting the production site or external services.
- In a full audit, a separate verifier reads the source again and tries to disprove the candidate. Evidence is kept separate from assumptions. Once confirmed, the assistant proposes a minimal fix and a repeatable behavior check as a separate task: the audit itself does not change source.
A missing extra check is not a vulnerability when another control already blocks the action. If a conclusion depends on a server setting absent from the repository, name the missing fact instead of guessing it.
How to read the result
In full mode, confirmed means a supported vulnerability with evidence; needs_validation means a specific hypothesis with a missing fact and no severity; rejected means a disproved candidate. An unvalidated candidate from an incomplete run does not become a finding just by appearing in a report.
coverage-ledger.json tracks checked, blocked and deferred areas. findings.json holds results, while REPORT.md, FINDINGS-DETAIL.md and NEEDS-VALIDATION.md explain them. The two Node validators check file structure and consistency, not whether a vulnerability is real. Check every conclusion against the source and evidence.
A full run defaults to a separate output folder outside the repository under ~/security-audit-skill. The assistant finds the next unused path. Reports should not contain real keys or customer data. MIT covers the skill's license; models and verifier agents still use their allowances. A scoped or quick run remains partial, and a budget must not silently remove mandatory independent verification.
What you get and how to continue
You get a review tied to a source revision, with evidence, gaps and a remediation plan. For the record-access example, continue with checking user access to data and fixing a confirmed bug. These are suitable uses, not claims that these plans have already been audited.
To disable the skill, find its installation through Skills CLI and remove only that entry or link. Decide separately which reports to retain. Removing the skill does not remove vulnerabilities or fix code. Claude Security is a separate Claude Code tool, not another installation method for this skill.
Prompt for Codex
Paste into Codex with access to your own project:
Help review a chosen part of my project with Cloudflare security-audit-skill. Find the project, rules, source revision, previous reports and installed skill. If no area is named, ask which function to review. Start with a focused source inspection, without automatically launching a full audit or creating report files.
Read the official README at https://github.com/cloudflare/security-audit-skill and the current SKILL.md. If installation is needed, check Node.js, existing copies and the Codex path through Skills CLI, show the changes and wait for agreement.
Trace real inputs and access controls. For a hypothesis, show specific code, conditions, the affected boundary and a minimal check using dummy data. Do not contact production services or use real accounts, keys or customer records.
Do not execute target code without verified OS isolation: no external network, an allowlisted environment, read-only source and tools, scratch-only writes and resource limits. If unavailable, show the exact gap and a safe verification plan; do not run dependencies or tests on the main computer.
If I choose a full audit, first agree on scope, profile, budget and permitted independent delegation. Check all required capabilities and reserve verifier capacity, then perform all six phases of the current skill. Keep new outputs separate and distinguish confirmed, needs-validation, rejected and incomplete work. Do not present a partial review as a full audit or valid JSON as proof of security.
Show the evidence and next step. Leave code fixes, infrastructure changes and deployment as separate tasks. Do not include secret values in responses or reports.