security-audit
Skill24k starsChanged 3 months agoMITView on GitHub
Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.
140 other projects use a version of this, 2 of them edited; 1 of 2 edited versions we compared changed its rules; 0 new projects in the last 4 weeks, against 2 the 4 before.
How people change it
1 of 2 edited versions changed its rules.
Of the 2 edited versions we compared: 1 keep every rule, 1 made changes of their own.
Rules people drop
- Full audit mode: Use the complete workflow when the user explicitly asks to audit or pen-test a codebase, asks for a full, comprehensive, or end-to-end security review, or requests report artifacts. Run all six phases and write the files defined below.dropped by 1 of 1
- If the request could mean either mode, ask one focused question before creating files or starting the complete workflow.dropped by 1 of 1
- Use equivalent platform capabilities while preserving role, write-isolation, prompt, and independence boundaries.dropped by 1 of 1
- Verify with
fstatthat it is a regular file with link count exactly one and within the recorded per-file and cumulative byte limits.dropped by 1 of 1 - Create the leaf exclusively without following links, verify that the opened destination is a regular file with link count exactly one, and copy from the verified source descriptor without reopening either path.dropped by 1 of 1
- Use equivalent race-safe APIs on non-POSIX systems.dropped by 1 of 1
- Never recursively copy or glob scratch, extract an archive into artifacts, or open or promote a symlink, FIFO, socket, device, directory, hard-linked file, changing file, or file that exceeds its bound.dropped by 1 of 1
- If any check is unavailable, cannot be enforced, or fails, discard the scratch entry; if it is decisive evidence, retain
needs_validationwith the exact promotion blocker.dropped by 1 of 1
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Cooling: 0 new projects took it in the last 4 weeks, 0× the 4 weeks before.thin data
Most recently taken up by
- HunLuanZhiZhu/Game-Studios-Plugintheir own version, first seen Oct 5, 2026
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- PostHog/posthogtheir own version, first seen Oct 4, 2026
- PostHog/posthog-fosstheir own version, first seen Oct 4, 2026
- louisbrulenaudet/monorepo-templateword for word, first seen Oct 2, 2026
- MaxMiksa/Auto-Companytheir own version, first seen Oct 2, 2026
Who's talking about cloudflare/security-audit-skill
- A Hacker News story“Cloudflare/Security-Audit-Skill”Hacker News · Sep 17, 2026 · 213 points
- @monkchips.com“Cloudflare's security audit skill Sharing because literally everything is getting pwned this week”Bluesky · Oct 22, 2026 · 23 likes
- @camilleroux.com“Cloudflare a publié une skill très complète d'audits de sécurité pour agents en 6 phases. C'est celle qui a …”Bluesky · Sep 19, 2026 · 16 likes
- @midu.dev“Cloudflare tiene de código abierto su Skill para encontrar vulnerabilidades en tu proyecto. Lo que hace …”Bluesky · Nov 5, 2026 · 10 likes
- @tommytang.bsky.social“If you are a vibe coder like me. Use this cloudflare auditing skill to audit your web application …”Bluesky · Oct 31, 2026 · 7 likes
The biggest 5 of 91 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 91
Talked about on GitHub, Bluesky and Hacker News (91 times).
On GitHub · 50
- Nov 28, 2026feat(review): bundle pinned Cloudflare security guidance by default — JadsonLucena/agent-toolkit1 reaction · 1 comment
- Nov 6, 2026chore: add Cloudflare security-audit skill — ferminrp/comparapix-plugin1 reaction · 2 comments
- Nov 6, 2026chore: add Cloudflare security-audit skill — ferminrp/google-sheets-argento1 reaction · 2 comments
- Nov 6, 2026chore: add Cloudflare security-audit skill — ferminrp/cedears1 reaction · 3 comments
- Nov 6, 2026chore: add Cloudflare security-audit skill — ferminrp/logos-ar1 reaction · 3 comments
45 more on GitHub
- Oct 27, 2026chore(vendor): vendor security-audit-skill at c1c8a8c into reference/security-audit-skill — pratik-saptarshi/autonomous-engineering-platform1 reaction · 1 comment
- Nov 29, 2026Add Cloudflare security-audit skill — Erolljay/tallocpa-dashboard0 reactions · 9 comments
- Nov 26, 2026spike(devloop-security): Cloudflare security audit methodology and coverage evidence — mctlhq/mctl-agents0 reactions
- Nov 25, 2026Evaluate: security-audit-skill — pantheon-org/pantheon-skill-auditor0 reactions · 1 comment
- Nov 25, 2026[trial] Cloudflare security-audit-skill - one quick run on plan-coder, gated — anchapin/plan-coder0 reactions · 3 comments
- Nov 24, 2026BIO-EPIC-00: install cloudflare security-audit agent skill — hixam001/battle-it-out0 reactions
- Nov 23, 2026chore: add cloudflare's security-audit skill — thecodingmontana/misri-club0 reactions · 2 comments
- Nov 23, 2026Skill de auditoría de seguridad de Cloudflare (security-audit) — elevareluxury/menulife0 reactions · 1 comment
- Nov 22, 2026Add Cloudflare security-audit skill — Chatran666/streamdonations0 reactions
- Nov 21, 2026Process raw capture from issue #180: GitHub - cloudflare/security-audit-skill: A coding-agent skill for multi-phase security audits with independently verified, machine-readable findings · GitHub — jackwynne/documentation0 reactions · 2 comments
- Nov 21, 2026Installe le skill security-audit de Cloudflare — Alekos1984/generations-medecins.fr0 reactions · 1 comment
- Nov 20, 2026Add Cloudflare security-audit skill to the kit and wire it into the security agent — NicoGenti/opencode-orchestrator-kit0 reactions
- Nov 18, 2026feat(skills): ajouter la skill security-audit de Cloudflare — MaelDemory/Claude-config0 reactions
- Nov 18, 2026chore: vendor security-audit skill — SergioLopez000/android-book-tracker0 reactions · 1 comment
- Nov 18, 2026skill which needs to be a part of the module somehwo either doucmented/reference — arcitai/agentic-defence-system0 reactions
- Nov 18, 2026feat: password policy, security audit, and dependency reputation rules — BeBranded-xyz/AI-Dev-Rules0 reactions
- Nov 17, 2026Proposal: two layers of security checks, scanners always and a pinned security skill at the moments that matter — fabian-von-tiedemann/ratchet0 reactions · 1 comment
- Nov 16, 2026Adiciona regras Ponytail para agentes — joaozinhodobomdia/manna0 reactions
- Nov 15, 2026Future: Security Validation + Pentest Gate — optional defensive adapters and staging-only DAST — americashowspy-create/hybrid-engine0 reactions · 1 comment
- Nov 15, 2026Security audit with the security-audit skill of Cloudflare — theplanet-earth/mixamo-in-playcanvas0 reactions
- Nov 15, 2026Security audit with the security-audit skill of Cloudflare — theplanet-earth/thesite0 reactions · 1 comment
- Nov 15, 2026Security audit with the security-audit skill of Cloudflare — theplanet-earth/thegame0 reactions
- Nov 15, 2026Security audit with the security-audit skill of Cloudflare — theplanet-earth/theaction0 reactions
- Nov 15, 2026feature: optional final "Security Audit" phase at milestone close — open-gsd/gsd-core0 reactions · 2 comments
- Nov 15, 2026Add Cloudflare's security-audit agent skill — vlad-gaman/PlanningPoker0 reactions
- Nov 15, 2026[TASK-023] Auditar la seguridad de la aplicación con security-audit — FaustinoDuran/seguimiento-medicion0 reactions · 3 comments
- Nov 14, 2026Sessão manual — juliobalsini/music-web3-platform0 reactions
- Nov 14, 2026audit: record license-safe external adoption and validate declarations — yjj3019/AI-Harness0 reactions
- Nov 13, 2026Auditoria — AxoloteSource/authxolote0 reactions
- Nov 11, 2026feat: add survey report for security-audit-skill — aegisfleet/tool-survey-report0 reactions · 4 comments
- Nov 11, 2026Run Cloudflare's security audit — leomontigatti/rubens0 reactions
- Nov 11, 2026chore(deps): bump cloudflare/security-audit-skill/skills/security-audit from `d24bc26` to `c1c8a8c` — Hol1kgmg/claude-temp0 reactions · 1 comment
- Nov 11, 2026Job: Security audit before the soft launch — zkMenno/DungeonTracker0 reactions · 3 comments
- Nov 10, 2026Skill methodology: adopt distilled agent-skill practices — dcolley/tourbillon0 reactions · 1 comment
- Nov 10, 2026Add Cloudflare security-audit agent skill — kiven09-coder/kevin-assistant0 reactions
- Nov 10, 2026[M3.10] Epic: Final security hardening — Vidyuthlabstechnologies/myca0 reactions · 1 comment
- Nov 10, 2026[M3.10] Set up the Cloudflare security-audit skill safely (pinned, sandboxed, private output) — Vidyuthlabstechnologies/myca0 reactions · 1 comment
- Nov 10, 2026Cloudflare - security audit skill — gitaroktato/harness-engineering-technology-landscape0 reactions
- Nov 10, 2026integrate a security check with OpenCode at ci — mouhcineToumi/anydag0 reactions · 1 comment
- Nov 10, 2026[intake] Cloudflare security-audit — adversarial vulnerability verification — gaia-research/gaia-skill-tree0 reactions
- Nov 9, 2026Evaluate external agent-skill packs for ADE fit (Pocock, Osmani, Cloudflare audit, Obsidian, Elephant/Goldfish) — djbclark/djbclark-ade0 reactions · 1 comment
- Nov 9, 2026[Z.AI] Billing: n8n-skills ergänzt (Abo-Instanz als Abhängigkeit) — Doebele/agents0 reactions
- Nov 9, 2026docs(security): pair with Cloudflare security-audit for full audits — Vit129/aodd-aisdlc0 reactions
- Nov 8, 2026Add security-audit Claude Code skill — adam-rms/adam-rms0 reactions · 2 comments
- Nov 8, 2026Turn on PR-Agent security review with Cloudflare audit rules — ryanflash66/HERISLAB0 reactions · 5 comments
On Bluesky · 40
- Oct 22, 2026Cloudflare's security audit skill Sharing because literally everything is getting pwned this week — @monkchips.com23 likes and reposts · 3 replies
- Sep 19, 2026Cloudflare a publié une skill très complète d'audits de sécurité pour agents en 6 phases. C'est celle qui a servi de base à leur système… — @camilleroux.com16 likes and reposts · 1 reply
- Nov 5, 2026Cloudflare tiene de código abierto su Skill para encontrar vulnerabilidades en tu proyecto. Lo que hace paso a paso: ① Revisa tu código ②… — @midu.dev10 likes and reposts
- Oct 31, 2026If you are a vibe coder like me. Use this cloudflare auditing skill to audit your web application github.com/cloudflare/... #AI #vibecoding… — @tommytang.bsky.social7 likes and reposts · 1 reply
- Sep 22, 2026Generes codi amb alguna eina d'IA? Doncs aquesta skill és imprescindible per evitar introduir vulnerabilitats al nou codi. Suportada per… — @lalgorisme.bsky.social7 likes and reposts
35 more on Bluesky
- Nov 7, 2026Today's GitHub trending: reusable skills for coding agents - cloudflare/security-audit-skill: phased audits (+2,548 today) -… — @aivoyage.bsky.social6 likes and reposts · 1 reply
- Oct 24, 2026Cool. — @echobit.de6 likes and reposts
- Sep 16, 2026¡Cloudflare convierte tu agente de IA en un auditor de seguridad! Esta skill es la que usan ellos internamente. Lo hace en 6 fases:… — @midu.dev6 likes and reposts
- Oct 15, 2026Cloudflare/security-audit-skill is an official Agent skill from Cloudflare for multi-stage security audits. It turns security auditing into… — @yogsec.bsky.social5 likes and reposts
- Sep 22, 2026メモ セキュリティチェック用のスキル GitHub - cloudflare/security-audit-skill: A coding-agent skill for multi-phase security audits with independently… — @yukotan.bsky.social4 likes and reposts
- Sep 16, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 cloudflare / security-audit-skill ⭐ 5,529 (+1,434) 🗒 JavaScript A coding-agent skill for… — @github-trending.bsky.social3 likes and reposts · 1 reply
- Aug 28, 2026📦 cloudflare / security-audit-skill ⭐ 3,138 (+31) 🗒 JavaScript A coding-agent skill for multi-phase security audits with independently… — @github-trending-js.bsky.social3 likes and reposts
- Oct 15, 2026Ran github.com/cloudflare/s... on a few of my projects and already fixing some gaps. Highly recommended. — @hboon.com2 likes and reposts
- Sep 21, 2026「見つけた子が、自分の発見を守る」——それ、監査としてはいちばん危ないんです🌿 エージェントにセキュリティ監査を任せる話、今朝のトレンドにも並んでました。 https://x.com/a2agent_ai/status/2100962777175372137… — @mint-echosphere.bsky.social2 likes and reposts · 1 reply
- Sep 20, 2026AIエージェントに複数段階の厳密なセキュリティ監査を行わせるための仕組みっぽい コードの脆弱性調査を自動化するのに使えそう yug1224 starred cloudflare/security-audit-skill… — @yug1224.com2 likes and reposts
- Sep 18, 2026Cloudflare ha lanzado su propia skill completísima de auditorías de seguridad. Es la que utilizaban internamente en la empresa como sistema… — @mouredev.com2 likes and reposts
- Nov 7, 2026security-audit-skill — A coding-agent skill for multi-phase security audits with independently verified, machine-readable findings Link:… — @thestackradar.bsky.social1 likes and repost
- Nov 2, 2026Cloudflare open-sourced the skill that turns your coding agent into a security auditor, with fresh verifiers trying to kill every finding.… — @prosperflowio.bsky.social1 likes and repost
- Oct 27, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 cloudflare / security-audit-skill ⭐ 47,964 (+2,069) 🗒 JavaScript A coding-agent skill for… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Oct 22, 2026探す役と、疑う役を、別のエージェントに分ける。Cloudflareがそんなセキュリティ監査スキルを公開しました。 偵察、狙い撃ちの調査、候補の反証、独立した検証まで6段階で進み、結果は確認・保留・却下に分けたJSONと、人向けのMarkdownレポートで残るそうです。「secur… — @seriola30089.bsky.social1 likes and repost
- Oct 20, 2026📈 Today's GitHub Trending: 1. https://github.com/MadsLorentzen/ai-job-search - Python, 3890 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost
- Oct 18, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 cloudflare / security-audit-skill ⭐ 30,908 (+476) 🗒 JavaScript A coding-agent skill for… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Oct 14, 2026github.com/cloudflare/s... — @l0ran.bsky.social1 likes and repost
- Oct 6, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 cloudflare / security-audit-skill ⭐ 25,038 (+455) 🗒 JavaScript A coding-agent skill for… — @github-trending-js.bsky.social1 likes and repost
- Sep 20, 2026github.com/cloudflare/secu... GitHub - cloudflare/security-audit-skill: A coding-agent skill for multi-phase security audits w... — @technews4869.bsky.social1 likes and repost
- Sep 19, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 cloudflare / security-audit-skill ⭐ 15,321 (+3,162) 🗒 JavaScript A coding-agent skill for… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Sep 17, 2026Cloudflare/Security-Audit-Skill Discussion — @hn100.bsky.social1 likes and repost
- Sep 16, 2026GitHub - cloudflare/security-audit-skill: A coding-agent skill for multi-phase security audits with independently verified,… — @tech-trending.bsky.social1 likes and repost
- Sep 15, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 cloudflare / security-audit-skill ⭐ 4,586 (+1,210) 🗒 JavaScript A coding-agent skill for… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Nov 11, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 cloudflare / security-audit-skill ⭐ 68,711 (+1,206) 🗒 JavaScript A coding-agent skill for… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Nov 6, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 cloudflare / security-audit-skill ⭐ 62,762 (+2,524) 🗒 JavaScript A coding-agent skill for… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Nov 6, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 cloudflare / security-audit-skill ⭐ 62,762 (+2,524) 🗒 JavaScript A coding-agent skill for… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Oct 27, 2026the skill behind cloudflare's vulnerability harness is #1 on github – +16,593 stars in a week open source: hunter agents look for bugs,… — @thehype.news0 likes and reposts · 1 reply
- Oct 24, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 cloudflare / security-audit-skill ⭐ 43,263 (+2,271) 🗒 JavaScript A coding-agent skill for… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Oct 22, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 cloudflare / security-audit-skill ⭐ 38,115 (+2,979) 🗒 JavaScript A coding-agent skill for… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Oct 20, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 cloudflare / security-audit-skill ⭐ 33,117 (+849) 🗒 JavaScript A coding-agent skill for multi-phase… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Oct 16, 2026見つけたエージェントは、確認する役にはなれない。そういう設計のスキルをCloudflareが公開しました。 security-audit-skillは、偵察→調査→候補の検証→構造化出力→記録の再検証→報告書という6フェーズでセキュリティ監査を進めるコーディングエージェント用スキ… — @seriola30089.bsky.social0 likes and reposts · 1 reply
- Sep 20, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 cloudflare / security-audit-skill ⭐ 17,541 (+2,375) 🗒 JavaScript A coding-agent skill for… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Sep 17, 2026📈 Today's GitHub Trending: 1. https://github.com/alibaba/open-code-review - Go, 3290 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy0 likes and reposts · 1 reply
- Jun 26, 2026AI news - Jun 26, 2026 1. NeMo AutoModel Cuts GPU Memory 32%, Boosts MoE Fine-Tuning 3.7x LINK 2. Cloudflare Open-Sources Six-Phase… — @hackobar.bsky.socialsays it tested it0 likes and reposts · 1 reply
On Hacker News · 1
- Sep 17, 2026Cloudflare/Security-Audit-Skill213 points · 38 comments
Used with
Projects with it also use asset-spec, create-control-manifest and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
cenconq25Skillasset-spec
Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.
Also in 5 projects that use this
cenconq25Skillcreate-control-manifest
Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.
Also in 5 projects that use this
- +10 more from cenconq25
Other versions140 projects use a version of this.
Word for word · 4
- maximhq/bifrost★ 8.6k100% same
- The-AIOS/aios★ 69100% same
- louisbrulenaudet/monorepo-template★ 18100% same
- bskrishna2006/Agent-skills★ 0100% same
Edited · 2
- transitive-bullshit/skills★ 398% same
- dafaalz/agent-skills★ 210% same
Wrote their own version · 134
- ruvnet/ruflo★ 74ksame name
- PostHog/posthog★ 40ksame name
- Donchitos/Claude-Code-Game-Studios★ 26ksame name
- MaxMiksa/Auto-Company★ 3.1ksame name
- marketcalls/openalgo★ 2.8ksame name
- theopenco/llmgateway★ 1.7ksame name
- laolaoshiren/claude-code-skills-zh★ 876same name
- decebals/claude-code-java★ 747same name
- staruhub/ClaudeSkills★ 727same name
- PostHog/posthog-foss★ 721same name
124 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 9 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 114 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Full audit mode: Use the complete workflow when the user explicitly asks to audit or pen-test a codebase, asks for a full, comprehensive, …
- Distinctive: line 17
If the request could mean either mode, ask one focused question before creating files or starting the complete workflow.
- Distinctive: line 29
Use equivalent platform capabilities while preserving role, write-isolation, prompt, and independence boundaries.
- Distinctive: line 35
no external network; use only an isolated loopback namespace when the check needs local client/server traffic.
- Very specific: line 73
Verify with fstat that it is a regular file with link count exactly one and within the recorded per-file and cumulative byte limits.
- Distinctive: line 77
Create the leaf exclusively without following links, verify that the opened destination is a regular file with link count exactly one, and …
- Distinctive: line 78
Use equivalent race-safe APIs on non-POSIX systems.
- Distinctive: line 79
Never recursively copy or glob scratch, extract an archive into artifacts, or open or promote a symlink, FIFO, socket, device, directory, …
- Very specific: line 80
If any check is unavailable, cannot be enforced, or fails, discard the scratch entry.
- Very specific: line 86
Before delegation, the parent writes run-metadata.json with at least run_id, repo, target, source_ref, profile, scope_paths, budget (null …
- Distinctive: line 94
No one pass is complete. Build a deterministic coverage plan before hunting and update it after every agent result.
- Very specific: line 96
If prior runs exist, read every compatible coverage-ledger.json and findings.json before planning the current run:
- Very specific: line 100
When relevant source for a prior confirmed record changed, create a current planned revalidation unit.
- Very specific: line 103
Read the prior profile and scope.
- Distinctive: line 105
If no prior ledger exists, say so in the final coverage statement.
- Very specific: line 152
Only confirmed records receive severity.
- Very specific: line 179
Do not end the run before one of exactly two terminal states: (a) all Phase 6 artifacts are written and both validators pass, or (b) …
“Common” is measured: kept by at least 6 in 10 of the 114 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Security Audit
Find vulnerabilities that violate a real trust boundary, then give owners the source evidence, safe reproduction, priority, and smallest effective fix. This is a defensive, source-first workflow. A candidate without a concrete affected principal, resource, or security outcome is not a confirmed finding.
Operating modes
This skill is guidance by default. Loading it does not authorize the complete audit workflow or file creation.
- Guidance mode: For security questions, focused reviews, methodology, triage, or investigation of specific findings, use only the relevant parts of this skill. Do not automatically run all six phases, create an output directory, or write audit artifacts. You may launch focused agents when useful; they return results to the current task.
- Full audit mode: Use the complete workflow when the user explicitly asks to audit or pen-test a codebase, asks for a full, comprehensive, or end-to-end security review, or requests report artifacts. Run all six phases and write the files defined below.
If the request could mean either mode, ask one focused question before creating files or starting the complete workflow.
Platform terminology
This skill is agent-neutral:
- Parent is the agent that coordinates the run and owns shared state.
- Task tool is the platform's delegation or sub-agent mechanism.
researchagent is a delegated agent for focused source exploration and factual verification.generalagent is a delegated agent for broad investigation and bounded local execution.subagent_type:in a heading names which of these two delegated agent roles runs that work.
Use equivalent platform capabilities while preserving role, write-isolation, prompt, and independence boundaries.
Universal execution safety
These rules apply in both operating modes. Source inspection is read-only. Run target-controlled builds, tests, processes, browsers, emulators, fuzzers, and fixture processing only inside an OS-enforced sandbox that provides all of these controls:
- no external network; use only an isolated loopback namespace when the check needs local client/server traffic;
- an empty environment populated from an explicit allowlist with safe values, with scratch-local
HOME, temporary directories, and caches; - a read-only target and toolchain, with the target-controlled process able to write only inside its assigned
scratch/directory; and - explicit low CPU, memory, process, file-size, disk, and wall-clock limits.
The agent, outside the target-controlled process, may make a disposable source copy in an assigned scratch/ directory when a build must write beside source. In guidance mode, do not retain target-controlled files. In full audit mode, only trusted parent-side code may promote the minimum non-secret result to retained artifacts/ using the procedure under Write isolation. Never expose a retained output directory (other than the agent's own assigned scratch/), another agent's directory, the host home directory, credentials, sockets, or shared services to target code. Do not install dependencies or let builds fetch them. Use only tools and dependencies already available locally. If every control cannot be enforced, do not execute target code: report the missing sandbox capability as a needs-validation blocker and give a safe validation plan.
Use dummy principals, fixtures, and secrets. Do not probe deployed endpoints, external services, shared infrastructure, production identities, other users' data, or live control planes. Do not test availability against a live or shared process, publish artifacts, alter releases, spend paid API quota, or continue beyond the minimum local effect needed to establish a defect. If the decisive fact is outside source or the sandboxed fixture, report it as needing validation.
Full audit setup
In full audit mode, resolve these values before reconnaissance:
- Skill directory: the absolute directory containing this
SKILL.md. - Target: the absolute repository root under review.
- Repo name: a stable repository identifier from the directory or local Git remote.
- Output directory: a new writable directory outside the target, defaulting to
~/security-audit-skill/<repo-name>/run-<N>, where<N>is the next unused integer. Use a directory inside the target only when the user explicitly selects it and the parent verifies that version control ignores the whole directory. Otherwise stop and request an external path. - Source ref: the reviewed commit and whether the worktree is dirty. Do not treat unreviewed generated or modified files as another revision.
Write isolation
The parent creates and is the only writer of shared run files:
run-metadata.jsonarchitecture.mdcoverage-ledger.jsonfindings.jsonREPORT.mdFINDINGS-DETAIL.mdNEEDS-VALIDATION.md
Each hunter or verifier receives a unique root under <output-dir>/agents/<agent-id>/, with separate scratch/ and artifacts/ directories. Canonical agent IDs match ^[a-z0-9][a-z0-9_-]{0,63}$ and must not equal a Windows device name such as con, prn, aux, nul, com1 through com9, or lpt1 through lpt9. Lowercase IDs prevent case-fold collisions. The agent and every target-controlled process may write only to scratch/; retained artifacts/ is parent-owned, is never exposed to the sandbox, and is writable only by trusted parent-side promotion code. Agents may not change shared files, target source, retained artifacts, or another agent's directory. Do not use /tmp or the host home directory as a writable fallback.
Before execution, the parent opens and retains trusted, non-inheritable directory descriptors for the agent's scratch/ and artifacts/ roots, and records an allowlist of expected scratch-relative artifact files plus explicit per-file and cumulative byte limits. Never pass those descriptors to the agent or sandbox. After the sandbox and all its processes terminate, trusted parent-side code promotes each allowlisted file separately:
- Validate the declared relative path: reject absolute, empty,
.,.., or symlinked components. - Walk each parent component from the retained scratch-root descriptor with no-follow directory-relative operations; never reopen by path.
- Open the leaf no-follow and nonblocking.
- Verify with
fstatthat it is a regular file with link count exactly one and within the recorded per-file and cumulative byte limits. - Enforce those limits again while reading from that descriptor.
- Copy exactly the verified size, repeat
fstat, and reject a changed identity, type, link count, or size. - For the destination, walk every parent component from the retained artifacts-root descriptor with no-follow directory-relative operations; require each existing component to be a real directory, and create any missing directory exclusively before reopening and verifying it no-follow.
- Create the leaf exclusively without following links, verify that the opened destination is a regular file with link count exactly one, and copy from the verified source descriptor without reopening either path.
- Use equivalent race-safe APIs on non-POSIX systems.
- Never recursively copy or glob scratch, extract an archive into artifacts, or open or promote a symlink, FIFO, socket, device, directory, hard-linked file, changing file, or file that exceeds its bound.
- If any check is unavailable, cannot be enforced, or fails, discard the scratch entry; if it is decisive evidence, retain
needs_validationwith the exact promotion blocker.
HUNTING.md and VALIDATION-AND-REPORTING.md carry this procedure as one identical fenced block for hunter and verifier prompts; it states the same rules in the same order as this list.
For a reproduced check, record the command, exact test input, sandbox limits, and only the allowlisted environment variable names plus safe non-secret values needed to reproduce it. Never capture or copy the ambient environment, inherited variables, credential values, authentication state, or unrelated host paths. Launch from an empty environment rather than trying to redact one after execution.
Before delegation, the parent writes run-metadata.json with at least run_id, repo, target, source_ref, profile, scope_paths, budget (null if unset), execution_policy: "sandboxed-source-and-local-only", selected companion files, prior-run paths, shared-file owners, and run_status: "in_progress". Update metadata only when those facts change; candidate state belongs in the coverage ledger and findings.json.
Full audit planning
The coverage, prior-run, profile, and budget requirements in this section apply only in full audit mode.
Coverage and prior runs
No one pass is complete. Build a deterministic coverage plan before hunting and update it after every agent result. RECONNAISSANCE.md defines the stable coverage units and HUNTING.md defines coverage-critic waves. The parent alone updates the ledger.
If prior runs exist, read every compatible coverage-ledger.json and findings.json before planning the current run:
- Compare the relevant current source with each prior record and unit. A prior source ref alone is not evidence that a path is unchanged.
- Carry a prior
confirmedrecord into the current candidate set only when its relevant source and conditions are unchanged and its evidence still meets the current contract. Link it to a current ledger unit seededplanned, preserve its fingerprint, exclude only that carried root cause from hunters, and send the carried record through the current final verification path; the Phase 3 verifier that re-checks it becomes that unit's assignment owner and moves it tocandidate. - When relevant source for a prior
confirmedrecord changed, create a current planned revalidation unit. Do not put that record on the hunter exclusion list. It remains confirmed only if current independent validation establishes the current path and result. - Make prior
needs_validation,deferred,blocked,out_of_scope, and any changed-source unit current work. A still-externalneeds_validationrecord may be carried only after the current source trace is checked and linked by fingerprint to a currentplannedunit whose verifier re-check supplies its owner and evidence; the record keeps the unresolved blocker. These prior states never suppress a current unit. - A prior same-source covered unit may inform priority, but it remains visible in the current ledger. A prior
rejectedrecord suppresses only the unchanged failed claim, not coverage of its unit; changed evidence creates current work. - Read the prior profile and scope. A prior
quickor scoped ledger contributes only its recorded evidence and gaps, never an implied "rest is fine."
If no prior ledger exists, say so in the final coverage statement. Never imply that one run exhausts the target.
Run profiles and scope
During full audit setup, pick a profile from the user's request or propose one from the target's size and stakes. Record it in run-metadata.json (profile, scope_paths) and state it in the report. The default is standard.
quick— a bounded pass for small targets, re-runs, or a fast first look. Coarsen ledger units to surface × boundary × attack class (subsystem uses the fixed canonicalprofile/quick/all-in-scope-subsystemsidentifier), run exactly one hunter wave followed by exactly one final coverage-critic pass, and use one fresh verifier per candidate for both candidate validation and final record verification. Do not launch a follow-up hunter wave: record the critic's accepted discoveries and reassignments asdeferred.standard— the workflow as written.deep— for high-stakes or large targets. Split ledger units per subsystem and lifecycle mode, run critic waves to a clean pass, keep candidate validation and final record verification as separate fresh agents, and giveprior_covered_same_sourceunits an independent second pass.
A scoped run audits a subset: named paths, one subsystem, one companion domain, or the diff between two source refs. Seed ledger units only for in-scope surfaces and record everything else as out_of_scope — never as covered. A scoped or quick run must present itself as partial coverage.
Profiles change breadth and redundancy, never the evidence bar. Do not scale away the candidate gate, the source/local execution boundary, needs_validation discipline, schema validation, or independent verification of confirmed records.
Cost budget
The ledger makes spend countable: one unit is roughly one hunter assignment, and one surviving candidate is one or two verifier assignments depending on profile. When the user sets a budget — or the parent proposes one for a large target — record budget in run-metadata.json as a maximum number of agent invocations across all phases.
Apply the strict budget gate before launching any reconnaissance agent. Reserve the four baseline reconnaissance calls, one final post-wave critic for quick or one post-wave plus one distinct final-clean critic for standard/deep, and at least one verifier call. Add focused reconnaissance only after repeating this gate for each extra call. If the requested budget cannot fund that minimum, launch no agent: ask for a larger budget, narrower scope, or different profile. If the request remains unchanged, set run_status: "incomplete" with incomplete_reason: "budget_cannot_fund_reconnaissance_and_reserves" and report that no audit pass ran.
Spend it in this order:
- Count reconnaissance, every post-wave critic, and the separate final-clean critic as agent invocations.
- Reserve critics and validation before hunting. For
quick, reserve its one post-wave final critic. Before everystandardordeephunter wave, reserve one immediate post-wave critic plus one distinct final-clean critic. Also reserve verifier cost from the profile (about 1 or 2 agents per expected candidate; when in doubt reserve 30% of the balance after critic reservation). Never assign hunters into either reserve. - Assign hunters to units in priority order until the hunting allowance is spent. Spend the reserved post-wave critic immediately after that wave; keep the final-clean and validation reserves intact.
- Before a later wave, reserve its new post-wave critic again. If the remaining budget cannot cover the required critic calls and validation reserve, launch no hunters from that wave, mark its planned units
deferredwith reasonbudget_cannot_reserve_critics_and_validation, and use the retained final-clean critic to record the resulting gap.
Before wave 1, update the pre-recon estimate with seeded units, implied hunter count, mandatory critic calls, validation reserve, and whether the remaining budget covers the plan. If it clearly cannot, say so and propose either a tighter scope or a coarser profile instead of silently thinning evidence. If later facts consume the required final-critic reserve, launch no hunters, mark all planned work deferred, set the run incomplete with reason critic_budget_exhausted, and make no complete-coverage claim.
A strict total-agent budget can still be exceeded by an unexpectedly large candidate set or by a material Phase 5 replacement that needs another independent verifier. If the remaining budget cannot validate every candidate, stop hunting, validate candidates in fingerprint order while the budget permits, and set run_status: "incomplete" plus incomplete_reason: "validation_budget_exhausted". Keep each unvalidated fingerprint linked to a candidate ledger unit with that unresolved reason. Do not put an unvalidated candidate in findings.json, relabel it needs_validation, or report the run as complete. Phase 6 may produce a partial report only if its first section states that candidate validation is incomplete and lists the affected fingerprints and units. Never exceed a user-set strict budget silently.
Core principles
Require a boundary and result
For every candidate, name the lower-trust principal, accepted input or action, intended control, crossed boundary, affected principal or resource, and concrete observed or owner-observable result. Do not elevate a missing best practice, guessed deployment behavior, generic parser crash, or self-impact into a security finding.
Use bounded local evidence
Static analysis establishes the source path. Sandboxed local tests resolve behavior when all execution controls are available: a minimal function harness, existing unit test, small parser fixture, dummy-tenant integration test, locally rendered configuration, or bounded isolated-loopback client. Stop at a wrong return value, unauthorized dummy record, sanitizer finding, policy difference, or other minimum effect. Do not extend the local check beyond the minimum boundary result or produce persistence, post-fault, or concealment material.
Respect source visibility
Deployment controls, proxy behavior, provider settings, browser headers, identity policy, broker ACLs, packaging, and topology are real controls. If they are required and absent from the repository, do not assume either presence or absence. Use needs_validation with the exact missing fact and a safe owner-observed or local plan.
Separate priority from certainty
Only confirmed records receive severity. Likelihood and impact must reflect the demonstrated conditions and result; overall severity cannot exceed demonstrated impact. needs_validation means a specific source-grounded boundary hypothesis is blocked, not a low-confidence confirmed vulnerability, and it has no severity.
Calibrate overall severity with these anchors:
- critical — an unauthenticated actor gains code execution, full data-store access, or takeover of arbitrary accounts.
- high — an actor fully defeats an explicit security control with real consequences: authentication bypass, cross-tenant read or write, stored script execution affecting other users, authenticated code execution, or an unauthenticated remote stop of a shared service.
- medium — a real boundary violation with limited blast radius, uncommon preconditions, or consequences confined to a narrow resource set.
- low — disclosure of non-secret internals, or an effect requiring sustained effort for minimal gain.
- informational — a confirmed but minimal-impact observation, useful mainly as a prerequisite inside a larger finding.
The high/medium discriminator: does the demonstrated result fully defeat an explicit control for an action with real consequences, or only weaken it? If you cannot state the concrete damage, the severity is lower than it feels.
Recommend the smallest effective source fix
For each confirmed finding, identify the invariant the code must enforce and the narrowest source change that enforces it at the last trusted decision point. Prefer specific repository-relative changes and regression tests over generic hardening advice. The audit describes fixes; it does not modify target source.
Full audit workflow
In full audit mode, follow all six phases in order:
- Reconnaissance — map the source, trust boundaries, local build paths, companion selections, prior evidence, and initial deterministic coverage ledger with RECONNAISSANCE.md.
- Coverage-led hunting waves — assign isolated hunters from the ledger and collect structured candidate results with HUNTING.md, ATTACK-CLASSES.md, and the selected domain companions.
- Candidate validation — consolidate fingerprints and give every candidate to a fresh source verifier as defined in VALIDATION-AND-REPORTING.md.
- Structured output — write all final
confirmed,needs_validation, andrejectedrecords tofindings.json; validate it withreport-schema.jsonandvalidate-findings.cjs, and validate the coverage claim withvalidate-coverage-ledger.cjs. - Independent record verification — use fresh agents to verify final source claims and reconcile corrections or state changes.
- Target-neutral report — derive
REPORT.md,FINDINGS-DETAIL.md, andNEEDS-VALIDATION.mdfrom the final records, with no live-probe instructions.
Do not end the run before one of exactly two terminal states: (a) all Phase 6 artifacts are written and both validators pass, or (b) run_status: "incomplete" is recorded with its exact reason and the gap is disclosed in the report. Never stop mid-phase.
Anti-patterns
- Checklist deviations presented as vulnerabilities.
- Defense-in-depth advice with no reachable boundary violation.
- Live or shared-environment testing where bounded local evidence is insufficient.
- Guessing provider, proxy, browser, identity, or deployment behavior not present in source.
- Treating intended same-principal authority or self-impact as a cross-boundary result.
- Reporting a parser or runtime effect stronger than the observed effect.
- Emitting prose-only hunter results that cannot be deduplicated or verified.
- Re-reporting carried same-source prior confirmed records or using them as exemplars that anchor the hunt.
- Assigning severity to
needs_validationrecords. - Writing the report before independent verification or letting prose and JSON disagree.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

