Claude Code security: Anthropic's tools, Claude's cyber limits and a fallback
Claude Code security explained: /security-review, the Claude Security plugin and app, Code Review, which plans get each, Anthropic's cyber policy and a fallback.
Claude Code security is Anthropic's set of tools for finding and fixing vulnerabilities with Claude: /security-review, two plugins, a GitHub Action, Code Review and the hosted Claude Security app. Four of the six work with a paid plan or an API key; Code Review needs Team or Enterprise and the hosted app needs Enterprise (checked 2026-12-03). Claude's cyber safeguards can still stop authorized work.
What Claude Code security covers
"Claude Code security" means three things in search results, and this page answers all three. Mostly it means Anthropic's own security tools: a review command, two plugins, a GitHub Action, pull-request review and a hosted scanner. It also means keeping Claude Code itself safe on a developer machine, and whether Claude will do security work at all. Every Anthropic claim below links to the Anthropic or GitHub page it comes from; we read them on 2026-12-03.
Only for systems you own or have written permission to test.
Disclosure. Abliterator sells abliterated models behind an Anthropic-compatible API, and the last section shows how to run Claude Code on them. Everything before that section is about Anthropic's own products and doesn't need Abliterator.
Claude's security features compared
Anthropic ships six security tools around Claude Code, plus an access program for security teams. They differ in where they run and who can use them:
| Feature | What it does | Where it runs | Plan or availability |
|---|---|---|---|
/security-review |
Reviews the diff between your branch and origin's default branch for "injection, auth issues, and data exposure" | Your Claude Code session | "All Claude Code users", including Pro, Max, Ultra and API Console accounts (help article) |
| claude-code-security-review GitHub Action | Runs the same analysis on each pull request, filters likely false positives and posts inline comments | Your GitHub Actions runner | Needs an Anthropic API key; MIT license; last commit 2026-02-11 |
| Security guidance plugin | Makes Claude check its own edits: a pattern match on each edit, a model review each turn, a deeper review on each commit Claude makes | Your session, through hooks | "Available on all plans"; Apache-2.0 |
| Claude Security plugin | Multi-agent scan of a repository or a diff; verifier agents check every finding; patches are written as files you apply | Your session, your shell (Linux sandbox) or GitHub Actions | Beta; a paid plan, Anthropic API access, Amazon Bedrock, Google Cloud or Microsoft Foundry; version 0.13.1 |
| Code Review | Several agents review each pull request for bugs, including security vulnerabilities, and post inline comments and a check run | Anthropic infrastructure | Team and Enterprise plans, GitHub repositories |
| Claude Security (hosted) | Watches up to eight connected repositories, scans new commits, tracks each finding until it is fixed and suggests patches | claude.ai | Public beta on Enterprise; billed at token cost with no platform fee (help article) |
| Cyber Verification Program | Relaxes Claude's cyber safeguards for verified security professionals, in three tiers | Claude apps, Claude Code and the API | Paid plans and Console accounts with billing; not the Free plan |
Some details that the table can't hold:
- The names changed. Anthropic announced Claude Code Security on February 20, 2026 as "a limited research preview to Enterprise and Team customers", inside Claude Code on the web. Its product page, claude.com/solutions/claude-code-security, now redirects to the Claude Security page (checked 2026-12-03). The plugin's README calls the plugin "the in-your-session version of Claude Security".
- Mythos scans run only in the hosted app. The product page says "Scans powered by Claude Mythos models are only available in the Claude Security app on Claude.ai", with "no Cyber Verification Program access required." The plugin "uses the models available in your Claude Code account."
- None of them tests a running system. The security guidance docs say the review "reads the source code in your checkout, not a running site or deployed service", and Code Review works "without building or running your code".
- CI jobs need trusted contributors. The Action's README says it "is not hardened against prompt injection attacks and should only be used to review trusted PRs." The plugin's GitHub Actions job carries a similar warning: use it "only in a repository where you trust everyone who can push." The Action's
claude-modelinput still defaults toclaude-opus-4-1-20250805, so set it to a current model. - They add to your scanners. The plugin docs say it "doesn't replace your existing source-code security tools" and recommend running it "alongside static analysis, dependency scanning, and code review".
Which tool to use when
Pick by the moment in your workflow. Anthropic's security guidance and Claude Security plugin docs lay the tools out as a stack:
- While Claude writes code: the security guidance plugin, which runs on its own once installed.
- Before you commit or open a pull request:
/security-review, a single pass over your branch's changes. - Before a release, or for code you already have: the Claude Security plugin, which can scan the whole repository at
low,mediumorhigheffort and writes a SARIF 2.1.0 file that GitHub code scanning reads. - On every pull request: Code Review on Team and Enterprise, or the Action or the plugin's GitHub Actions job with an API key.
- Continuously: the hosted Claude Security app on Enterprise.
Securing Claude Code itself
Some searches for "Claude Code security" ask whether the agent is safe to run on your own machine. Claude Code's security page describes the controls:
- Permission modes. In Manual mode, "Claude Code starts with read-only permissions" and asks before it edits files or runs commands. In auto mode, "a separate classifier model reviews actions instead of you."
- Sandboxing.
/sandboxturns on filesystem and network isolation for Bash commands. - Untrusted content. Anthropic's advice includes "Avoid piping untrusted content directly to Claude" and to use virtual machines "to run scripts and make tool calls, especially when interacting with external web services."
- MCP servers. Anthropic reviews connectors in its directory against listing criteria "but does not security-audit or manage any MCP server", so add only servers you trust.
Vulnerabilities in Claude Code itself go to Anthropic's HackerOne program, linked from the same page. Certifications and reports are on the Anthropic Trust Center.
What Anthropic's policy allows, and where Claude stops
Anthropic's policy allows authorized security work, but real-time safeguards can still block some of it. The Usage Policy, effective November 12, 2026, says its section on computer systems "does not prohibit security research, testing, or tool development conducted on systems you own or operate", with the owner's authorization, or within an authorized bug bounty or disclosure program, provided the work is legal. It also says that "encountering a block does not by itself indicate a violation of the Usage Policy."
The blocks come from classifiers. Anthropic's refusals documentation says Claude Fable 5.x, Opus 5.5, Opus 5, Sonnet 5.5 and Haiku 5.5 "include safety classifiers that can decline a request." Of the cyber category it says: "Benign cybersecurity work can also trigger this category." See Claude refused for what a refusal looks like in the API and how to handle it in code.
A flag does not always end the work. Claude Code's automatic model fallback re-runs flagged requests on an older model: on Fable models and Opus 5.5, "cybersecurity-flagged requests re-run on Opus 4.8"; on Sonnet 5.5 they re-run on Sonnet 5. The Claude Security plugin's README says the same: "portions of a scan may occasionally be downgraded to Opus 4.8." In non-interactive mode, with automatic switching turned off, "a flagged request ends the turn with a refusal instead."
For teams that hit blocks often, the Cyber Verification Program adjusts the safeguards by tier. From Anthropic's program page, updated October 6, 2026:
| Tier | Work it covers, in Anthropic's words | Who can apply | Review target |
|---|---|---|---|
| Defense | "Security operations, incident response, malware analysis, detection engineering, and vulnerability triage and validation" | Individuals and organizations on paid plans | Two days |
| Red Team | "Authorized penetration testing, red teaming, adversary emulation, offensive tool development, and exploit development" | Organizations only, on Enterprise and the API | Two weeks; "currently taking longer because of high demand" |
| Specialized | "Authorized pen testing and red teaming of critical infrastructure and research into the highest-severity techniques" | Organizations only; reviewed "in collaboration with the US government" | No set target |
Three conditions apply in every tier. "Data retention is required for everyone enrolled in the program." "Our Usage Policy still applies in full." And approval doesn't end every block: "You may experience some model refusals and classifier blocks for allowed security work." Anthropic also says "You don't need CVP for everyday secure development."
What not to do: the Usage Policy bars attempts to bypass or interfere with its guardrails without Anthropic's prior authorization. Rewording a request to slip past a classifier risks the account. Applying for the program is the route Anthropic offers.
Four security workflows in Claude Code
These four jobs come up on most security teams. Each one keeps the work on your own code and systems, and each works the same way whichever model runs the session.
Review your own repository before you merge
Run /security-review on a feature branch. It compares your branch with origin's default branch, so the repository needs an origin remote. The command file Anthropic publishes allows five read-only git commands, file reading and search, and subagents, and it drops findings rated below 8 out of 10 for confidence. By design it also skips denial-of-service, rate-limiting and resource-exhaustion findings and "outdated third-party libraries", so keep your dependency scanner and load tests.
For a deeper pass, install the Claude Security plugin and scan the branch or the whole repository:
/security-review
/plugin install claude-security@claude-plugins-official
/claude-security scan my branch at high
The plugin writes its report to a CLAUDE-SECURITY-<timestamp>/ folder as Markdown, JSONL and SARIF, and writes patches to a patches/ folder. Per its docs, "Patches aren't applied automatically."
Check whether a CVE affects your stack
Save the vendor advisory into the repository, then ask Claude Code to compare it with what you actually ship. Manual mode, which starts with read-only permissions, keeps this a reading job:
Read advisories/CVE-2024-3094.md. Quote the affected versions and the
conditions the advisory names. Then search our Dockerfiles, lockfiles,
SBOMs in sbom/ and the base images in deploy/ for that package. For each
service, answer affected, not affected or unknown, cite the file and line
that shows the version, and list what a person should verify by hand.
Asking it to quote the advisory first lets you check its reading before you trust the verdict. For the same job through the API, with the patch check and detections that follow, see the cybersecurity use case.
Write detection rules with tests
Ask for the rule and its test cases together, so the rule is checked before it ships:
Write a Sigma rule in detections/sigma/ for the behavior described in
advisories/vendor-2026-114.md. Add three log samples under
detections/tests/ that the rule must match and five benign samples from
logs/baseline/ that it must not match. Then run make test-detections
and fix the rule until every test passes.
make test-detections stands for whatever runs your rule tests. The same pattern works for YARA rules against a folder of known-good files.
Read a suspicious script without running it
Work in an isolated VM, and take Claude Code's ability to run anything away first. A deny rule with a bare tool name "removes the tool from Claude's context entirely", per Claude Code's permissions docs. Put this in the analysis folder's .claude/settings.local.json:
{
"permissions": {
"deny": ["Bash", "WebFetch", "WebSearch"]
}
}
Then ask: "Explain what samples/alert-4471.ps1 does, line by line. Decode the encoded strings statically, list every domain, path and registry key it touches, and say what our EDR should alert on. Do not execute anything." For compiled samples, add a disassembler through MCP: see Ghidra MCP and IDA Pro MCP, the AI reverse engineering overview, and the malware analysis use case.
When Claude declines authorized work
When Claude declines work you are authorized to do, try Anthropic's routes first: add honest context about the engagement, let automatic fallback run, and apply for the Cyber Verification Program if this is daily work. If legitimate work is still blocked, run the same Claude Code against an abliterated model. Abliterator serves the Anthropic Messages API at https://abliterator.ai, so Claude Code needs only environment variables. These are the ones from the Claude Code guide:
export ANTHROPIC_BASE_URL="https://abliterator.ai"
export ANTHROPIC_AUTH_TOKEN="$ABL_API_KEY"
unset ANTHROPIC_API_KEY
export ANTHROPIC_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_OPUS_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_SONNET_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4.1-flash-abliterated"
export CLAUDE_CODE_SUBAGENT_MODEL="kimi-k3.1-pro-abliterated"
claude
Get a key at /keys; new accounts get $10 of credit after email verification. Run /status to confirm the base URL, and see the guide for settings.json, verification and troubleshooting.
What carries over to this setup, and what doesn't:
/security-reviewworkflow: yes, through Anthropic's MIT-licensed command file. Its README says to copysecurity-review.mdinto your project's.claude/commands/to customize it. Its front matter sets allowed tools and a description but no model, so it runs on the session's model.- Claude Security plugin: no. Its license allows use "solely with Claude Code or other Anthropic products and services" and bars use "with, or to develop, any non-Anthropic product or service". Keep it on Claude.
- The GitHub Action, Code Review and the hosted app: unaffected. The Action reads only an Anthropic API key and has no endpoint input, and the other two run on Anthropic's infrastructure.
- Anthropic support: none for this setup. Claude Code's gateway page says Anthropic "doesn't support routing Claude Code to non-Claude models through any gateway." It works because Abliterator implements the Messages API.
Which model: kimi-k3.1-pro-abliterated for long agent sessions, deepseek-v4.1-flash-abliterated for subagents and bulk work at $1.00 per 1M input tokens. Refusals fell from 94% to 1% on DeepSeek V4.1 Flash Abliterated and from 94% to 3% on Kimi K3.1 Pro Abliterated. On DeepSeek's security suites the abliterated model stayed within noise: CyberMetric-2000 went from 94.2 to 93.8, InterCode-CTF from 94.2 to 95.5 and Cybench from 98.3 to 96.6 (benchmarks). Kimi's Terminal-Bench 4.0 score, an agentic coding test, fell from 66.6 to 62.3, a drop that is plausible but not statistically shown (benchmarks), so test it on your own tasks before you rely on it. Costs, a shell function that keeps both setups apart, and the full model comparison are on Claude Code with DeepSeek or Kimi.
Security tools plug into the same session through MCP: Burp MCP for web testing in Burp Suite, HexStrike AI for a lab toolkit, and the disassemblers above. For the agents that drive a whole engagement, see AI pentesting; for how general and security-tuned models compare, see best LLM for cybersecurity.
Abliterator does not store prompt or completion text, and the inference provider keeps no inference content (privacy). Abliterator removes the model's refusals; it does not remove the law or our terms. Some uses are always prohibited; see the acceptable use policy.
Frequently asked questions
Is Claude good for cybersecurity?
Anthropic reports strong results: its February 20, 2026 announcement says Claude Opus 4.6 found over 500 vulnerabilities in production open-source codebases. Abliterator has not benchmarked Claude, so for a comparison by job, such as report writing or detection rules, see the best LLM for cybersecurity page.
Can Claude do penetration testing or ethical hacking?
Anthropic's Usage Policy permits security testing on systems you own or operate, or that you have the owner's authorization to test, but its cyber safeguards can still block some of that work. Organizations on Enterprise or the API can apply for the Cyber Verification Program's Red Team tier, which covers authorized penetration testing; individuals can apply only for the Defense tier.
What is Claude Code security review?
It is the /security-review command built into Claude Code, which reviews the diff between your branch and origin's default branch for vulnerabilities such as injection, auth flaws and data exposure. Anthropic also publishes the same analysis as an MIT-licensed GitHub Action that comments on pull requests.
Is Claude Security the same as Claude Code Security?
Anthropic announced Claude Code Security on February 20, 2026 as a limited research preview, and that product page now redirects to Claude Security, a hosted scanner in public beta on the Enterprise plan (checked 2026-12-03). The Claude Security plugin brings the same kind of scan into Claude Code for paid plans and API users.
What is the Claude Cyber Verification Program?
It is Anthropic's application program that relaxes cyber safeguards for verified security professionals on paid plans, in Defense, Red Team and Specialized tiers. Enrollment requires data retention, and Anthropic's Usage Policy still applies in full.