advisory-mining

advisory-mining is a skill for Claude Code from ByamB4/find-cve-agent. It costs 33 tokens per session (863 once invoked), scanned A, original, Apache-2.0.

A security-research workflow for finding cases where a software vulnerability fix was incomplete. CVEs are public records of known software security flaws.

In plain words
What is it for?
Use it to search GitHub advisories and CVE databases, inspect fixes, compare related packages, and investigate possible variant vulnerabilities.
Why use it?
A patch may fix one version of a flaw while leaving similar code exposed, and this workflow focuses on finding those missed variants.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the find-cve-agent plugin — 21 skills, 7 commands, 5 agents shipped together

Good fit Use it to search GitHub advisories and CVE databases, inspect fixes, compare related packages, and investigate possible variant vulnerabilities.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/byamb4/find-cve-agent/advisory-mining
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 ByamB4/find-cve-agent --skill advisory-mining
Clone the repo
git clone --depth 1 https://github.com/ByamB4/find-cve-agent

Made for: Claude Code.

Or install find-cve-agent, the plugin that ships this one along with the rest of its 21 skills, 7 commands, 5 agents.

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 advisory-mining

README.md
[![agentmods](https://agentmods.dev/badge/skills/byamb4/find-cve-agent/advisory-mining/github.svg)](https://agentmods.dev/skills/byamb4/find-cve-agent/advisory-mining)
Your own site
<a href="https://agentmods.dev/skills/byamb4/find-cve-agent/advisory-mining"><img src="https://agentmods.dev/badge/skills/byamb4/find-cve-agent/advisory-mining/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 advisory-mining

Your own site · 80×15
<a href="https://agentmods.dev/skills/byamb4/find-cve-agent/advisory-mining"><img src="https://agentmods.dev/badge/skills/byamb4/find-cve-agent/advisory-mining.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00033 $0.00863
Opus 5 $0.00016 $0.00432
Sonnet 5 $0.00007 $0.00173
Haiku 4.5 $0.00003 $0.00086

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

Security

Grade A, and why

advisory-mining scanned grade A with 1 finding 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 9d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- "curl.*nvd\\.nist\\.gov"
skills/advisory-mining/SKILL.md · 120 lines

How it starts

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

Advisory Mining -- Finding Incomplete Fixes

When to Use

Looking for high-acceptance-rate findings. Incomplete fix variants have ~95% acceptance rate because:

  1. The vulnerability class is already acknowledged
  2. The fix proves the maintainer cares about security
  3. The variant proves the fix was insufficient

Process

Step 1: Find Recent Advisories

# GitHub Advisory API -- recent npm advisories
gh api graphql -f query='
{
  securityAdvisories(first: 20, orderBy: {field: PUBLISHED_AT, direction: DESC}, ecosystem: NPM) {
    nodes {
      ghsaId
      summary
      severity
      publishedAt
      vulnerabilities(first: 5) {
        nodes {
          package { name ecosystem }
          vulnerableVersionRange
          firstPatchedVersion { identifier }
        }
      }
    }
  }
}'

# Search by keyword
gh api "/advisories?ecosystem=npm&keyword=injection&per_page=20"
gh api "/advisories?ecosystem=pip&keyword=traversal&per_page=20"

Step 2: Read the Patch Diff

For each advisory:

  1. Find the fix commit (linked in the advisory or CHANGELOG)
  2. Read the diff carefully
  3. Ask: what did they fix? What did they NOT fix?
# Find security-related commits
git log --oneline --all | grep -i "security\|fix\|vuln\|CVE\|patch\|sanitize"

# Read the patch
git show <commit_hash>
git diff <before_commit>..<fix_commit>

Step 3: Check for Incomplete Fix Patterns

Common incomplete fixes:

What Was Fixed What Was Missed
../ blocked ..\ not blocked (Windows)
__proto__ filtered constructor.prototype not filtered
One regex fixed Similar regex in same file not fixed
One function fixed Wrapper function calls it differently
Parsing fixed Serialization has same bug
Validation added Can be bypassed with encoding
One entry point fixed Other entry points not covered
Input sanitized Error messages leak unsanitized data

Step 4: Search for Same Pattern in Other Packages

Read the full file on GitHub · 120 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 120 lines · 33 tokens per session scan A a42fb05daa70

Subscribe to this mod's changes

advisory-mining is a skill published in the GitHub repository ByamB4/find-cve-agent (48 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 33 tokens to every session and 863 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories