Co-Pilot / 辅助式
更新于 a month ago

fix-review

Ttrailofbits
1.8k
trailofbits/skills/plugins/fix-review
82
Agent 评分

💡 摘要

该插件验证代码更改是否符合安全审计发现,以确保修复有效且不引入新错误。

🎯 适合人群

安全审计员软件开发人员质量保证工程师DevOps团队项目经理

🤖 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:

  1. Verify finding remediation - Check that each audit finding has been properly addressed
  2. Detect bug introduction - Identify potential bugs or security regressions in the fix commits
  3. 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-N format with header tables
  • Generic - Numbered findings, severity sections
  • JSON - Structured findings array

Google Drive Integration

If a Google Drive URL is provided and direct access fails:

  1. Checks for gdrive CLI tool
  2. If available, downloads the file automatically
  3. 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: gdrive CLI for Google Drive integration
    brew install gdrive # macOS gdrive about # Configure authentication

License

CC-BY-SA-4.0

五维分析
清晰度9/10
创新性7/10
实用性8/10
完整性9/10
可维护性8/10
优缺点分析

优点

  • 彻底验证安全修复
  • 生成详细报告
  • 支持多种发现格式
  • 与其他工具集成

缺点

  • 需要Git提交历史
  • Google Drive集成的复杂设置
  • 新用户可能有学习曲线
  • 依赖于外部工具如gdrive

相关技能

constant-time-analysis

A
toolCode Lib / 代码库
88/ 100

“这是一把寻找时序泄漏的瑞士军刀,但你需要一个编译器工具链的博士学位来设置所有的语言后端。”

prowler

A
toolCode Lib / 代码库
86/ 100

“它是云安全的瑞士军刀,但你需要一个YAML博士学位才能配置好它所有的活动部件。”

ethereum-wingman

A
toolCo-Pilot / 辅助式
84/ 100

“看起来很能打,但别让配置把人劝退。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 trailofbits.