Nullify

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.

The Best Claude Code Security Tools, Compared by What Each One Can Reach

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.

What are Claude Code security tools?

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.

How we compared the tools

Most lists stop at "what does it find." In an agent, what it touches matters as much. Each tool is compared on five questions:

  1. What it adds: a review, a scanner, a data source, a skill or a block.
  2. When it runs: on demand, per edit, per tool call, or per pull request.
  3. Where your code goes: local, or a vendor's hosted service.
  4. What it can change: read-only, or able to mutate findings, tickets or files.
  5. What account it needs: none, free, or paid.

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.

Claude Code security tools compared

ToolTypeWhat it addsWhere it runs and what it reachesAccount
/security-reviewBuilt-in commandOne security pass over your branch diffYour session; reads the diff against origin's default branchClaude Code
Security guidance pluginBuilt-in plugin (hooks)Pattern check per edit, model review per turn and per commitHooks on your machine; extra model usageAll plans
Claude Security pluginBuilt-in pluginMulti-agent repo or diff scan, SARIF output, reviewed patchesYour session; writes a report folder; never applies patchesPaid plan or API access
claude-code-security-reviewGitHub ActionPR comments on security findings in changed filesCI runner; pull-requests: write, API key secretAnthropic API key
Semgrep GuardianPlugin (MCP + hooks)Scans every file Claude writesHosted scan by default; local CLI optionSemgrep account
Snyk StudioMCP server + hooksCode, dependency, IaC, container and secret scansLocal, through the Snyk CLI; needs local file accessSnyk account
Endor Labs MCPMCP serverDependency risk and malware checks, scans, diff reviewLocal process that calls Endor Labs' cloudFree Developer Edition, no account
Socket MCPMCP serverPackage scores before Claude adds a dependencyPublic remote server; sends ecosystem, name, versionNo API key for the public server
GitGuardian MCPMCP serverSecret incident triage, revocation, honeytokensHosted or local; acts with your GitGuardian permissionsGitGuardian account
Nullify MCPMCP serverQuery and act on findings, posture, SBOMs, autofixLocal nullify CLI; acts as your Nullify userNullify instance
Trail of Bits skillsSkills marketplaceAudit workflows: differential review, variant analysis, insecure defaultsInstructions in Claude's context; third-party marketplaceNone
ggshield AI hooksHooksBlocks secrets in prompts, commands, file reads and MCP callsHooks in ~/.claude/settings.json; scans via GitGuardianGitGuardian API key
Your own PreToolUse hooksHooksHard blocks on protected files and commandsYour machine, with your user's privilegesNone

Built-in Claude Code security tools from Anthropic

Start here. Anthropic documents their setup and limits plainly, so each gets a short entry.

1. /security-review

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.

2. Security guidance plugin

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.

3. Claude Security plugin

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.

4. Claude Code security review GitHub Action

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.

Security MCP servers for Claude Code

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."

5. Semgrep Guardian

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.

6. Snyk Studio

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.

7. Endor Labs MCP

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.

8. Socket MCP

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.

9. GitGuardian MCP

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.

10. Nullify MCP server

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.

Security skills and plugins for Claude Code

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.

11. Trail of Bits skills

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 for secret scanning and hard rules

Hooks are the only tools on this list that can stop an action before it runs. Prompts advise. Hooks enforce.

12. GitGuardian ggshield AI hooks

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.

13. Your own PreToolUse hooks

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.

Claude Code security best practices for adding tools

Run this before any tool above reaches a developer laptop. It applies to every vendor, including us.

  • Read before you install. Anthropic's plugin trust page says a plugin "can execute arbitrary code on your machine with your user privileges." Read its hooks/hooks.json, .mcp.json and bin/. Only Anthropic's reserved marketplace names are official; vendor marketplaces are third-party.
  • Pin versions. Add #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.
  • Map what each MCP server can reach. Note whether code goes to a hosted service, which token it uses, and which tools write. Prefer read-only or narrow modes: Semgrep's read-only URL, the smallest Nullify --tools set that does the job (minimal registers only the composite workflow tools), the narrowest GitGuardian scopes.
  • Keep approvals on for write tools. Your permission rules apply to MCP tool calls. Hooks, MCP servers and plugin processes run outside the sandbox.
  • Watch project-scoped servers. Claude Code asks before using servers from a repo's .mcp.json in interactive sessions, but claude -p, Agent SDK and cloud sessions load them without asking. Use disabledMcpjsonServers to keep one out.
  • Make enforcement hooks fail closed. Use exit code 2 or "onFailure": "block", and set ggshield's failure policy to block.
  • Enforce it centrally. Use managed settings to allowlist marketplaces and limit hooks to managed ones.

Frequently asked questions

What is the best security plugin for Claude Code?

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.

Is there a Claude Code security skill?

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.

Does /security-review replace a SAST tool?

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.

Are MCP servers safe to use with Claude Code?

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.