/security-appsec-review:variant-analysisfrom security-appsec-review
Hunts for other instances of a known bug by generalizing the root cause into CodeQL or Semgrep queries. Useful after finding a vulnerability, logic bug, or bad pattern, to find where else it occurs.
Ships in security-appsec-review. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Find the other instances of a bug you have already found. One root cause usually has several manifestations, and they are rarely in the module where you found the first one.
Read the reference for a step when you reach it.
1. Understand the original issue. Extract the root cause — why the code is wrong, not what it does — and enumerate the directions a variant could hide in: related identifiers, other manifestations of the same mistake, data-type edge cases. → references/root-cause.md
2. Create an exact match. Write a pattern matching ONLY the known instance and confirm it hits. A pattern that matches nothing means you have misunderstood the bug, and every search built on it is calibrated against the wrong code.
3–4. Generalize one element at a time. Climb from the exact match toward the pattern family, running and reading all matches after each single change. Stop when more than half the matches are noise. → references/searching.md — abstraction ladder, tool selection, false-positive filters
5. Triage. Decide which candidates are real, and say so with a severity attached. → references/triage.md
Then write it up, including the patterns that failed and a CI rule to prevent regression. → references/reporting.md
This plugin ships /variant-analysis:variants, which runs the five steps across parallel
subagents — one per expansion axis, looping until the sweep stops finding anything new.
Each stage reads the reference above that matches its job.
Use the workflow when the codebase is large or the root cause has many manifestations. Work the steps directly when the search is narrow or you want a say in each generalization.
The first three are covered in root-cause.md and searching.md, the fourth in triage.md.
CodeQL (resources/codeql/): python.ql, javascript.ql, java.ql, go.ql, cpp.ql
Semgrep (resources/semgrep/): python.yaml, javascript.yaml, java.yaml, go.yaml, cpp.yaml
Report: resources/variant-report-template.md
ATTRIBUTION.md (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/trail-of-bits-mark.svg (opens in a new tab)references/reporting.md (opens in a new tab)references/root-cause.md (opens in a new tab)references/searching.md (opens in a new tab)references/triage.md (opens in a new tab)resources/codeql/cpp.ql (opens in a new tab)resources/codeql/go.ql (opens in a new tab)resources/codeql/java.ql (opens in a new tab)resources/codeql/javascript.ql (opens in a new tab)resources/codeql/python.ql (opens in a new tab)resources/semgrep/cpp.yaml (opens in a new tab)resources/semgrep/go.yaml (opens in a new tab)resources/semgrep/java.yaml (opens in a new tab)resources/semgrep/javascript.yaml (opens in a new tab)resources/semgrep/python.yaml (opens in a new tab)resources/variant-report-template.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
variant-analysis, bug-hunting, security-audit, codeql, semgrep
npx claudepluginhub marslanalvi/skillsstack --plugin security-appsec-review54 skills in this plugin
/agentic-actions-auditorAudits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI Codex, and GitHub AI Inference. Detects attack vectors where attacker-controlled input reaches AI agents running in CI/CD pipelines, including env var intermediary patterns, direct expression injection, dangerous sandbox configurations, and wildcard user allowlists. Use when reviewing workflow files that invoke AI coding agents, auditing CI/CD pipeline security for prompt injection risks, or evaluating agentic action configurations./audit-augmentationAugments Trailmark code graphs with external audit findings from SARIF static analysis results, weAudit annotation files, and version-gated Trailmark 0.4.x binary-analysis graph exports. Maps findings to graph nodes by file and line overlap, creates severity-based subgraphs, and enables cross-referencing findings with pre-analysis data (blast radius, taint, etc.). Use when projecting SARIF results onto a code graph, overlaying weAudit annotations, importing binary graph findings, cross-referencing Semgrep, CodeQL, or binary-analysis findings with call graph data, or visualizing audit findings in the context of code structure.
Other plugins' skills for the same job