Skip to content
PluginImportedShare-alike license

differential-review

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

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Files: 11 · Size: 66 KB

Download the ZIP

The file carries the license of the original source.

Install

Plugins are installed from a plugin marketplace in Claude Code, not by copying files. Download the package to read its content and its license.

Instructions

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

ComponentNamePurpose
Skilldifferential-reviewThe review itself — Pre-Analysis plus Phases 0–6, described below
Command/differential-review:diff-reviewEntry point taking <pr-url|commit-sha|diff-path> [--baseline <ref>]
Agentdifferential-review:adversarial-modelerPhase 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

Files

  • folder.claude-plugin317 B
    • plugin.json317 B
  • folderagents5.6 KB
    • adversarial-modeler.md5.6 KB
  • foldercommands482 B
    • diff-review.md482 B
  • folderskills36 KB
    • folderdifferential-review36 KB
      • folderagents245 B
        • openai.yaml245 B
      • folderassets3 KB
        • trail-of-bits-mark.svg3 KB
      • SKILL.md7.3 KB
      • adversarial.md4.9 KB
      • methodology.md6.6 KB
      • patterns.md6.8 KB
      • reporting.md6.8 KB
  • LICENSE20 KB
  • README.md4.4 KB

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report

Similar items

  • PluginImported

    blockchain-web3

    Smart contract development with Solidity, DeFi protocol implementation, NFT platforms, and Web3 application architecture

    MITFiles: 11

  • PluginImported

    building-secure-contracts

    Comprehensive smart contract security toolkit based on Trail of Bits' Building Secure Contracts framework. Includes vulnerability scanners for 6 blockchains and 5 development guideline assistants.

    CC-BY-SA-4.0Files: 58

  • PluginImportedContains scripts

    burpsuite-project-parser

    Search and extract data from Burp Suite project files (.burp) for security analysis

    CC-BY-SA-4.0Files: 8

  • PluginImportedContains scripts

    c-review

    Comprehensive C/C++ security code review, with coverage verified against a parse of the source

    CC-BY-SA-4.0Files: 24

  • PluginImported

    claude-md-management

    Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.

    Apache-2.0Files: 10

  • PluginImported

    comprehensive-review

    Multi-perspective code analysis covering architecture, security, and best practices

    MITFiles: 6