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

variant-analysis

Ttrailofbits
1.8k
trailofbits/skills/plugins/variant-analysis
76
Agent 评分

💡 摘要

一个用于执行变体分析以在代码库中查找类似漏洞的系统化方法和工具指南。

🎯 适合人群

安全研究员应用安全工程师代码审计员漏洞管理团队高级软件开发人员

🤖 AI 吐槽:这是一个寻找更多漏洞的好指南,但它不会为你写出完美的查询——这仍然取决于你自己,人类。

安全分析低风险

风险:该技能指导创建代码查询,如果编写不当,可能导致误报/漏报,误导安全工作。缓解措施:在广泛部署之前,始终针对受控测试套件验证生成的模式。

Variant Analysis

Find similar vulnerabilities and bugs across codebases using pattern-based analysis.

Author: Axel Mierczuk

When to Use

Use this skill when you need to:

  • Hunt for bug variants after finding an initial vulnerability
  • Build CodeQL or Semgrep queries from a known bug pattern
  • Perform systematic code audits across large codebases
  • Analyze security vulnerabilities and find similar instances
  • Create reusable patterns for recurring vulnerability classes

What It Does

This skill provides a systematic five-step process for variant analysis:

  1. Understand the original issue - Identify root cause, conditions, and exploitability
  2. Create an exact match - Start with a pattern matching only the known bug
  3. Identify abstraction points - Determine what can be generalized
  4. Iteratively generalize - Expand patterns one element at a time
  5. Analyze and triage - Document and prioritize findings

Includes:

  • Tool selection guidance (ripgrep, Semgrep, CodeQL)
  • Critical pitfalls to avoid (narrow scope, over-specific patterns)
  • Ready-to-use templates for CodeQL and Semgrep in Python, JavaScript, Java, Go, and C++
  • Detailed methodology documentation

Installation

/plugin install trailofbits/skills/plugins/variant-analysis

Related Skills

  • codeql - Primary tool for deep interprocedural variant analysis
  • semgrep - Fast pattern matching for simpler variants
  • sarif-parsing - Process variant analysis results
五维分析
清晰度8/10
创新性6/10
实用性9/10
完整性7/10
可维护性8/10
优缺点分析

优点

  • 为复杂任务提供了清晰、结构化的方法。
  • 为主要的分析工具(CodeQL, Semgrep)提供了实用模板。
  • 有助于避免模式泛化中的常见陷阱。

缺点

  • 高度依赖用户编写准确查询的能力。
  • 更像是一个指南/框架,而非自动化工具。
  • 需要大量的安全和代码分析专业知识才能有效使用。

相关技能

building-secure-contracts

A
toolCo-Pilot / 辅助式
88/ 100

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

entry-point-analyzer

A
toolCo-Pilot / 辅助式
84/ 100

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

ffuf-skill

A
toolCo-Pilot / 辅助式
84/ 100

“这个技能本质上是一个美化版的 ffuf 手册页,提供专家指导但没有实际的自动化或集成功能。”

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

版权归原作者所有 trailofbits.