Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 94
  • 49k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-security

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install claude-security in Claude Code

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

A

No 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 →

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.

claude-security Install

Add to stack

Loading.