agentleFS
raphaelbleierraphaelbleier/mythos-sec/skills/cve-deep-dive/SKILL.md

cve-deep-dive

Skill2 starsChanged 15 days agoMITView on GitHub

Turn a CVE (or a fingerprinted technology version) from an advisory headline into confirmed, scoped detection knowledge — like a real red teamer triage workflow. KEV/EPSS triage, patch-diff root-cause analysis, lab reproduction and a knowledge-base note. Use when asked to research a CVE, or when recon fingerprints a technology/version pair that has known exploited CVEs.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write the root cause as one sentence.

    line 60
  2. Very specific:

    Optional — nuclei template: Only if cvefeed showed no nuclei_template for this CVE.

    line 85
  3. Distinctive:

    No patch commit available and no lab-reproducible root cause → write a "tentative" note and say exactly what is missing.

    line 93

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CVE deep dive — advisory → root cause → lab → detection

For authorized research and lab targets only. This skill builds detection and confirmation knowledge, not weaponized exploits. Follow the report rules of the exploit skill (allow_exploit, non-destructive, minimal proof).

Triage selects this skill (skills/registry.yaml) when the fingerprint carries a product and a version, or a version leaks in Server, X-Powered-By or X-AspNet-Version. It drives cvefeed and verify.

Data source

scripts/cvefeed is where the CVE data comes from — never a CVE id someone wrote into a skill or a note months ago. It merges CISA KEV, EPSS, NVD 2.0, the nuclei-templates CVE map, GHSA and OSV, refreshes live at engagement start, and falls back to the committed snapshot in knowledge/cve/ with the age printed (schema and limits: knowledge/cve/README.md).

scripts/cvefeed status                                  # age + provenance of every feed
scripts/cvefeed match --fingerprint <product>@<version> # ranked candidates, readable
scripts/cvefeed match --fingerprint <product>@<version> --json | jq '.candidates[0]'

recon has already written engagements/<dir>/cve-candidates.json (step 1b of the recon skill). Start from that row: it carries kev, epss, match_confidence, nuclei_template, poc_refs, the affected ranges and the provenance of every flag. If you are invoked for a bare CVE id with no engagement, query cvefeed yourself.

Steps

  1. Verify the record (morph from headline). Take the candidate row from cve-candidates.json, then read the primary sources it links: the NVD record, the CISA KEV entry (if kev is true) and the vendor advisory — not secondary blogs. Extract: affected product/version range, CWE, attack vector (unauth vs authenticated), the patch/commit references. cvefeed gives you the ranking and the references; it does not read the advisory for you.
  2. Score the reality, not the CVSS. The row already answers KEV, ransomware use, EPSS, PoC references and whether a nuclei template exists. What it cannot answer is where the target actually sits in the affected range: check match_confidence and do not promote it. exact is a version read off the product; banner is a guess from a header; range-unknown means nobody checked the version at all. Record in the note metadata: kev:, epss:, poc-public:, version-match: and the data's age. (Pipeline and the precise ranking: knowledge/techniques/cve-triage-2026.md.)
  3. Read the patch, state the root cause. For open source: fetch the fix commit(s) from NVD references and diff them. Answer — where is the missing control, which input now gets sanitized, and is this a patch bypass of an older CVE (SharePoint 2026 pattern). Write the root cause as one sentence. (Template: knowledge/techniques/patch-diffing.md.)
  4. Reproduce in the lab (non-destructive). Spin up the deliberately vulnerable/real version in Docker (isolated, no egress except the OAST host). Prove the bug with the harmless oracle: OOB callback (URLDNS, DNS-tunnel), echoed id, marker file. If the target is real (user-authorized), stay read-only or OOB-only — never dump data.
  5. Map to Mythos detection. Answer in the note's ## How Mythos detects it section:
    • which fingerprint/version triggers the class-check,
    • which parameter/endpoint patterns the scanner should fuzz,
    • which toolbox tool confirms: if the candidate row carries a nuclei_template, that check already exists — run scripts/mythos nuclei -id <cve-id> -u <URL> and read the template to see what its matcher actually proves. Otherwise commix, jwt_tool, etc.,
    • the exact non-destructive confirmation oracle.
  6. Write the note (shape in skills/research-ingest/SKILL.md): knowledge/web/<class>.md for the generic class, a dedicated knowledge/<area>/<cve-id>.md file only if the CVE has atypical detection steps. Index it in knowledge/README.md. One note = one fact, dated, sourced (NVD/KEV/advisory/patch-commit URLs).
  7. Optional — nuclei template. Only if cvefeed showed no nuclei_template for this CVE. If the vulnerability is version- or response-verifiable, draft a nuclei template (matcher on the fix-condition or OOB) under toolbox/ templates and validate in the lab, never against unauthorized targets.

Stop conditions

  • No patch commit available and no lab-reproducible root cause → write a "tentative" note and say exactly what is missing. Do not speculate payloads.
  • Target in scope but exploitation not allowed per scope.rules → analysis stops at detection knowledge; output stays hypothetical.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.