variant-analysis
Skill by aibot88
Finds similar vulnerabilities and bugs across a codebase by generalizing a known bug pattern. It is for security analysts and developers who need to hunt bug variants after finding an initial issue.
Install variant-analysis
Built from the published package, never by AI.
git clone --depth 1 https://github.com/aibot88/sec_skill_store /tmp/sec_skill_store && mkdir -p ~/.claude/skills && cp -r /tmp/sec_skill_store/skills/claudskills/variant-analysis ~/.claude/skills/variant-analysisRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/aibot88/sec_skill_store /tmp/sec_skill_store && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sec_skill_store/skills/claudskills/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 finding bugs that share a root cause with a known issue. It guides the assistant through a five-step process: understanding the original bug, writing a pattern that matches only that instance, identifying which parts to abstract, generalizing one element at a time, and triaging the matches. The skill tells the assistant to stop generalizing when the false positive rate exceeds about 50%.
The skill recommends ripgrep for quick searches, Semgrep for simple pattern matching, and CodeQL or Semgrep taint analysis for data flow. It also lists common pitfalls, such as searching only one module or missing related constructs. Templates for CodeQL and Semgrep are provided for Python, JavaScript, Java, Go and C++, along with a report template. It is intended for security auditors and developers doing systematic code audits.
Written from the project's SKILL.md and checked against it.
What it can do
- Root cause analysisGuides the assistant to understand why a known bug is vulnerable before searching.
- Iterative pattern generalizationChanges one element of a search pattern at a time and reviews new matches.
- Match triageRecords location, confidence, exploitability and priority for each match.
- Tool selection guidanceRecommends ripgrep, Semgrep or CodeQL depending on the search scenario.
- Variant pitfall checklistLists common mistakes such as narrow search scope and missing edge cases.
- CodeQL and Semgrep templatesProvides query templates for Python, JavaScript, Java, Go and C++.
- Variant report templateProvides a report template for documenting variant findings.
What you need
- ripgrep, Semgrep or CodeQL for running searches
Try asking
- Find variants of this missing auth check across the whole repo
- Help me write a Semgrep rule for this unsafe deserialization pattern
- Generalize this bug pattern and report the false positive rate
Good to know
- Stop generalizing when the false positive rate exceeds about 50%.
- Not for initial vulnerability discovery or general code review.
- Not a substitute for environment-specific validation, testing or expert review.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/claudskills/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
When should I use Variant Analysis?
Use it after a vulnerability has been found and you need to search for similar instances across the codebase. The source says it is not for initial discovery.
Which languages have query templates?
The source lists CodeQL and Semgrep templates for Python, JavaScript, Java, Go and C++.
What tools does the skill use?
It recommends ripgrep for quick searches, Semgrep for simple pattern matching, and CodeQL for cross-function analysis.
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 public, but no licence file was found, so check the repository before commercial use.
Is variant-analysis safe to use?
It scores 43 of 100. Grades: maintenance D, licence F, quality C. 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.
