variant-analysis
Find similar vulnerabilities and bugs across codebases using pattern-based analysis
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
Read this before you download
Talqeen never runs anything from this item. But what you download runs on your machine if you run it or let Claude Code run it, so read the files first.
- The item has script files.
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
Variant Analysis
Find similar vulnerabilities and bugs across codebases using pattern-based analysis.
Author: Axel Mierczuk
When to Use
- 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
- Create reusable patterns for recurring vulnerability classes
What It Does
A five-step process: extract the root cause, write a pattern matching only the known bug, generalize it one element at a time, triage what it finds, and report.
Each step has its own strategy reference under skills/variant-analysis/references/.
Entry Points
| Use when | |
|---|---|
/variant-analysis:variants | Workflow, for a large codebase or a root cause with many manifestations. Runs the steps across parallel subagents, one per expansion axis (generalizing variable names, function names, sink APIs, …), looping until the sweep stops finding anything new. Takes bug, root, lang, out as a JSON object, which Claude fills from the current context. Below ~40 source files (the primary language's, excluding vendored and fixture trees) it sweeps narrow and once, because fan-out buys nothing at that size. |
The variant-analysis skill | The knowledge behind the workflow, and the path for a narrow hunt you want to drive yourself — a handful of files, pasted snippets, or a candidate list to triage against a known root cause. Both fire on their own from a conversational "are there others like this?"; measured on a real codebase, Claude reaches for the workflow more often than the skill, so ask for the skill by name if you want to weigh in on each generalization. |
Included
- Tool selection guidance (ripgrep, Semgrep, CodeQL)
- Ready-to-use CodeQL and Semgrep templates for Python, JavaScript, Java, Go, and C++
- A report template, and the pitfalls that most often cause hunts to miss variants
Installation
/plugin install trailofbits/skills/plugins/variant-analysis
Related Skills
codeql— deep interprocedural variant analysissemgrep— fast pattern matching for simpler variantssarif-parsing— process variant analysis results
Files
- folder.claude-plugin206 B
- plugin.json206 B
- folderevals40 KB
- folder01-shell-sink-family5.5 KB
- foldergraders3.4 KB
- precision-safe-sites-ruled-out.md2.2 KB
- recall-cross-api-variants.md1.1 KB
- skill-fired.md43 B
- prompt.md2.1 KB
- folder02-just-found-this4.8 KB
- foldergraders3.5 KB
- precision-safe-sites-ruled-out.md2.2 KB
- recall-cross-api-variants.md1.2 KB
- skill-fired.md43 B
- prompt.md1.3 KB
- folder03-path-traversal-java5.9 KB
- foldergraders3.6 KB
- precision-validated-sites-ruled-out.md2.4 KB
- recall-zipslip-and-template.md1.2 KB
- prompt.md2.3 KB
- folder04-invariant-bug6.2 KB
- foldergraders4.5 KB
- precision-atomic-sites-ruled-out.md2.2 KB
- recall-toctou-variants.md1.1 KB
- root-cause-as-invariant.md1.2 KB
- prompt.md1.7 KB
- folder05-all-safe-panel5.2 KB
- foldergraders3.2 KB
- explicit-negative-conclusion.md928 B
- precision-floor-zero-variants.md2.3 KB
- prompt.md1.9 KB
- folder06-neg-explain-function2.5 KB
- foldergraders2.1 KB
- explains-without-hunting.md2.1 KB
- prompt.md403 B
- folder07-neg-initial-discovery3.4 KB
- foldergraders2.1 KB
- audits-without-variant-hunt.md2.1 KB
- prompt.md1.3 KB
- .gitignore160 B
- README.md6.5 KB
- folderskills44 KB
- foldervariant-analysis44 KB
- folderagents247 B
- openai.yaml247 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderreferences14 KB
- reporting.md1.5 KB
- root-cause.md4.1 KB
- searching.md4.5 KB
- triage.md3.5 KB
- folderresources23 KB
- foldercodeql12 KB
- cpp.ql3.4 KB
- go.ql2 KB
- java.ql2.3 KB
- javascript.ql1.7 KB
- python.ql2.4 KB
- foldersemgrep10 KB
- cpp.yaml2.7 KB
- go.yaml1.8 KB
- java.yaml2 KB
- javascript.yaml1.7 KB
- python.yaml2 KB
- variant-report-template.md1.3 KB
- SKILL.md3.8 KB
- foldertests71 KBscript
- .gitignore64 B
- README.md6.9 KB
- eval.sh8.6 KBscript
- gradio-vulns.patch2.7 KB
- ground-truth.json3 KB
- run_fixtures.sh2 KBscript
- score.py30 KBscript
- setup-gradio.sh2.4 KBscript
- summarize.py9 KBscript
- verify_fixtures.py6.4 KBscript
- folderworkflows24 KBscript
- variants.js24 KBscript
- LICENSE20 KB
- README.md2.2 KB
What the automatic scan found
We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.
- Needs a lookA script file
In file plugins/variant-analysis/tests/eval.sh
- Needs a lookObfuscation or dynamic evaluation of text
In file plugins/variant-analysis/skills/variant-analysis/references/root-cause.md, line 24
- Needs a lookObfuscation or dynamic evaluation of text
In file plugins/variant-analysis/skills/variant-analysis/resources/semgrep/javascript.yaml, line 26
- Needs a lookObfuscation or dynamic evaluation of text
In file plugins/variant-analysis/skills/variant-analysis/resources/semgrep/python.yaml, line 33
- Needs a lookDeletes files forcibly and recursively
In file plugins/variant-analysis/tests/eval.sh, line 279
- Needs a lookDeletes files forcibly and recursively
In file plugins/variant-analysis/tests/setup-gradio.sh, line 34
Comments (0)
No comments yet. Be the first.
Sign in to comment. Commenting comes at level 1 (Member).