Giverny

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…

by Trail of Bits★ 8,529Security

What Variant Analysis does

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.

How to install Variant Analysis in Claude Code

Giverny gives you a ready prompt with the exact install command from trailofbits/skills. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone trailofbits/skills and copy the plugins/variant-analysis/skills/variant-analysis folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads Variant Analysis on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the variant-analysis skill on my current project.”

More Claude skills for security