claude-security
Skill by anthropics
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Install claude-security
Built from the published package, never by AI.
git clone --depth 1 https://github.com/anthropics/claude-plugins-official /tmp/claude-plugins-official && mkdir -p ~/.claude/skills && cp -r /tmp/claude-plugins-official/plugins/claude-security/skills/claude-security ~/.claude/skills/claude-securityRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/anthropics/claude-plugins-official /tmp/claude-plugins-official && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-plugins-official/plugins/claude-security/skills/claude-security ~/.gemini/antigravity-cli/skills/claude-securityAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Claude Security is a skill for auditing code with Claude Code. It can scan the whole repository or a chosen part of it, scan the diff of a branch, a pull request or one commit, and triage findings from another scanner's SARIF file or an earlier report against the code. A front-desk menu asks which job to run and then drives it.
It can also turn findings into targeted patch files. Each finding is checked by an independent panel of verifier agents before it reaches the report, and each patch is saved on disk for you to review and apply. The plugin never commits, pushes or opens a pull request. The source says scans treat repository contents, such as code, comments and CLAUDE.md, as data under review. It is meant for people who want to check their own code.
Written from the project's SKILL.md and checked against it.
What it can do
- Scan codebaseScans the whole repository or a scoped part of it for security issues.
- Scan changesScans a branch's or pull request's diff, or a single commit.
- Vulnerability triageChecks findings from a SARIF file or earlier report against the code.
- Suggest patchesTurns findings into targeted patch files that you apply when you choose.
What you need
- Claude Code
- A repository to scan
Try asking
- Scan this repository for security issues with Claude Security
- Scan my current branch with Claude Security
- Suggest patches for the Claude Security findings in this report
Good to know
- Nothing is applied automatically; every suggested fix is a patch file you review
- A scan adds no isolation and runs with your session's permissions and settings
- For untrusted code, the source recommends a sandbox such as a disposable virtual machine
- On Linux (not WSL 2), a headless session can run inside the plugin's scripts/sandbox.py
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/claude-security/skills/claude-security/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadGlobGrepAskUserQuestion
-
SKILL.md7 KB -
jobs/continue-scan.md4 KB -
jobs/scan-changes.md32 KB -
jobs/scan-codebase.md33 KB -
jobs/suggest-patches.md37 KB
Show all 10 files
-
jobs/triage-findings.md6 KB -
role.md16 KB -
specs/patch-review-brief.md1 KB -
specs/patch-spec.md12 KB -
specs/report-spec.md11 KB
Alternatives to claude-security
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
IAM Helper for Troubleshooting diagnoses and manages Identity and Access Management access issues on Google Cloud. It is for developers blocked by access denials and for security or IAM administrators.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
claude-security: common questions
Does Claude Security apply fixes to my code automatically?
No. Every suggested fix is saved as a patch file on disk, and you review and apply it yourself. The plugin never commits, pushes or opens a pull request.
How are findings checked before they are reported?
Every reported finding is challenged by an independent verifier panel before it reaches the report.
Is it safe to scan code I do not trust?
The source says a scan adds no isolation of its own. For untrusted code, sandbox the whole session first, such as in a disposable virtual machine, and scan a copy.
How do I install claude-security?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is claude-security free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is claude-security safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to claude-security?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
