Skip to content
Security
Command

/diff

[stable] Compare security posture between two git refs to find new/fixed vulnerabilities and track regression

From plugin
vuln-scout
2615 skills9 agents15 commands
> /plugin marketplace add allsmog/vuln-scout
> /plugin install vuln-scout@vuln-scout

Command definition

diff.md
name: diff
description: "[stable] Compare security posture between two git refs to find new/fixed vulnerabilities and track regression"
argument-hint: "<base-ref> [<head-ref>] [--tools semgrep] [--format md|json] [--fail-on-regression]"
allowed-tools:
  - Bash
  - Glob
  - Read
  - Write

Differential Security Analysis

Compare security findings between two git refs. Shows new vulnerabilities introduced, vulnerabilities fixed, and severity changes.

Usage

/vuln-scout:diff HEAD~5
/vuln-scout:diff v1.0.0 v2.0.0
/vuln-scout:diff main feature/auth --fail-on-regression

Flags

| Flag | Effect | |------|--------| | `base-ref` | Git ref to compare against (required) | | `head-ref` | Git ref to compare (default: HEAD) | | `--tools` | Scanning tools to use (default: semgrep) | | `--format` | Output format: `md` or `json` | | `--fail-on-regression` | Exit 2 if regression score > 0 (more new findings than fixed) |

Workflow

Step 1: Scan baseline

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/run_diff.py" \
  --base <base-ref> \
  --head <head-ref> \
  --tools <tools> \
  --project-root .

The script handles git checkout, scanning both refs, and computing the diff.

Step 2: Display results

Show the diff report:

  • **New findings**: vulnerabilities introduced since the baseline
  • **Fixed findings**: vulnerabilities that no longer appear
  • **Changed findings**: same location but different severity/verdict
  • **Regression score**: positive = worse, negative = better
  • **New/removed endpoints**: attack surface changes

Step 3: Exit code

  • `0`: no regression (fixed >= new, or `--fail-on-regression` not set)
  • `2`: regression detected (with `--fail-on-regression`)
Read more
@allsmog
Ships withvuln-scout

AI-powered whitebox penetration testing plugin for Claude Code. 9 languages, 22 skills, 7 autonomous agents. STRIDE threat modeling, OWASP 2025 coverage, polyglot monorepo support.

2635 skills9 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
26
Star history of allsmog/vuln-scout on GitHub, a chart by star-history.com

Other commands on vuln-scout.

auto-fix

auto-fix

Command

[experimental] Auto-remediate verified findings by generating patches and optionally creating a PR

@allsmog@allsmogInstall Command
create-rule

create-rule

Command

[experimental] Create a custom Semgrep detection rule from a confirmed vulnerability pattern

@allsmog@allsmogInstall Command
full-audit

full-audit

Command

[stable] End-to-end security audit with hotspot-aware framework pivots, shared findings.json schema, and CI-friendly workflow…

@allsmog@allsmogInstall Command
mobile-audit

mobile-audit

Command

[beta] Audit a decompiled Android target — scans jadx_out/sources + apktool_out together and merges findings

@allsmog@allsmogInstall Command
mutate

mutate

Command

[experimental] Security mutation testing -- weaken security controls and check if the scanner detects the resulting vulnerability

@allsmog@allsmogInstall Command

More commands from other plugins.

deslop-reborn

deslop-reborn

Command

One iteration of the IronClaw Reborn de-slop loop — take ONE Reborn crate, fan out parallel review sub-agents (thermo-nuclear…

@nearai@nearaiInstall Command
audit

audit

Command

Audit a file, directory, or whole repo for insecure default configuration: fallback secrets, default credentials, fail-open…

@trailofbits@trailofbitsInstall Command
arsenal

arsenal

Command

Show which external bug-bounty tools are installed on this machine and print install hints for the missing ones. Curated from…

@awarexone@awarexoneInstall Command