fix-review
💡 摘要
该插件验证代码更改是否符合安全审计发现,以确保修复有效且不引入新错误。
🎯 适合人群
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);文件读写范围与路径穿越风险。以最小权限运行,并在生产环境启用前审计代码与依赖。
Differential Testing Plugin
Verify that code changes address security audit findings without introducing bugs.
Overview
This plugin provides tools for reviewing fix branches against security audit reports. It analyzes commit ranges to:
- Verify finding remediation - Check that each audit finding has been properly addressed
- Detect bug introduction - Identify potential bugs or security regressions in the fix commits
- Generate verification reports - Create detailed reports documenting finding status and concerns
Components
Skill: fix-review
Domain knowledge for differential analysis and finding verification.
Triggers on:
- "verify these commits fix the audit findings"
- "check if TOB-XXX was addressed"
- "review the fix branch"
- "validate remediation commits"
Command: /fix-review
Explicit invocation for fix verification.
/fix-review <source-commit> <target-commit(s)> [--report <path-or-url>]
Examples:
# Basic usage: compare two commits /fix-review abc123 def456 # With audit report /fix-review main fix-branch --report ./audit-report.pdf # Multiple target commits /fix-review v1.0.0 commit1 commit2 --report https://example.com/report.md # Google Drive report /fix-review baseline fixes --report https://drive.google.com/file/d/XXX/view
Features
Report Format Support
- PDF - Read directly (Claude native support)
- Markdown - Read directly
- JSON - Parsed as structured data
- HTML - Text extraction
Finding Format Support
- Trail of Bits -
TOB-CLIENT-Nformat with header tables - Generic - Numbered findings, severity sections
- JSON - Structured
findingsarray
Google Drive Integration
If a Google Drive URL is provided and direct access fails:
- Checks for
gdriveCLI tool - If available, downloads the file automatically
- If not, provides instructions for manual download
Output
Generates FIX_REVIEW_REPORT.md containing:
- Executive summary
- Finding status table (FIXED, PARTIALLY_FIXED, NOT_ADDRESSED, CANNOT_DETERMINE)
- Bug introduction concerns
- Per-commit analysis
- Recommendations
Also provides a conversation summary with key findings.
Bug Detection
Analyzes commits for security anti-patterns:
| Pattern | Risk | |---------|------| | Validation removed | Input bypass | | Access control weakened | Privilege escalation | | Error handling reduced | Silent failures | | External call reordering | Reentrancy | | Integer operations changed | Overflow/underflow |
Integration
Works alongside other Trail of Bits skills:
- differential-review - For initial security review of changes
- issue-writer - To format findings into formal reports
- audit-context-building - For deep context on complex fixes
Installation
This plugin is part of the Trail of Bits skills marketplace. Enable it in Claude Code settings.
Prerequisites
- Git repository with commit history
- Optional:
gdriveCLI for Google Drive integrationbrew install gdrive # macOS gdrive about # Configure authentication
License
CC-BY-SA-4.0
优点
- 彻底验证安全修复
- 生成详细报告
- 支持多种发现格式
- 与其他工具集成
缺点
- 需要Git提交历史
- Google Drive集成的复杂设置
- 新用户可能有学习曲线
- 依赖于外部工具如gdrive
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 trailofbits.
