Community연구 & 데이터 분석github.com

trailofbits/differential-review

코드 변경 사항(PR, 커밋, diff)에 대해 보안 중심의 차등 리뷰를 수행합니다. 코드베이스 크기에 따라 분석 깊이를 조정하고, git 기록을 컨텍스트로 사용하며, 블래스트 반경을 계산하고, 테스트 커버리지를 확인한 후, 종합적인 마크다운 보고서를 생성합니다. 보안 퇴행을 자동으로 탐지하고 방지합니다.

differential-review란 무엇인가요?

이 스킬은 코드 변경 사항(PR, 커밋, diff)에 대한 보안 중심의 차등 리뷰를 수행하며, 주요 기능으로 분석 깊이 조정, git 기록 컨텍스트 활용, 블래스트 반경 계산, 테스트 커버리지 확인, 종합적인 마크다운 보고서 생성을 포함합니다. 코드베이스 크기에 따라 분석을 깊게 하거나 얕게 하여 효율성을 극대화하고, git 기록을 통해 변경 사항의 역사적 맥락을 파악합니다. 또한 변경 사항이 시스템에 미치는 영향을 블래스트 반경으로 계산하고, 테스트 커버리지를 자동으로 확인하여 충분히 테스트되지 않은 코드 변경을 식별합니다. 모든 결과는 읽기 쉬운 마크다운 보고서로 정리되어 팀 내 리뷰와 협업을 용이하게 하며, 주요 보안 퇴행을 사전에 방지하는 데 도움을 줍니다. Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 사용 가능하며, 보안 엔지니어, 개발자, 코드 리뷰어에게 매우 유용합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/trailofbits/skills/tree/main/skills/differential-review

Installed? Explore more 연구 & 데이터 분석 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

differential-review은(는) 무엇을 하나요?

코드 변경 사항(PR, 커밋, diff)에 대해 보안 중심의 차등 리뷰를 수행합니다. 코드베이스 크기에 따라 분석 깊이를 조정하고, git 기록을 컨텍스트로 사용하며, 블래스트 반경을 계산하고, 테스트 커버리지를 확인한 후, 종합적인 마크다운 보고서를 생성합니다. 보안 퇴행을 자동으로 탐지하고 방지합니다.

주요 기능

  • 분석 깊이 조정: 코드베이스 크기에 따라 분석 깊이를 동적으로 조정합니다. 대규모 코드베이스에서는 변경 사항의 핵심 부분에 집중하고, 소규모 코드베이스에서는 전체적인 분석을 수행합니다.
  • Git 기록 컨텍스트: git 기록을 활용하여 변경 사항의 역사적 맥락을 파악합니다. 이전 커밋, 관련 이슈, 변경 사항의 빈도 등을 분석하여 보다 정확한 리뷰를 제공합니다.
  • 블래스트 반경 계산: 각 변경 사항이 시스템의 다른 부분에 미치는 영향을 계산합니다. 이는 변경 사항이 예기치 않은 부작용을 일으킬 가능성을 평가하는 데 도움을 줍니다.
  • 테스트 커버리지 확인: 변경된 코드 영역의 테스트 커버리지를 자동으로 확인합니다. 테스트되지 않은 코드 변경을 식별하고, 추가 테스트가 필요한 부분을 강조합니다.
  • 마크다운 보고서 생성: 모든 분석 결과를 읽기 쉬운 마크다운 형식으로 정리하여 보고서를 생성합니다. 이 보고서는 팀 내 리뷰와 협업을 용이하게 합니다.

사용 방법

이 스킬은 Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 사용할 수 있습니다. 에이전트에게 리뷰하려는 PR 또는 diff를 제공하면 자동으로 분석을 수행하고 결과를 반환합니다.

예시 명령어

# 특정 PR 리뷰
differential-review --pr <PR-번호>

# diff 파일 리뷰
differential-review --diff <diff-파일-경로>

# 최근 커밋 리뷰
differential-review --commit <커밋-해시>

지원 플랫폼

  • Claude Code
  • Cursor
  • Codex
  • 기타 AI 에이전트 플랫폼

환경 변수

DIFFERENTIAL_REVIEW_DEPTH: 분석 깊이를 설정합니다. (shallow 또는 deep) GIT_REPOSITORY_PATH: git 저장소 경로를 지정합니다.

참고 사항

  • 이 스킬은 git 저장소에서 실행되어야 합니다.
  • 분석 대상 코드는 접근 가능한 git 저장소에 있어야 합니다.
  • 대규모 저장소의 경우 분석 시간이 길어질 수 있습니다.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

trailofbits/address-sanitizer

AddressSanitizer detects memory errors during fuzzing. Use when fuzzing C/C++ code to find buffer overflows and use-after-free bugs.

trailofbits/aflpp

AFL++ is a fork of AFL with better fuzzing performance and advanced features. Use for multi-core fuzzing of C/C++ projects.

trailofbits/agentic-actions-auditor

Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI Codex, and GitHub AI Inference. Detects attack vectors where attacker-controlled input reaches AI agents running in CI/CD pipelines, including env var intermediary patterns, direct expression injection, dangerous sandbox configurations, and wildcard user allowlists. Use when reviewing workflow files that invoke AI coding agents, auditing CI/CD pipeline security for prompt injection risks, or evaluating agentic action configurations.

trailofbits/algorand-vulnerability-scanner

Scans Algorand smart contracts for 11 common vulnerabilities including rekeying attacks, unchecked transaction fees, missing field validations, and access control issues. Use when auditing Algorand projects (TEAL/PyTeal).

trailofbits/ask-questions-if-underspecified

Clarify requirements before implementing. Use when serious doubts arise.

trailofbits/atheris

Atheris is a coverage-guided Python fuzzer based on libFuzzer. Use for fuzzing pure Python code and Python C extensions.

trailofbits/audit-augmentation

Augments Trailmark code graphs with external audit findings from SARIF static analysis results and weAudit annotation files. Maps findings to graph nodes by file and line overlap, creates severity-based subgraphs, and enables cross-referencing findings with pre-analysis data (blast radius, taint, etc.). Use when projecting SARIF results onto a code graph, overlaying weAudit annotations, cross-referencing Semgrep or CodeQL findings with call graph data, or visualizing audit findings in the context of code structure.

trailofbits/audit-context-building

Enables ultra-granular, line-by-line code analysis to build deep architectural context before vulnerability or bug finding.

trailofbits/audit-prep-assistant

Prepares codebases for security review using Trail of Bits' checklist. Helps set review goals, runs static analysis tools, increases test coverage, removes dead code, ensures accessibility, and generates documentation (flowcharts, user stories, inline comments).

trailofbits/burpsuite-project-parser

Searches and explores Burp Suite project files (.burp) from the command line. Use when searching response headers or bodies with regex patterns, extracting security audit findings, dumping proxy history or site map data, or analyzing HTTP traffic captured in a Burp project.

trailofbits/cairo-vulnerability-scanner

Scans Cairo/StarkNet smart contracts for 6 critical vulnerabilities including felt252 arithmetic overflow, L1-L2 messaging issues, address conversion problems, and signature replay. Use when auditing StarkNet projects.

trailofbits/cargo-fuzz

cargo-fuzz is the de facto fuzzing tool for Rust projects using Cargo. Use for fuzzing Rust code with libFuzzer backend.

trailofbits/chrome-mcp-troubleshooting

Diagnose and fix Claude in Chrome MCP extension connectivity issues. Use when mcp__claude-in-chrome__* tools fail, return "Browser extension is not connected", or behave erratically.

trailofbits/claude-in-chrome-troubleshooting

Diagnose and fix Claude in Chrome MCP extension connectivity issues. Use when mcp__claude-in-chrome__* tools fail, return "Browser extension is not connected", or behave erratically.

trailofbits/code-improver

Runs an autonomous review-and-fix improvement loop over any code target — a skill, plugin, module, or directory — using a reviewer the user names: any installed skill or agent. Keeps a cross-round findings ledger, escalates when fixes stop converging, and guards scope mechanically. Use when asked to 'improve this code until review passes', 'run an improvement loop with <reviewer>', or to iterate review-and-fix with a specific reviewer. For skills prefer the skill-improver entry; for a branch prefer pr-improver.

trailofbits/code-maturity-assessor

Systematic code maturity assessment using Trail of Bits' 9-category framework. Analyzes codebase for arithmetic safety, auditing practices, access controls, complexity, decentralization, documentation, MEV risks, low-level code, and testing. Produces professional scorecard with evidence-based ratings and actionable recommendations.

trailofbits/codeql

Scans a codebase for security vulnerabilities using CodeQL's interprocedural data flow and taint tracking analysis. Triggers on "run codeql", "codeql scan", "codeql analysis", "build codeql database", or "find vulnerabilities with codeql". Supports "run all" (security-and-quality + security-experimental suites) and "important only" (high-precision security findings) scan modes. Also handles creating data extension models and processing CodeQL SARIF output.

trailofbits/constant-time-analysis

Detects timing side-channel vulnerabilities in cryptographic code. Use when implementing or reviewing crypto code, encountering division on secrets, secret-dependent branches, or constant-time programming questions in C, C++, Go, Rust, Swift, Java, Kotlin, C#, PHP, JavaScript, TypeScript, Python, or Ruby.

trailofbits/constant-time-testing

Constant-time testing detects timing side channels in cryptographic code. Use when auditing crypto implementations for timing vulnerabilities.

trailofbits/cosmos-vulnerability-scanner

Scans Cosmos SDK blockchain modules and CosmWasm contracts for consensus-critical vulnerabilities — chain halts, fund loss, state divergence. 25 core + 16 IBC + 10 EVM + 3 CosmWasm patterns. Use when auditing custom x/ modules, reviewing IBC integrations, or assessing pre-launch chain security. Updated for SDK v0.53.x.

관련 스킬