Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

variant-analysis

Skill by vibeeval

Variant Analysis finds other instances of a vulnerability after one bug is found. It is for developers and security reviewers who want to check whether the same mistake exists elsewhere in a codebase.

  • Score 71
  • 554 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install variant-analysis

Built from the published package, never by AI.

git clone --depth 1 https://github.com/vibeeval/vibecosystem /tmp/vibecosystem && mkdir -p ~/.claude/skills && cp -r /tmp/vibecosystem/skills/variant-analysis ~/.claude/skills/variant-analysis

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install variant-analysis in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Variant Analysis is a skill for AI assistants that hunts for sibling vulnerabilities after one instance has been found. It starts by describing the original bug and extracting its abstract pattern, such as missing input validation, a check-then-act race, or SQL injection via string concatenation. It then generates search queries using grep or ripgrep, Semgrep rules, and CodeQL queries, plus manual tracing.

Each match is triaged as confirmed, likely, mitigated, or false positive. The skill then produces a report with confirmed variants, variants needing investigation, mitigated instances, and scan statistics. It also describes how it fits with the coroner, security-reviewer, and code-reviewer agents. The skill is adapted from the Trail of Bits variant-analysis plugin and is aimed at security work after a bug is discovered.

Written from the project's SKILL.md and checked against it.

What it can do

  • Characterize original bugExtracts the abstract pattern behind a bug, not only the specific code.
  • Grep and ripgrep searchesRuns fast, broad pattern searches for a bug class across files.
  • Semgrep rulesWrites AST-aware Semgrep rules to find precise matches of a vulnerability pattern.
  • CodeQL queriesWrites CodeQL data-flow queries to trace untrusted input to a sink.
  • Triage resultsSorts each match as confirmed, likely, mitigated, or false positive with a clear action.
  • Variant reportProduces a report with confirmed, likely, and mitigated variants plus scan statistics.
  • Common variant patternsProvides search approaches for input validation, auth, error handling, crypto, and race conditions.
  • Agent integrationDescribes how to run variant analysis from the coroner, security-reviewer, and code-reviewer agents.

Try asking

  • Use variant analysis to find other routes missing auth like this one.
  • Search this repo for other places with the same SQL concatenation pattern.
  • Run variant analysis on this hardcoded secret and triage every match.

Good to know

  • The search examples are written for TypeScript files (--type ts).
  • The skill provides example queries that must be adapted to the codebase.
  • Matches are triaged by the assistant and still need manual review.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/variant-analysis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to variant-analysis

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

variant-analysis: common questions

What is variant analysis in security?

The source describes variant analysis as systematically hunting for siblings of a known vulnerability after one instance is found. It rests on the idea that the same mistake often exists elsewhere.

Which search tools does this skill use?

The source shows grep and ripgrep, Semgrep rules, and CodeQL queries, along with manual tracing. Each method is used to propagate a finding across the codebase.

Where does this skill come from?

The source says it is adapted from the Trail of Bits variant-analysis plugin.

How do I install variant-analysis?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is variant-analysis free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is variant-analysis safe to use?

It scores 71 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to variant-analysis?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

variant-analysis Install

Add to stack

Loading.