AiIntermediate

Security Skills for Coding Agents: Bug Hunting at Scale

DeveloperHat Team
23 min read

TL;DR

Claude-BugHunter and Cloudflare's security-audit skill turned coding agents into bug hunters. How skills work, what they find, and the validation gate that keeps them honest.

Security skills are the most practical answer yet to a problem every team that hands code to an agent eventually hits: a capable model with no method is a fast way to produce confident, shallow work. Give the same model a written process — a checklist of what to look at, in what order, with what evidence counts as proof — and the output changes character. It slows down in the right places, checks its own claims, and produces findings a human can actually act on. That is the whole idea behind Agent Skills, and it is why security was one of the first domains where the format took off.

A skill is not a prompt you paste into chat. It is a small package — a folder with a SKILL.md file at its core — that teaches an agent how an expert works. The description at the top of that file is what the model reads when it decides whether the skill applies to the task in front of it. The body holds the method: the phases to run, the tools to use, the traps to avoid, and the bar a result has to clear before it counts. When the task matches, the agent loads the full skill; when it does not, the skill stays out of the way. That loading discipline is what makes the format cheap enough to keep dozens of skills installed without drowning the model in instructions it does not need.

This article looks at the moment security skills went mainstream. Three projects define it: Claude-BugHunter, a large community skill pack for external bug hunting; Cloudflare's security-audit skill, a disciplined six-phase audit method that seeded a fleet-wide discovery harness; and OpenAI's codex-security skill for Codex. They share a format and a premise — expert method, packaged — but they differ in audience, scope, validation model, and friction.

The skill is the method — the model is just the hands Claude-BugHunter 85 skills · 26.6k stars Cloudflare audit skill 6 phases · 79.7k stars openai/codex-security Nov 12 · code review Agent Skills standard SKILL.md · AAIF Oct 22 Six-phase audit recon → verify → report Human validation gate claims are not proof A skill packages expert method so the agent follows a process instead of free-styling.

What a security skill actually is

Agent Skills is an open format published by Anthropic as an open standard in December 2025. A skill is a folder containing a SKILL.md file — YAML frontmatter at the top, with name and description required — plus optional scripts and reference files the agent can call on as it works. Anthropic donated the standard to the Agentic AI Foundation, under the Linux Foundation, on October 22, 2026. Anthropic reports that more than 70 platforms support the format, with around 1 million skills published and around 280 million installs. Those are Anthropic's reported figures, and they explain the speed with which the ecosystem filled up: once the format was open and portable, a good method written once could run anywhere.

The loading model matters more than the file format. A skill loads progressively: only its name and description — roughly 100 tokens — sit in context until the skill fires, and the full body, scripts, and references load only when the task matches. That makes the description the most important line in the package: it is the trigger condition, not marketing copy. A vague description fires at the wrong time and wastes context; a precise one — task, domain, situation — fires when it should and stays silent otherwise. Skills load by topic, not by name: the model matches on what the skill does, not what it is called.

For security work, that structure solves a real problem. A general-purpose coding agent asked to "audit this codebase" will typically do something plausible and uneven: grep for a few known patterns, skim the authentication code, and report a mix of real issues and guesses, with no consistent standard for what counts as a finding. A security skill replaces that free-styling with a process. It tells the agent which phases to run and in which order, what evidence to collect before claiming a vulnerability, and how to report it so a human can reproduce it. The skill does not make the model smarter. It makes it disciplined — and in security work, discipline is most of the value.

If you are new to the broader skills ecosystem — how skills, tasks, and elicitation fit together in production agent setups — start with MCP Tasks, Elicitation & Skills. The mechanics there are the same ones these security skills build on; the difference here is what the method is pointed at.

The three skills, head to head

Claude-BugHunter, Cloudflare's security-audit skill, and OpenAI's codex-security skill all package expert method into SKILL.md, but they were built for different people doing different jobs. Comparing them on audience, scope, validation model, and install friction makes the choice straightforward.

Claude-BugHunter comes from the bug-bounty world. It is maintained by Sachin Sharma, known as ElementalSoul, as the repository elementalsouls/Claude-BugHunter, and it is the largest of the three by content: 85 skills and 16 slash commands on the main branch, built around 681 disclosed-report patterns across 24 vulnerability classes. The patterns come from real disclosed reports, which gives the pack its character — it teaches the agent what real bugs looked like in real programs, not what a textbook says they look like. As of November 28, 2026, the repository had 26,626 GitHub stars. It reached number one on GitHub Trending on November 18, 2026, as the top Python repository of the week, with 12,164 stars that week. The latest tagged release is v2.1, dated June 5, 2026. The code is under the MIT licence and the skill content under CC BY 4.0.

The scope is explicit and narrow in a way that matters: Claude-BugHunter covers the external attack surface only — assets you own or have written permission to test. It covers web vulnerability classes plus enterprise matrices that bounty hunters actually encounter, including Microsoft 365 and Entra, Okta, vCenter, SSL-VPN, and cloud IAM. Just as explicit is what it does not cover: internal Active Directory attacks, command-and-control frameworks, persistence, AMSI bypass, and iOS, kernel, and binary exploitation are all out of scope. That boundary is a feature, not a gap. A skill that says what it will not do is one you can trust to stay inside its lane.

Installation follows the Claude Code plugin route — add the marketplace, then install the plugin — or a copy install by cloning the repository and running the install script. All three install commands are in the block below, alongside Cloudflare's.

Cloudflare's security-audit skill comes from the other end of the spectrum: a platform team writing down how it audits its own systems. The repository is cloudflare/security-audit-skill, created on June 18, 2026, under the MIT licence. As of November 29, 2026, it had 79,656 GitHub stars — up from 68,678 on November 10 and 17,270 on September 20, 2026 — with the last push on September 14, 2026. The star count is the largest of the three, and the growth curve tells its own story: this is the skill that crossed over from security specialists to general developers. It also seeded Cloudflare's fleet-wide vulnerability-discovery harness, which is the strongest signal about what the method is for. It was not written as a demo. It was written to run at scale inside a company that operates a very large fleet.

The method is six phases: reconnaissance, isolated hunting, adversarial validation, schema-checked findings in a findings.json file, independent verification, and a report. The structure is the message: recon first so the agent understands the system before claiming bugs; isolated hunting so one hypothesis does not contaminate another; adversarial validation so a claim must survive an attempt to break it; a schema-checked file so output is machine-readable and comparable; independent verification so a second pass checks the first. Install it with the skills command. All three installs together:

# Claude-BugHunter: plugin install
/plugin marketplace add elementalsouls/Claude-BugHunter
/plugin install claude-bughunter@elementalsouls

# Claude-BugHunter: copy install
git clone https://github.com/elementalsouls/Claude-BugHunter
cd Claude-BugHunter
bash scripts/install.sh

# Cloudflare security-audit skill
npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit

OpenAI's codex-security is the newest and the least documented of the three in public. It is a security skill for Codex, and it appeared on GitHub Trending on November 12, 2026, with 11,921 stars at the time. That is the verified public footprint available for this article: a security skill, built for Codex, that reached trending status within days of appearing. The thin public record is itself useful information. With Claude-BugHunter you can read 681 patterns; with Cloudflare's skill you can read six phases and a findings schema. With codex-security, you are earlier in the story, and the right move is to read the repository itself before adopting it rather than relying on second-hand summaries.

Head to head, the trade-offs are clear. Claude-BugHunter is for the external hunter: broadest pattern coverage, bounty-oriented, strongest on web and enterprise edge systems, and explicit about staying outside internal networks. Cloudflare's skill is for the team auditing its own code and systems: narrower in pattern count, stronger in process discipline, with a findings schema and an independent-verification phase that make its output usable in a pipeline. Codex-security is for Codex users who want a native security skill in their existing workflow, with the least public detail available at the time of writing. Audience decides the pick more than star counts do. A bounty hunter and a platform team doing fleet audits are not doing the same job, and the skill that fits one will frustrate the other.

Six phases — each one stops a different kind of wrong Scope — in-scope assets only, written authorization Recon — map the surface before hunting Hunt — skill-driven, topic-triggered checks Adversarial validation — exploit it or it is not a finding Independent verification — second pass, fresh context Report — schema-checked findings.json Skip the validation phases and the audit is just confident output.

How the process works: from recon to verified finding

The three skills differ in detail, but a disciplined security skill runs the same shape of process — and knowing the shape helps you judge any skill and spot the moment a run goes off the rails.

It starts with reconnaissance. The agent maps the target before it hunts: what the system is, what it exposes, how authentication works, where user input enters, and where trust boundaries sit. Skipping this phase is the most common way a security run produces noise. An agent that starts hunting before it understands the system will flag intended behaviour as a bug — an admin endpoint that requires admin credentials is not a broken-access-control finding, and a public endpoint that returns public data is not an information-disclosure finding. Reconnaissance is what prevents that class of false positive, and it is cheap compared with triaging the noise afterwards.

Hunting comes next, and it is hypothesis-driven rather than pattern-matching alone. The agent forms a hypothesis — this input reaches that query without sanitisation, this token is accepted without verification — and then tests it. Claude-BugHunter's pattern library shapes this phase: the agent is not guessing which bugs exist, it is working through patterns drawn from disclosed reports and checking whether each one applies to the target in front of it. Cloudflare's method adds isolation here: hunt in isolation, so each hypothesis is tested on its own evidence rather than borrowing confidence from a neighbouring claim.

Then comes the part that separates a security skill from a generic audit prompt: adversarial validation. A finding from an agent audit is a claim, not a fact. The skill requires the agent to attack its own claim — to try to prove it wrong, to find the condition under which the exploit fails, to check whether the vulnerable path is actually reachable. If the agent cannot exploit it, it is not a finding. That rule sounds harsh, and it is meant to be. Security teams drown in unactionable reports; a skill that only forwards claims it could demonstrate is a skill that respects the triage queue.

The output format enforces the same discipline. Cloudflare's schema-checked findings.json is the clearest example: findings are structured records a pipeline can check, sort, and compare across runs, which forces the agent to supply evidence for each field rather than gesturing at it. If you adopt any security skill, insist on structured output — even if it is just a consistent template with severity, location, reproduction steps, and evidence. Unstructured findings are where false positives hide.

Independent verification is the final check before the report: a second pass re-checks the finding against the evidence. Validation asks whether the bug is real; verification asks whether the reasoning that produced it is sound. Both need to pass before a finding reaches a human with a recommendation attached.

A minimal SKILL.md skeleton shows how little of this is magic. The format is ordinary text with a frontmatter header:

---
name: security-audit
description: Audit this codebase for security vulnerabilities. Use when reviewing authentication, input handling, or access control before a release.
---

**Process**

1. Reconnaissance: map the attack surface and trust boundaries.
2. Hunt: test one hypothesis at a time; record evidence for each.
3. Adversarial validation: attempt to exploit each candidate finding.
4. Report: only findings with a working proof go in findings.json.

**Rules**

- A claim without a reproduction is not a finding.
- Never test a target you do not own or have written permission to test.
- Work in a sandbox; never run exploits against shared infrastructure.

That skeleton is the whole idea in miniature. The description tells the model when to fire. The process tells it what order to work in. The rules tell it what counts as proof and where the legal line sits. Everything else in a real skill — the pattern libraries, the scripts, the reference material — is elaboration on that shape.

The validation gate: why "exploit it or it isn't a finding"

False positives are the tax on automated security work, and the validation gate is how a good skill pays it. The problem is not that agents hallucinate vulnerabilities out of nothing. It is that they are very good at finding things that look like vulnerabilities and are not: a code path that is reachable only with privileges the attacker does not have, a sink that is guarded two functions up from where the agent stopped reading, a test endpoint that is disabled in production. Each of those is a plausible claim with a real code citation behind it. Each is also wrong, and each costs a human reviewer time to disprove.

Adversarial validation attacks that problem directly. Instead of asking the agent to confirm its own finding — which it will happily do — the skill asks it to refute the finding. Try the exploit with the lowest-privilege account. Try it without the precondition the finding depends on. Check whether the guard the agent missed actually holds. If the exploit works, the finding survives and the reproduction becomes the evidence. If it does not work, the finding is dropped, and the reason it failed is recorded so the same dead end is not re-litigated next run.

The three skills validate differently. Claude-BugHunter validates against known bug shapes: does this target exhibit the same shape, with the same preconditions, that produced a real disclosed report? Cloudflare's skill validates structurally: the finding must pass adversarial validation and then survive independent verification. The pattern approach recognises known bugs faster; the process approach is stronger on novel cases with no pattern to match. For a conventional web application, patterns find more, faster. For unusual code — custom protocols, novel access models — process wastes less of your time on confident misreads.

The gate has a cost: validation takes tokens and time, and it discards work. A run that surfaces thirty candidates and validates three looks less productive than one that reports all thirty — until you count the human hours spent triaging twenty-seven non-findings. The honest metric is not findings per run but verified findings per hour of human triage. A skill that reports fewer, better findings is doing its job; one that maximises raw output is optimising for the demo, not for the team that reads the report.

One failure mode the gate does not fix: validating a real bug in the wrong place. An exploit proved against a staging copy with debug flags enabled proves something about staging, not production. The findings record must say exactly where the proof ran — commit, configuration, environment — and a finding validated in one environment should be re-validated before it is treated as a production issue.

Sandboxing and isolation: the non-negotiable setup

A security skill asks an agent to do adversarial work: probe inputs, try bypasses, attempt exploits. That work must happen somewhere it cannot hurt anything. The sandbox is not a best practice layered on top of the skill. It is the precondition for running the skill at all.

Sandboxing means the agent works in an isolated environment with no access to production data, production credentials, or shared infrastructure. The test target is a disposable copy — a container, a virtual machine, a scratch account — that can be destroyed and rebuilt. Network access is restricted to the target. Secrets are not mounted into the sandbox. Anything the agent creates during the hunt stays inside the boundary. If the agent does something unexpected — and adversarial work is exactly the context in which unexpected things happen — the blast radius is the sandbox, not your systems.

The requirement is stricter here because the agent is explicitly asked to try hostile actions. A general coding agent that makes a mistake might write a bad file; a security agent that makes one might run an exploit against the wrong host or trigger a destructive action in a system it was meant to only observe. The skill's instructions reduce that risk; isolation is what makes the residual risk acceptable.

For the practical setup, start from Securing AI agents: sandboxing options, which covers the sandboxing choices in detail. The short version is: do not run a security skill in your normal development environment, do not point it at a shared staging system other teams depend on, and do not give it credentials that work anywhere outside the sandbox. Give it a fresh, disposable target with test data, and treat anything it produces as untrusted output until a human has reviewed it.

Isolation also applies inside the hunt itself, and Cloudflare's method names it explicitly: isolated hunting. Each hypothesis is tested on its own, with its own evidence, rather than letting one promising lead colour the next. That is a defence against a subtle failure mode in agent work — the model finds something interesting, decides the system is broadly vulnerable, and starts seeing the same bug everywhere. Isolated hunting forces the agent to prove each claim from scratch. It is slower. It is also the difference between a report with three solid findings and a report with three solid findings plus twelve echoes of the same idea.

The authorization rule is simple to state and easy to get wrong in practice: only test assets you own or have written permission to test. Claude-BugHunter states it as scope. Cloudflare's skill assumes it, because it was written for auditing your own systems. Every responsible security skill states it somewhere. The reason it needs stating is that an agent does not know what you own. It knows what you point it at. If you point it at a third-party system, it will happily probe that system with the same diligence it brings to your own code. The skill will not stop it. You have to.

Written permission matters because it is the difference between security research and unauthorised access in most jurisdictions. A bug-bounty program's scope statement is written permission with boundaries: these assets, these vulnerability classes, these rules of engagement. An internal audit mandate is written permission for your own systems. A verbal "go ahead and test it" from a colleague is not the same thing, and it does not cover you if the test touches a system that colleague does not control. Get the scope in writing, keep it with the run, and make the agent's target list match it exactly.

The boundary is also technical, not just legal. Claude-BugHunter's out-of-scope list — internal Active Directory attacks, command-and-control frameworks, persistence, AMSI bypass, iOS, kernel, and binary exploitation — is a reminder that a skill built for the external attack surface is not a general offensive tool. Using it as one is not a clever workaround; it is using the wrong tool for a job it was not designed to do, against targets you almost certainly do not have permission to test that way. If your job genuinely involves internal-network testing, that is a separate discipline with separate tooling, separate authorization, and separate oversight. Do not try to stretch an external-surface skill across that line.

Supply-chain exposure is where authorization gets subtle, because code you depend on is not code you own. A skill auditing your repository will naturally follow dependencies outward — useful, since a vulnerability in a dependency is a vulnerability in your system. But probing a third-party service your code calls is not the same as reading a dependency's source: the first tests someone else's system, the second reads code you already run. Keep that distinction in your run scope, and report third-party findings through that service's disclosure channel rather than probing further. See PyPI compromise: supply-chain defense: exposure to a compromised dependency is real, but the response is defence and disclosure, not unauthorised testing of the upstream.

One more line, about output: a skill's findings are claims, not proof and not a disclosure. Do not forward an unvalidated agent finding to a vendor, a bounty program, or a public channel as if it were confirmed. Validate it, reproduce it, then disclose it through the proper channel with the evidence attached. The skill finds candidates; you decide what is real and what happens next.

False positives, cost, and the human-review comparison

Pick the skill by the target, not by the star count What are you auditing? target decides the skill Own codebase Cloudflare 6-phase audit Bug bounty surface Claude-BugHunter: 85 skills Need it in CI harness + gates, not chat Sandboxed run never on a live host Human triage every finding reviewed Fix + re-test close the loop Stars measure attention. The validation gate measures whether to believe it.

The honest comparison is not agent versus human. It is agent-plus-human-triage versus human alone, and the trade is coverage against judgement. A skill can cover more surface in an hour than a human reviewer — more files, more patterns, more hypotheses — without fatigue. What it cannot do is judge context the way a reviewer who knows the system can: whether a finding matters in this deployment, whether the path is reachable in production, whether the fix is worth the regression risk. That judgement is the human's job; the skill's job is to make the human's time count by handing over fewer, better-verified candidates.

Cost follows the same shape. A skill run costs tokens and wall-clock time, and the validation gate is the expensive part: every candidate that gets exploited, re-checked, and verified consumes a full loop. A human review costs reviewer hours, which are scarcer and more expensive per hour, but the reviewer discards a false positive in minutes where an agent might spend a long validation loop on it. The efficient arrangement is therefore sequential, not parallel: let the skill do the broad first pass and the validation gate, then let a human triage only what survives. The triage command is deliberately boring — a short script that lists what survived and what was dropped, so the reviewer sees both:

jq -r '.findings[] | "\(.severity)\t\(.title)\t\(.location)"' findings.json
echo "--- dropped in validation ---"
jq -r '.dropped[] | "\(.title): \(.reason)"' findings.json

That output is the review queue. If the dropped list is empty, something is wrong — the gate is not running, or the agent is not recording its failures. A healthy run drops candidates, and the dropped list is where the skill earns trust: when a reviewer can see why twelve candidates were discarded, the three that survived are easier to believe.

The false-positive problem never goes to zero, and that is fine. The goal is a skill whose output a human can triage in a bounded time, with enough evidence per finding to reproduce it without re-running the audit. Measure that, not the raw count. If triage time per verified finding is falling, the skill is working. If it is rising, the gate is losing to noise, and the fix is usually a tighter description, a stricter validation rule, or a narrower scope — not a bigger model.

Architecture Decision

Decision: Adopt one security skill per workflow — Cloudflare's security-audit skill for auditing our own code, Claude-BugHunter for external-surface bug hunting — run sandboxed, with adversarial validation and human triage, and treat all agent output as claims until verified.

Context: Coding agents are already being asked to audit code, and without a packaged method they free-style: uneven coverage, no standard for what counts as a finding, and output a human cannot triage efficiently. Three mature skills now exist for this job, with different audiences and validation models, and the format itself is an open standard with broad platform support.

Options considered: A generic "audit this code" prompt with no skill; Claude-BugHunter for external hunting; Cloudflare's security-audit skill for our own systems; OpenAI's codex-security for Codex workflows; and a paid human-only review with no agent first pass.

Why this one: The generic prompt has no validation gate and no consistent output, so its triage cost dominates. The two named skills match the two jobs we actually do — auditing our own code and hunting the external surface — and both carry an explicit validation discipline, while codex-security is adopted only inside Codex workflows where it is native. Human-only review stays in the loop as triage and final judgement, not as the first pass.

What it costs you: Validation loops cost tokens and time on every run; sandbox setup and maintenance is real work; and the triage queue still needs a human who understands the system. A skill that reports fewer findings can also feel less productive, even when its verified-findings-per-triage-hour is higher.

When to reverse it: If verified findings per hour of human triage stops beating human-only review, if the skill's validation gate starts passing claims a reviewer keeps disproving, or if a skill's scope drifts past assets we own or have written permission to test — drop that skill and re-evaluate before the next run.

Start small: one repo, one skill, sandboxed

The adoption path is deliberately unambitious. Pick one repository — a real one, but not your most sensitive — and one skill that matches the job: Cloudflare's skill if you are auditing your own code, Claude-BugHunter if you are hunting the external surface, codex-security if you live in Codex. Run it sandboxed, against a disposable copy, with test data and no production credentials. Read the full report yourself, including the dropped candidates. Triage what survived, fix one real finding end to end, and note how long triage took.

Then run it again on the next release, and compare. Did the same false positives come back? Did the gate catch something the first run missed? Is triage getting faster? If the answers are good, widen the scope by one step — a second repository, or a scheduled run before each release. If they are not, tighten the skill's description, narrow the scope, or switch skills before you scale. The failure mode to avoid is the enthusiastic rollout: five repositories, three skills, no sandbox, and a triage queue nobody owns. That setup produces a burst of findings, a week of triage fatigue, and a quiet decision never to run the skill again.

Security skills do not replace security judgement. They package method so a coding agent can do the broad, disciplined first pass — recon, hypothesis, adversarial validation, structured output, independent verification — and hand a human a short list of claims worth believing. The validation gate is what makes that handoff honest. Start with one repo, one skill, sandboxed, human-triaged, and let the verified-findings-per-triage-hour tell you whether to go further.

Why This Matters

Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.

Trade-offs to Consider

Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.

When NOT to Use This

Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.

Decision Framework

Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.

Share this articleShare on XShare on LinkedIn

Keep the decision frameworks coming

One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.