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.
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-analysisRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vibeeval/vibecosystem /tmp/vibecosystem && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/vibecosystem/skills/variant-analysis ~/.gemini/antigravity-cli/skills/variant-analysisAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
