Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
A developer pastes claude mcp add from a README. Ten seconds later, a process they have never read runs with their shell, their files and their tokens. That is how many Claude Code security tools get installed.
They come in four types: Anthropic's built-ins (/security-review and three more), security MCP servers (Semgrep, Snyk, Endor Labs, Socket, GitGuardian, Nullify), skills (Trail of Bits), and hooks that stop secrets before they reach the model (GitGuardian's ggshield, or your own).
A tool that reads your code is a reviewer. A tool that runs in your shell is a dependency. Every entry below is both, so each one is compared on what it adds and what it can reach.
Claude Code security tools are commands, plugins, MCP servers, skills and hooks that add security checks to a Claude Code session. Some review code Claude writes. Some give Claude a scanner or a findings database to query. Some block an action before it runs.
Per Anthropic's plugin docs, installing a plugin "adds its skills, agents, hooks, and MCP servers" to Claude Code on your machine. One install can change both what Claude knows and what runs on your laptop.
Most lists stop at "what does it find." In an agent, what it touches matters as much. Each tool is compared on five questions:
Every vendor fact comes from the vendor's own docs or GitHub organization, read on December 2, 2026. This is a documentation comparison, not a benchmark.
| Tool | Type | What it adds | Where it runs and what it reaches | Account |
|---|---|---|---|---|
/security-review | Built-in command | One security pass over your branch diff | Your session; reads the diff against origin's default branch | Claude Code |
| Security guidance plugin | Built-in plugin (hooks) | Pattern check per edit, model review per turn and per commit | Hooks on your machine; extra model usage | All plans |
| Claude Security plugin | Built-in plugin | Multi-agent repo or diff scan, SARIF output, reviewed patches | Your session; writes a report folder; never applies patches | Paid plan or API access |
| claude-code-security-review | GitHub Action | PR comments on security findings in changed files | CI runner; pull-requests: write, API key secret | Anthropic API key |
| Semgrep Guardian | Plugin (MCP + hooks) | Scans every file Claude writes | Hosted scan by default; local CLI option | Semgrep account |
| Snyk Studio | MCP server + hooks | Code, dependency, IaC, container and secret scans | Local, through the Snyk CLI; needs local file access | Snyk account |
| Endor Labs MCP | MCP server | Dependency risk and malware checks, scans, diff review | Local process that calls Endor Labs' cloud | Free Developer Edition, no account |
| Socket MCP | MCP server | Package scores before Claude adds a dependency | Public remote server; sends ecosystem, name, version | No API key for the public server |
| GitGuardian MCP | MCP server | Secret incident triage, revocation, honeytokens | Hosted or local; acts with your GitGuardian permissions | GitGuardian account |
| Nullify MCP | MCP server | Query and act on findings, posture, SBOMs, autofix | Local nullify CLI; acts as your Nullify user | Nullify instance |
| Trail of Bits skills | Skills marketplace | Audit workflows: differential review, variant analysis, insecure defaults | Instructions in Claude's context; third-party marketplace | None |
| ggshield AI hooks | Hooks | Blocks secrets in prompts, commands, file reads and MCP calls | Hooks in ~/.claude/settings.json; scans via GitGuardian | GitGuardian API key |
Your own PreToolUse hooks | Hooks | Hard blocks on protected files and commands | Your machine, with your user's privileges | None |
Start here. Anthropic documents their setup and limits plainly, so each gets a short entry.
Best for: a pre-push pass on changes that touch auth, payments or tenant boundaries.
Per the commands reference, /security-review reviews the diff between your branch and origin's default branch for risks like injection, auth issues and data exposure. It needs an origin remote.
Watch for: it only sees your branch's changes, not the code you already have.
Best for: catching issues while Claude writes them.
The security guidance plugin runs a pattern match on each edit, a separate model review of each turn's diff, and a deeper review on each commit Claude makes. Add your own rules in .claude/claude-security-guidance.md.
Watch for: the docs say "None of the layers block writes or commits." Findings go back to Claude as instructions, and the model-backed reviews add usage.
Best for: a deep scan of a repository, a branch, a PR or a commit.
The Claude Security plugin maps your architecture, hunts for vulnerabilities, and has independent verifier agents review each finding before it reaches the report. Results land as Markdown, JSONL and SARIF. Patches are reviewed by a separate agent and are never applied for you.
Watch for: scans are nondeterministic, can use a lot of tokens, and need a paid plan, API access or a supported third-party provider.
Best for: a Claude review on every pull request.
Anthropic's claude-code-security-review Action analyzes changed files, filters false positives and comments findings on the PR. It needs pull-requests: write, contents: read and an API key secret.
Watch for: the README says it is "not hardened against prompt injection attacks" and should only review trusted PRs.
An MCP server gives Claude a real scanner or findings database to call instead of a guess. Anthropic's MCP docs put the risk in one line: "Verify you trust each server before connecting it."
Best for: deterministic Semgrep rules on every file Claude writes.
Semgrep's Claude Code setup page installs Guardian with claude plugin install semgrep@claude-plugins-official. It registers a post-tool hook so Claude Code scans every file it writes.
The default remote plugin scans on Semgrep's hosted server with the guardian-default ruleset. A local version runs the Semgrep CLI with the rules your organization enables.
Semgrep's separate hosted MCP server lets an agent triage findings, generate fixes and start scans on Teams and Enterprise plans, with a read-only URL option.
Watch for: older guides point to the semgrep/mcp repo. Semgrep archived it on October 28, 2025 and moved the server into the main semgrep binary.
Best for: teams already on Snyk who want its scanners inside the agent.
Per Snyk's docs, the Snyk MCP server runs locally through the Snyk CLI and exposes code, dependency, IaC, container and secret scan tools. For Claude Code, snyk studio install --experimental --ade=claude also adds hooks that trigger background code and dependency scans, plus remediation commands and skills.
Watch for: the install flag is experimental, and Snyk's Claude Code guide warns that a successful direct MCP scan does not verify that the hooks ran.
Best for: checking a dependency before Claude adds it.
Endor Labs' Claude Code page adds the server with claude mcp add endor-cli-tools -- npx -y endorctl ai-tools mcp-server. Its tools check a dependency for vulnerabilities and malware, and scan for vulnerable dependencies, secrets, SAST issues and GitHub Actions risks. The Developer Edition is free and needs no Endor Labs account.
Watch for: the server runs locally but "calls the Endor Labs cloud platform." The security_review diff tool needs the Enterprise Edition.
Best for: a quick package-reputation check with no setup.
Socket's MCP guide documents one tool, depscore, which returns supply chain, quality, maintenance, vulnerability and license scores for a package. The public server at https://mcp.socket.dev/ needs no API key. You can also deploy it locally.
Watch for: it scores packages. It doesn't scan your code. Each call sends the package's ecosystem, name and version to Socket.
Best for: working secret incidents from the terminal.
GitGuardian's MCP server can list and prioritize secret incidents, assign and resolve them, revoke exposed secrets and deploy honeytokens. It runs hosted with OAuth, or locally over stdio.
Watch for: the README warns "Agents act with your permissions" and tells you to grant only the scopes you need. Hosted requests pass through GitGuardian's MCP service.
Best for: teams on Nullify who want Claude to work from the findings they already have.
Nullify's MCP setup docs run the nullify CLI as a local MCP server, so Claude Code can query Nullify findings, posture, context and remediation workflows using your Nullify identity. Setup is one command, claude mcp add nullify -- nullify mcp serve, after you install the CLI and sign in.
The tools cover every finding type Nullify reports, from SAST in Nullify Code Security to dependencies, containers, secrets, pentest, cloud and Bug Hunt findings. Claude can search findings, read a finding's triage details, file a ticket, start an autofix and fetch the proposed diff. Context tools return repositories, SBOMs and dependency exposure.
You choose how much Claude can touch with --tools. The default set already includes the ticket, allowlist and autofix tools. Archive and false-positive tools ship only in the findings-write and all sets, and --repo pins findings to one repository.
Watch for: the server acts as your Nullify user, and the docs say allowlist, ticket, autofix and findings-write tools mutate tenant data, so keep tool approvals on for those. It needs a Nullify account. The MCP docs describe querying findings in your instance, not scanning uncommitted code, so pair it with an in-session scanner.
A skill is a set of instructions Claude loads when needed. It doesn't add a scanner; it changes how Claude uses the tools it has.
Best for: security engineers who want audit workflows written by auditors.
The trailofbits/skills repo is a Claude Code marketplace. Add it with /plugin marketplace add trailofbits/skills, then pick plugins from /plugin menu. Security plugins include differential-review, insecure-defaults, supply-chain-risk-auditor and variant-analysis.
Watch for: it is a third-party marketplace, so read each plugin before you enable it. The repo notes that its gh-cli plugin intercepts GitHub URL fetches and redirects them to the gh CLI.
Hooks are the only tools on this list that can stop an action before it runs. Prompts advise. Hooks enforce.
Best for: keeping secrets out of the model's context.
Per GitGuardian's docs, ggshield machine setup --agent claude-code writes hooks into ~/.claude/settings.json. They scan prompts before the model sees them, commands, file reads and MCP calls before they run, and tool outputs after. A prompt or action containing a secret is blocked.
Watch for: the default failure policy is allow, so an action runs unscanned when ggshield can't scan. Set ai_hook_failure_policy: block if you want it to fail closed. It needs a GitGuardian API key.
Best for: rules that must never be broken, such as "never edit production Terraform."
A PreToolUse hook runs before a tool call and can block it with exit code 2 or a permissionDecision of deny.
Watch for: a hook that times out doesn't block the call. Anthropic's docs say not to "count on a stalled hook to act as a gate," and offer "onFailure": "block" to fail closed.
Run this before any tool above reaches a developer laptop. It applies to every vendor, including us.
hooks/hooks.json, .mcp.json and bin/. Only Anthropic's reserved marketplace names are official; vendor marketplaces are third-party.#ref to pin a marketplace to a tag. Auto-update is on by default for official marketplaces, so the files you reviewed can change on disk. MCP servers launched with npx -y or uvx fetch packages at run time, so pin a version where the vendor supports it.--tools set that does the job (minimal registers only the composite workflow tools), the narrowest GitGuardian scopes..mcp.json in interactive sessions, but claude -p, Agent SDK and cloud sessions load them without asking. Use disabledMcpjsonServers to keep one out."onFailure": "block", and set ggshield's failure policy to block.Start with Anthropic's security guidance plugin, available on all plans, which reviews code as Claude writes it. Add a deterministic scanner that runs on each file write, such as Semgrep Guardian or Snyk Studio, because the guidance plugin advises Claude and doesn't block. Add ggshield hooks if secrets are your main risk.
Yes. Trail of Bits publishes a skills marketplace for Claude Code with audit plugins such as differential review, variant analysis, insecure defaults and supply-chain risk auditing. Skills change how Claude works, not what it can scan, so pair them with a scanner and read each plugin before you enable it.
No. /security-review reviews the changes on your current branch against your default branch. Anthropic's docs position their security tools as one layer of defense in depth and tell you to keep static analysis and dependency scanning alongside them. Deterministic scanners give you consistent rules that a model review can't promise.
They are as safe as the server and the access you grant it. Anthropic tells you to verify you trust each server, because servers that fetch external content can expose you to prompt injection. Check where your code goes, use the narrowest token or read-only mode, and keep approvals on for tools that write.
A tool that reads your code is a reviewer. A tool that runs in your shell is a dependency. Vet it like both.