插件低风险未认领

differential-review

Security-focused differential review of code changes with git history analysis and blast radius estimation

trailofbitstrailofbits/differential-review-plugin★ 8.3k版本 1.1.4更新于 2026年11月12日

说明

Differential Review

Security-focused differential review of code changes with git history analysis and blast radius estimation.

Author: Omar Inuwa

When to Use

Use this skill when you need to:

  • Review PRs, commits, or diffs for security vulnerabilities
  • Detect security regressions (re-introduced vulnerabilities)
  • Analyze the blast radius of code changes
  • Check test coverage gaps for modified code

What It Does

This skill performs comprehensive security review of code changes:

  • Risk-First Analysis - Prioritizes auth, crypto, value transfer, external calls
  • Git History Analysis - Uses blame to understand why code existed and detect regressions
  • Blast Radius Calculation - Quantifies impact by counting callers
  • Test Coverage Gaps - Identifies untested changes
  • Adaptive Depth - Scales analysis based on codebase size (small/medium/large)

Installation

/plugin install trailofbits/skills/plugins/differential-review

Components

Component Name Purpose
Skill differential-review The review itself — Pre-Analysis plus Phases 0–6, described below
Command /differential-review:diff-review Entry point taking <pr-url|commit-sha|diff-path> [--baseline <ref>]
Agent differential-review:adversarial-modeler Phase 5 only. The skill delegates to it for HIGH RISK changes to build concrete exploit paths and rate exploitability

Documentation Structure

This skill uses a modular documentation architecture for token efficiency and progressive disclosure:

Core Entry Point

  • SKILL.md - Main entry point (224 lines)
    • Quick reference tables for triage
    • Decision tree routing to detailed docs
    • Quality checklist and red flags
    • Integration with other skills

Supporting Documentation

  • methodology.md - Detailed phase-by-phase workflow (234 lines)

    • Pre-Analysis: Baseline context building
    • Phase 0: Intake & Triage
    • Phase 1: Changed Code Analysis
    • Phase 2: Test Coverage Analysis
    • Phase 3: Blast Radius Analysis
    • Phase 4: Deep Context Analysis
  • adversarial.md - Attacker modeling and exploit scenarios (203 lines)

    • Phase 5: Adversarial Vulnerability Analysis
    • Attacker model definition (WHO/ACCESS/INTERFACE)
    • Exploitability rating framework
    • Complete exploit scenario templates
  • reporting.md - Report structure and formatting (369 lines)

    • Phase 6: Report Generation
    • 9-section report template
    • Formatting guidelines and conventions
    • File naming and notification templates
  • patterns.md - Common vulnerability patterns (300 lines)

    • Security regressions detection
    • Reentrancy, access control, overflow patterns
    • Quick detection bash commands

Benefits of This Structure

  • Token Efficient - Load only the documentation you need
  • Progressive Disclosure - Quick reference for triage, detailed docs for deep analysis
  • Maintainable - Each concern separated into its own file
  • Navigable - Decision tree routes you to the right document

Workflow

The complete workflow spans Pre-Analysis + Phases 0-6:

  1. Pre-Analysis - Build baseline context with audit-context-building skill (if available)
  2. Phase 0: Intake - Extract changes, assess size, risk-score files
  3. Phase 1: Changed Code - Analyze diffs, git blame, check for regressions
  4. Phase 2: Test Coverage - Identify coverage gaps
  5. Phase 3: Blast Radius - Calculate impact of changes
  6. Phase 4: Deep Context - Five Whys root cause analysis
  7. Phase 5: Adversarial Analysis - Hunt vulnerabilities with attacker model
  8. Phase 6: Report - Generate comprehensive markdown report

Navigation: Use the decision tree in SKILL.md to jump directly to the phase you need.

Output

Generates a markdown report with:

  • Executive summary with severity distribution
  • Critical findings with attack scenarios and PoCs
  • Test coverage analysis
  • Blast radius analysis
  • Historical context and regression risks
  • Actionable recommendations

Example Usage

Review the security implications of this PR:
git diff main..feature/auth-changes

Related Skills

  • context-building - Used for baseline context analysis
  • issue-writer - Transform findings into formal audit reports

宿主

宿主装上后有
Claude Code技能 1助手 1命令 1
Codex只装技能
OpenCode只装技能

成员1 个技能 · 1 个助手

  • differential-reviewPerforms security-focused differential review of code changes. Adapts analysis depth to codebase size, uses git blame for context, calculates blast radius by counting callers, checks test coverage of modified code, and generates a markdown report. Use when reviewing a PR, commit, or diff for security vulnerabilities, checking whether a change re-introduces a previously fixed bug, asking what else a change could break, or finding which modified code has no test covering it.
  • adversarial-modeler助手Models attacker perspectives and builds exploit scenarios for HIGH RISK code changes. Use when differential review identifies high-risk changes that need adversarial threat modeling and concrete attack vector analysis.

权限

完整安装
1.1.4
声明检测
运行代码—无
安装—无
安装时运行脚本—无
网络—github.com
需要的凭据—无
工作区外的路径—~/.claude
智能体工具—无

检查

低风险 · 没有发现需要提醒的地方。

未经人工审核 · 已做规则检查;模型审核尚未开启。

文件11 个文件 · 46.5 KB

  • README.md4.4 KB
.claude-plugin/1
  • plugin.json317 B
agents/1
  • adversarial-modeler.md5.6 KB
commands/1
  • diff-review.md482 B
skills/differential-review/5
  • SKILL.md7.3 KB
  • adversarial.md4.9 KB
  • methodology.md6.6 KB
  • patterns.md6.8 KB
  • reporting.md6.8 KB
skills/differential-review/agents/1
  • openai.yaml245 B
skills/differential-review/assets/1
  • trail-of-bits-mark.svg3.0 KB

版本

  1. #11.1.4最新2026年11月12日

在 Codeg 中打开

也可以复制地址,在 Codeg 的「发现」里搜索。

trailofbits/differential-review-plugin

还没有 Codeg?下载