mutate

mutate is a command for Claude Code from allsmog/vuln-scout. It costs 22 tokens per session (508 once invoked), scanned A, original, MIT.

A security testing command that removes protections such as authentication checks, input sanitizing, and safe SQL handling from copies of your code, then checks whether your security scanners notice the resulting weaknesses.

In plain words
What is it for?
Use it to test security scanners against weakened code, list possible security-control removals with a dry run, and produce results in Markdown or JSON.
Why use it?
It shows whether your security tools can detect vulnerabilities when known protections are missing. Changes that go undetected reveal gaps in scanning coverage.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the vuln-scout plugin — 32 skills, 15 commands, 9 agents shipped together

Good fit Use it to test security scanners against weakened code, list possible security-control removals with a dry run, and produce results in Markdown or JSON.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add allsmog/vuln-scout
Claude Code
/plugin install vuln-scout

Made for: Claude Code.

Or install vuln-scout, the plugin that ships this one along with the rest of its 32 skills, 15 commands, 9 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mutate

README.md
[![agentmods](https://agentmods.dev/badge/commands/allsmog/vuln-scout/mutate.svg)](https://agentmods.dev/commands/allsmog/vuln-scout/mutate)
Your own site
<a href="https://agentmods.dev/commands/allsmog/vuln-scout/mutate"><img src="https://agentmods.dev/badge/commands/allsmog/vuln-scout/mutate.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 508 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00508
Opus 5 $0.00011 $0.00254
Sonnet 5 $0.00004 $0.00102
Haiku 4.5 $0.00002 $0.00051

Measured 8d ago against content hash c090b9ca0ebc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

mutate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vuln-scout/commands/mutate.md · 69 lines

What it actually says

Security Mutation Testing

Identifies security controls (sanitizers, auth middleware, parameterized queries) in your code, temporarily removes them, and checks if the scanning pipeline detects the resulting vulnerability. Undetected mutations represent detection gaps in your security tooling.

Usage

/vuln-scout:mutate
/vuln-scout:mutate src/ --dry-run

Flags

Flag Effect
path Directory to scan for mutations (default: current directory)
--dry-run List possible mutations without applying them
--format Output format: md or json

Mutation Types

Type What It Removes
remove-parameterization SQL parameter binding → string concatenation
remove-auth-middleware Authentication middleware from route handlers
remove-csrf-check CSRF token validation
enable-shell Changes shell=False to shell=True in subprocess calls
remove-sanitizer Input sanitization/validation function calls
remove-rate-limit Rate limiting middleware

Workflow

Step 1: Discover mutations

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/run_mutations.py" \
  <path> \
  --dry-run

Lists all security-weakening mutations found in the codebase.

Step 2: Test mutations (unless --dry-run)

For each mutation:

  1. Apply the mutation (replace the security control with the weakened version)
  2. Re-scan the mutated file with Semgrep
  3. Check if the mutation was detected as a vulnerability
  4. Revert the mutation

Step 3: Report

  • Detected mutations: scanner caught the weakened code (good)
  • Undetected mutations: scanner missed the vulnerability (detection gap)
  • Kill rate: detected / total (higher is better)

Undetected mutations indicate places where removing a security control would go unnoticed by your scanning pipeline.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 69 lines · 22 tokens per session scan A c090b9ca0ebc

Subscribe to this mod's changes

mutate is a command published in the GitHub repository allsmog/vuln-scout (24 stars, last pushed 2mo ago), licensed MIT. It adds 22 tokens to every session and 508 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.