eresus-variant-analysis

eresus-variant-analysis is a skill for Claude Code, Codex from EresusSecurity/appsec-skills. It costs 85 tokens per session (1,068 once invoked), scanned A, original, Apache-2.0.

A code-search workflow for finding other instances of a known security weakness, such as a CVE or GHSA issue, across a codebase.

In plain words
What is it for?
Use it after identifying a vulnerability to trace its input source, dangerous operation, missing protection, and trust boundary, then hunt for matching patterns in the rest of the code.
Why use it?
Fixing one reported vulnerability may leave similar bugs elsewhere. This search looks for the same underlying pattern, not just the original location.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after identifying a vulnerability to trace its input source, dangerous operation, missing protection, and trust boundary, then hunt for matching patterns in the rest of the code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eresussecurity/appsec-skills/eresus-variant-analysis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add EresusSecurity/appsec-skills --skill eresus-variant-analysis
Clone the repo
git clone --depth 1 https://github.com/EresusSecurity/appsec-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for eresus-variant-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/eresussecurity/appsec-skills/eresus-variant-analysis/github.svg)](https://agentmods.dev/skills/eresussecurity/appsec-skills/eresus-variant-analysis)
Your own site
<a href="https://agentmods.dev/skills/eresussecurity/appsec-skills/eresus-variant-analysis"><img src="https://agentmods.dev/badge/skills/eresussecurity/appsec-skills/eresus-variant-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for eresus-variant-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/eresussecurity/appsec-skills/eresus-variant-analysis"><img src="https://agentmods.dev/badge/skills/eresussecurity/appsec-skills/eresus-variant-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,068 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.01068
Opus 5 $0.00043 $0.00534
Sonnet 5 $0.00017 $0.00214
Haiku 4.5 $0.00009 $0.00107

Measured 8d ago against content hash b9af6ba1214e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

eresus-variant-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/eresus-variant-analysis/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GHSA / CVE Variant Analysis

Purpose

When a known vulnerability (GHSA, CVE, or manually discovered bug) is identified, systematically search the entire codebase for similar patterns. The goal is to find every instance of the same underlying weakness — not just the one that was reported.

This skill operates like a GitHub Security Lab researcher performing variant analysis after a vulnerability disclosure.


Workflow

Phase 1: Decompose the Known Vulnerability

Extract the structural components of the known bug:

  1. Source — where does attacker-controlled data enter?
  2. Sink — which dangerous API/function receives the data?
  3. Missing guard — what validation/sanitization is absent?
  4. Trust boundary — which trust boundary was violated?
  5. Language pattern — what does the vulnerable code look like structurally?

Example decomposition:

CVE-2024-XXXX:
  Source: HTTP request body → `req.body.username`
  Sink: `db.query("SELECT * FROM users WHERE name = '" + username + "'")`
  Missing guard: No parameterized query, no input sanitization
  Trust boundary: User input → Database query
  Pattern: String concatenation in SQL query construction

Phase 2: Generalize the Pattern

Abstract away specific variable names and file paths to create search queries:

  • Exact sink search — search for the dangerous function/method name
  • Pattern search — search for the structural pattern (e.g., string concatenation + SQL keywords)
  • Framework search — search for framework-specific equivalents

Use view_file and grep_search to locate all candidate instances.

Phase 3: Triage Each Match

For every match found, answer these questions:

  1. Is the source actually attacker-controlled in this context?
  2. Is the sink reachable from the source in the execution flow?
  3. Are there mitigations present that neutralize this specific instance?
  4. Does the framework provide implicit protection here?

Classify each match:

  • CONFIRMED — same pattern, exploitable, no mitigation
  • LIKELY — same pattern, probably exploitable, needs deeper trace
  • MITIGATED — same pattern exists but protection is present
  • FALSE POSITIVE — pattern match but not actually exploitable

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 138 lines · 85 tokens per session scan A b9af6ba1214e

Subscribe to this mod's changes

eresus-variant-analysis is a skill published in the GitHub repository EresusSecurity/appsec-skills (7 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 85 tokens to every session and 1,068 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.