Best Claude skills for security: hack your app
TL;DR
- Claude builds your app like a developer. It doesn't check it like a hacker.
- Claude-Red teaches Claude to attack like a red team.
- Security Audit hunts for holes in your code, then tries to disprove each one.
- Raptor tests whether a hole can really be exploited and drafts a fix.
- All three are free to download under the MIT licence. Run them only on apps you own or may test.
The 3 best Claude skills for security
Claude should hack your app before you publish it, and these are three skills to help him do so. If you are new to this, start with AI from zero.
| Tool | Made by | The question it answers |
|---|---|---|
| Claude-Red | SnailSploit | How would a hacker attack this? |
| Security Audit | Cloudflare | Where are the holes in my code? |
| Raptor | Gadi Evron and co-authors | Could someone really get in? |
Claude-Red: make Claude think like a red team
A red team is the group a company hires to attack its own systems. Claude-Red is a library of 78 offensive security skills in 23 categories, including web applications, sign-in and identity, and wireless. Each skill is a SKILL.md file that gives Claude the method for one kind of attack.
Claude Code reads personal skills from ~/.claude/skills/<name>/, so copy the ones you need. For SQL injection:
git clone https://github.com/SnailSploit/Claude-Red
mkdir -p ~/.claude/skills
cp -r Claude-Red/Skills/web/offensive-sqli ~/.claude/skills/
These are attack methods. Use them only on your own app, or with written permission from its owner.
Security Audit: a Claude security review of your code
A normal scan gives you a long list of warnings, and you can't tell which ones are real. Security Audit is Cloudflare's skill for that. It maps your app, sends separate agents to hunt for holes, then gives each finding to a fresh agent that tries to prove it wrong.
The report keeps three groups apart:
- Confirmed: traced in your source code, with an observed result.
- Needs validation: one named fact is still unknown. Check these yourself.
- Rejected: disproved.
Install it:
npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit
Then open your project and ask: security audit this codebase. It needs Node.js and an agent that can run sub-agents. It only runs your code inside a sandbox; without one, the lead stays under "needs validation".
Run it more than once. Cloudflare reports that in their tests a single run found roughly half of what repeated runs found.
Raptor: could a hacker actually get in?
Not every hole is one a hacker could use. Raptor turns Claude Code into a security research agent. Its authors are Gadi Evron, Daniel Cuthbert, Thomas Dullien, Michael Bargury and John Cartwright. It scans your code, checks whether each finding can be exploited, and writes example exploits and patches for you to review. It does not apply the patches.
You need Claude Code with a subscription or an API key, plus Python 3.13 or newer, Node.js and a few tools listed in the install guide, which also has a container route. Get the stable release:
git clone --branch v3.1.0 https://github.com/gadievron/raptor.git
Inside a Raptor session, point it at your project and set a spending limit:
/agentic /path/to/code --max-cost-usd 5
Is there a built-in Claude Code security review?
Yes. Claude Code ships a /security-review command that reviews your pending changes. Anthropic also publishes it as a GitHub Action for pull requests, and warns that the Action is not hardened against prompt injection, so use it only on pull requests you trust.
It is a quick first pass on what you are about to ship. The three tools above go further: attack methods, a full audit and exploit checks.
Which one should you run first?
Go in the video's order:
- Claude-Red, so Claude thinks like a hacker.
- Security Audit, so your code really gets checked.
- Raptor, to learn which holes someone could use.
Running many agents at once? Read why my Claude usage limit ran out in 2 days.
Hi, I'm Seif Sgayer.
I'm a software engineer with 10+ years of shipping software. I build with AI every day and I teach what works.