Variant Analysis
Hunts for the other instances of a bug already found — the variants of one root cause across a codebase. Use immediately after a vulnerability, logic bug, or bad pattern turns up in a specific file and the question becomes where else it occurs, including the bare conversational form ("are there others like this?", "is this the same bug?"). Also for generalizing one known instance into a CodeQL or Semgrep query for its whole pattern family, and for triaging a set of look-alike candidates against a known root cause. Not for initial discovery with no bug in hand.
- Type
- Skill
- Author
- trailofbits
- Category
- Security
- GitHub stars
- 7.8K
- Installs
- 6.5K
- Last updated
- October 28, 2026
Install
npx skills add https://github.com/trailofbits/skills --skill variant-analysisUse cases
- Hunt for other files containing the same bug after finding one instance.
- Turn a known vulnerability into a CodeQL or Semgrep query for its pattern family.
- Triage a set of look-alike candidates against a confirmed root cause.
Frequently Asked Questions
When should I run this skill?
Immediately after a vulnerability, logic bug, or bad pattern turns up in a specific file and the question becomes where else it occurs.
Can it find bugs when no example is known yet?
No, it is not for initial discovery with no bug in hand.
What query languages can it generalize to?
It can generalize one known instance into a CodeQL or Semgrep query covering the whole pattern family.
About this skill
Hunts for other instances of a bug that has already been found — the variants of one root cause across a codebase. Used right after a vulnerability, logic bug, or bad pattern turns up in a specific file, including the casual question 'are there others like this?'. It can also generalize a known instance into a CodeQL or Semgrep query for the whole pattern family, and triage look-alike candidates. It is not for initial discovery with no bug in hand.
Summary written with AI assistance from the project's public description.
Categories
More from trailofbits
Semgrep
Run Semgrep static analysis scan on a codebase using parallel subagents. Supports two scan modes — "run all" (full ruleset coverage) and "important...
by trailofbits
Differential Review
Performs security-focused differential review of code changes (PRs, commits, diffs). Adapts analysis depth to codebase size, uses git history for c...
by trailofbits
Modern Python
Configures Python projects with modern tooling (uv, ruff, ty). Use when creating projects, writing standalone scripts, or migrating from pip/Poetry...
by trailofbits
Codeql
Scans a codebase for security vulnerabilities using CodeQL's interprocedural data flow and taint tracking analysis. Triggers on "run codeql", "code...
by trailofbits
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh