Hunt the newest CVEs that affect an authorized pentest target's technology stack, get the public check or exploit for each, and prove or rule out each one on the live target. Fingerprints the stack (passive first), queries the cve.now MCP server (or its REST API through scripts/cvehunt.py) for recent, KEV-listed, EPSS-flagged and publicly exploited CVEs and pre-CVE early warnings per component, sweeps CISA KEV for appliance vendors, checks version ranges, distro backports and preconditions, s...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of cve-hunt?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hash3lizer-cve-hunt)
---
name: cve-hunt
description: Hunt the newest CVEs that affect an authorized pentest target's technology stack, get the public check or exploit for each, and prove or rule out each one on the live target. Fingerprints the stack (passive first), queries the cve.now MCP server (or its REST API through scripts/cvehunt.py) for recent, KEV-listed, EPSS-flagged and publicly exploited CVEs and pre-CVE early warnings per component, sweeps CISA KEV for appliance vendors, checks version ranges, distro backports and preconditions, sources detectors and exploits (nuclei, Metasploit, Exploit-DB, PoC-in-GitHub, researcher tools), vets third-party code and runs it only inside a credential-isolated sandbox, and escalates through a safety ladder with approval gates for anything that can crash, leak or change the target. Ships playbooks for the named 2Shell/4Shell incidents (PHP2Shell, Node2Shell/HTTP2Shell/Py2Shell, Java2Shell/Java4Shell, Nginx2Shell/NGINX2Root, React2Shell, Log4Shell, Spring4Shell, Text4Shell) and a catalog of every other named incident cve.now resolves (ProxyShell, CitrixBleed, regreSSHion, ToolShell, Heartbleed...). Labels every result CONFIRMED / INDICATED, NOT PROVEN / RULED OUT per the proof standard and writes cve-hunt.md. Use when asked to hunt CVEs for a target or company, check whether a target is vulnerable to a recent or named vulnerability (php2shell, nginx2shell, java2shell, node2shell, react2shell, log4shell, citrixbleed...), find and test the exploit for a CVE, or invokes /cve-hunt <target>.
---
# cve-hunt: newest CVEs in the target's stack, the exploit, and a proven verdict
The question this skill answers for each in-scope host: **which recent vulnerabilities apply to what this target runs, and is the target actually vulnerable?** "Actually" means the proof standard in Step 6: a version match is a lead; a finding needs the request and response (or the out-of-band callback) that shows the effect.
What it combines:
- **cve.now** (MCP server `cve-now`, tools `search` and `execute`; REST twin via `scripts/cvehunt.py`): CVEs, early warnings, KEV, EPSS, affected ranges, fixed versions and exploit pointers. Reference: [`reference/cve-now.md`](./reference/cve-now.md).
- **Playbooks** for the named incidents: [`reference/incidents/`](./reference/incidents/) (2Shell/4Shell family, deep) and [`reference/named-incidents.md`](./reference/named-incidents.md) (every other cve.now name).
- **Fingerprinting** guide: [`reference/fingerprinting.md`](./reference/fingerprinting.md).
- **Exploit sourcing, vetting, sandboxing and OOB proof**: [`reference/exploit-sourcing.md`](./reference/exploit-sourcing.md).
- **Deliverable format**: [`reference/report-template.md`](./reference/report-template.md).
Invocation: `/cve-hunt <target> [direction]`, where target is a URL, hostname, list of hosts or company name (with its scope statement), and direction is free text such as `only nginx2shell and php2shell`, `last 30 days`, `critical only`, `no exploitation, passive only`. Carry the direction through every step.
Scripts (absolute paths, Python 3 stdlib and bash only):
```bash
H=~/.claude/skills/cve-hunt/scripts/cvehunt.py # hunt | cve | incident | inrange | exploits [--deep] | kev | deps | fingerprint | oob
V=~/.claude/skills/cve-hunt/scripts/vet_poc.py # static triage of a cloned PoC (exit 2 = BLOCK)
SB=~/.claude/skills/cve-hunt/scripts/poc_sandbox.sh # run third-party code with /home hidden and egress allow-listed
```
## Non-negotiable rules
1. **Authorized scope only.** Test only hosts and ports the engagement approves (the scope document or the user's scope statement). Hosts you discover (certificate SANs, origins behind a CDN, other vhosts) are out of scope until the user confirms them. Never send client names, hostnames or IPs to third parties (cve.now queries, GitHub, search engines, passive-DNS sites).
2. **A version is a lead, not a finding.** Banner, package or range matches are INDICATED at best. Distro backports keep old version strings, so a banner alone never proves vulnerable or fixed.
3. **Climb the safety ladder one rung at a time and stop at the first rung that answers the question.**
| Level | What it is | Examples | Approval |
|---|---|---|---|
| L0 Passive | What a browser or crawler sees: headers, TLS/ALPN handshake, static assets, error pages, banners | `cvehunt.py fingerprint`, `curl -I`, `openssl s_client -alpn h2`, `nmap -sV --version-light` | None (in scope) |
| L1 Precondition | Well-formed, benign requests that show whether a feature or code path exists | Valid-Brotli `br` vs raw differential (Node2Shell), 31-character decoder-type probe (Java2Shell), `phpinfo` GET, RSC header check | None |
| L2 Safe discriminator | A published check that does not crash, persist or leak data, including lookup-only OOB probes | React2Shell `--safe-check`, Spring4Shell `URLs[0]=0`, ProxyShell autodiscover GET, Log4Shell DNS token, Text4Shell `${dns:address\|localhost}`, `smb-vuln-ms17-010` | None, **unless the playbook marks it "approval"** (for example h2flowcheck sends megabytes of crafted HTTP/2) |
| L3a Benign execution, low crash risk | The vulnerable path runs a harmless, unique marker or OOB lookup | Metasploit `check` with a JS-only marker (React2Shell), Shellshock random-string echo, a template that sets a benign header | **Yes.** One approval can cover the hunt's list of named L3a checks |
| L3b Risky proof | Anything that can crash or stall a worker, discloses other users' memory, changes state, or needs large traffic | PHP2Shell OOM probes, Node2Shell 23 MB probe, Heartbleed/CitrixBleed reads, Spring4Shell `configFile` OOB, any memory-corruption exploit | **Yes, per target and per tool**, naming the risk. Prefer a staging clone with the same build |
| L4 Post-exploitation | Shells, persistence, reading secrets, environment or files, pivoting, data access | | **Never under this skill** |
4. **Never run third-party code without vetting and the sandbox.** A tester's host usually holds credentials (cloud keys in `~/.aws`, `~/.ssh`, CLI tokens, agent configs). Every PoC, scanner or template from outside goes through `vet_poc.py`, a full read, and `poc_sandbox.sh` with egress limited to the target. Official nuclei/Metasploit/nmap binaries are trusted tools; the templates and modules they load still get read.
5. **Benign payloads only.** OOB DNS/HTTP lookup of a unique label, an echoed random marker or arithmetic result, a JS-only marker. Never reverse shells, webshells, file writes in web roots, `/etc/passwd` or environment dumps, or credential reads, even when a public PoC does that by default.
6. **One active check at a time per target, rate-limited.** Stop immediately and tell the user if the target degrades (5xx bursts, timeouts, resets) during anything above L1, and record what was running.
7. **Evidence for every label** (exact request and response or OOB record, baseline, timestamp, tool and commit). Clean up what you create.
8. **No writes to external systems without approval.** Filing findings in a tracker or reporting platform, opening tickets or contacting anyone about results happens only after the user approves that specific set of changes; reads are fine.
## Workflow
### Step 0: Engagement, scope, workspace
1. Resolve the company and the approved targets from the scope document or the user's scope statement. Write the approved host list into `notes.md`.
2. Workspace: `~/pentests/<Company>/cve-hunt/<YYYY-MM-DD>/` (or the location the user prefers) with `evidence/`, `pocs/`, `notes.md`.
3. Reuse prior recon instead of re-probing: earlier scan output, asset inventories or findings the user provides (save a copy as `evidence/prior-findings.json` or similar) for versions and technologies already observed (keep their labels; do not upgrade them).
4. Authenticated surface (for example ProxyNotShell needs a mailbox): use only test credentials the client provided for this engagement (ask the user). No safe credential means those checks are Blocked, not attempted.
5. Confirm tooling: MCP tools from `cve-now` are available (Claude Code: `claude mcp list`; otherwise use `cvehunt.py`, which calls the same REST API). Check which tools are present (`command -v curl openssl nmap dig python3 jq git nuclei interactsh-client searchsploit msfconsole`); install missing ones only with the user's OK (commands in `exploit-sourcing.md`).
### Step 1: Fingerprint the stack (L0/L1)
1. Per hostname: `python3 $H fingerprint https://<host>/ --json > evidence/fingerprint-<host>.json`, then read the human output. It reports TLS/ALPN, headers, cookies, CDN/edge, technology signals, suggested hunt commands and named incidents to check.
2. Deepen per component with [`reference/fingerprinting.md`](./reference/fingerprinting.md): extra paths and error pages, ALPN per vhost, certificate names, `nmap -sV --version-light` on in-scope ports.
3. Separate **edge** from **origin**. If a CDN or L7 load balancer fronts the host, banners, ALPN and WAF behaviour belong to the edge; preconditions such as HTTP/2 reaching nginx must be tested on an in-scope origin.
4. Build the stack inventory (host, component, version or range, evidence rank, edge/origin, notes). Every later decision cites a row.
### Step 2: Hunt with cve.now
Run these per inventory row; record queries and results in `notes.md`.
1. **Named incidents first.** For each component, check the index below and run `python3 $H incident <name>` (live KEV/EPSS/exploit data plus the playbook path). Open the playbook and follow its Quick check.
2. **Recent CVEs and early warnings** (default window 120 days, or the user's):
- MCP: `execute {"name":"entities.search","arguments":{"tech":["nginx"],"date":[">=<date>"],"type":["cve","early-warning"],"limit":50}}`, then the same with `"exploited":true` and with `"kev":true`.
- Non-slug products (Tomcat, OpenJDK, NetScaler, Exchange, Keycloak, Envoy...): `vendor` or `q` (`"q":"\"NetScaler\" date:<180d"`).
- Or REST: `python3 $H hunt --tech nginx --days 120` (ranks by KEV, Metasploit/nuclei/Exploit-DB availability, GitHub exploit repos, EPSS, CVSS; enriches the top 15).
3. **All-time exploited for the vendor:** `python3 $H hunt --tech <slug> --kev --days 3650` and, for appliance and commercial vendors, `python3 $H kev --vendor '<regex>'` straight from CISA (cve.now's vendor attribution misses many older KEVs).
4. **What is hot:** `execute {"name":"rankings.get","arguments":{"id":"cves-trending","period":"7d","tech":"<slug>"}}`.
5. White-box only, and only with the client's OK to share package lists with cve.now: `python3 $H deps --lockfile <file>` (else compare versions locally against `entities.get` ranges).
Output of this step: a candidate list (CVE, host, component, why it might apply).
### Step 3: Triage each candidate
For each candidate, in this order, and write the reason for every drop:
1. `python3 $H cve <CVE>`: read the vendor/CNA description (not only the model-written summary), CVSS source, KEV dates, SSVC, fixed versions, references.
2. **Version applicability:** `python3 $H inrange <CVE> --product '<product>' --version <v>`. `NOT_AFFECTED` on a trustworthy version (rank 1-2 evidence, or a distro package at or past the tracker's fix) is RULED OUT; on a banner it is a weak signal only. `AFFECTED` is a lead. `UNKNOWN` means read the advisory.
3. **Preconditions and reachability:** module or feature enabled, SAPI/runtime, config, authentication needed, edge vs origin, CPU or platform constraints. Take them from the playbook or the advisory. A provably absent precondition is RULED OUT for that host (say exactly what you checked).
4. **Exploit availability:** `python3 $H exploits <CVE> --deep` (cve.now index plus nuclei, Metasploit, Exploit-DB and PoC-in-GitHub directly).
5. **Prioritize:** KEV, then weaponized public exploits (Metasploit, nuclei, verified Exploit-DB), then credible GitHub exploits, then EPSS ≥ 10%, then CVSS. Unauthenticated, internet-facing first.
6. **Plan the verification level** per remaining CVE (the lowest ladder rung that can produce a label) and list the approvals needed.
**Show the user the plan table before running anything at L3:** CVE, host, current evidence, proposed check (tool, commit or template id), ladder level, risk, approval requested. Proceed with L0-L2 work while waiting.
### Step 4: Source and vet the check or exploit
Follow [`reference/exploit-sourcing.md`](./reference/exploit-sourcing.md):
- Prefer, in order: the playbook's named detector, vendor/researcher detection scripts, nuclei templates without `intrusive`/`dos`/`destructive` tags, Metasploit `check`, then a credible exploit with a benign payload.
- Clone into `pocs/`, record the commit, run `python3 $V pocs/<repo>`, read everything that will execute, check its claims against the advisory.
- Disqualify on binaries, archives, executed blobs, exfiltration, persistence or wrong facts, and choose another source.
### Step 5: Verify on the target
1. For any OOB-based check: `python3 $H oob new`, one label per CVE and injection point (`<cve>-<nonce>.<uuid>.dnshook.site`), `python3 $H oob poll <uuid>` after the probe (wait at least 60 s for asynchronous or second-order callbacks).
2. Send the baseline request, then the probe. Capture both (`curl --trace-ascii`, tool raw output, `-jsonl` for nuclei, `HttpTrace` for Metasploit).
3. Third-party code: `$SB --allow <target> <poc-dir> -- <command>` (two-phase if it needs dependencies). Copy `out/console.log` into `evidence/`.
4. One probe per endpoint for anything heavier than L1. No loops, no "try harder" retries on crash-capable checks.
5. Stop and report to the user at once if the target degrades, if you see other users' data, or if a check does something the plan did not say.
### Step 6: Adjudicate and label
| Evidence you hold | Label |
|---|---|
| OOB callback or in-band marker that only the vulnerable server-side path could produce | **CONFIRMED** (say which effect: lookup, SSRF, code execution, memory disclosure) |
| Discriminator says vulnerable (published safe check, behavioural differential) | **INDICATED, NOT PROVEN**: "vulnerable code path observed; execution not demonstrated" |
| Version in range plus precondition present | **INDICATED, NOT PROVEN** (name the backport caveat if any) |
| Version in range but precondition unknown | INDICATED, NOT PROVEN, with the missing precondition named |
| Fixed version on trustworthy evidence, precondition provably absent, or patched-style answer from a discriminator on a direct path | **RULED OUT** (state exactly what was tested) |
| WAF/CDN block, inconclusive detector, no callback | Not proven. Never RULED OUT on these alone |
| Crash or stall observed | Stop. Tell the user now. It is evidence of a DoS-capable flaw, not of RCE |
Severity follows what was proven and the boundary crossed, not the CVE's CVSS. A memory disclosure that returned session tokens crosses a boundary even without RCE.
### Step 7: Report, hand off, clean up
1. Write `cve-hunt.md` per [`reference/report-template.md`](./reference/report-template.md): summary table, stack inventory, one section per CVE with evidence and a cold-runnable reproduction, ruled-out table, not-tested table with what each needs.
2. Tell the user, leading with the company name: counts per label, every CONFIRMED and INDICATED item, the approvals still pending.
3. Offer to turn CONFIRMED findings into client-ready write-ups (INDICATED only on request). Nothing is filed or sent anywhere without approval.
4. Clean up: `sudo rm -rf /srv/cvehunt/<runs>`, list any target-side state you changed and whether it was reverted, note OOB tokens used.
## Named incident index
Deep playbooks (facts as of 2026-11-21; refresh versions, KEV and exploit status with `cvehunt.py incident <name>` before reporting):
| Incident (aliases) | CVE(s) | Component | Unauthenticated precondition | Safest discriminating step | Ceiling without approval | Playbook |
|---|---|---|---|---|---|---|
| PHP2Shell | CVE-2026-109618, CVE-2026-109619 (KEV); follow-ons CVE-2026-115560, 129481, 129182 | PHP engine, every web SAPI, Apache mod_php worst. Fixed 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12; follow-ons 8.2.36 / 8.3.37 / 8.4.28 / 8.5.13 | Multipart POST to any PHP endpoint, finite `memory_limit`; session upload progress for the 109619 and 115560 paths | Distro-aware version check plus the upload-progress invalid session-ID differential | INDICATED | [php2shell.md](./reference/incidents/php2shell.md) |
| Node2Shell, HTTP2Shell, Py2Shell, Broccoli2Shell | CVE-2026-111497 (KEV) | Google Brotli decoder in Node.js, Bun, Python Brotli/brotlicffi, .NET 8-10, Envoy/Istio, Ruby gem, PAN-OS. Fixed Brotli 1.0.10 / 1.1.1 / 1.2.1, Node 22.23.4 / 24.22.1 / 26.12.1, Bun 1.4.4, .NET 8.0.33 / 9.0.22 / 10.0.14 | Server decodes inbound `Content-Encoding: br` (Express 5/body-parser 2, Koa, fastify-compress, aiohttp, ASP.NET request decompression, Envoy decompressor), or the target fetches an attacker URL | Valid-Brotli `br` vs raw vs `415` differential (L1); Assetnote/nuclei probe is L3b | INDICATED | [node2shell.md](./reference/incidents/node2shell.md) |
| Java2Shell, Java4Shell | CVE-2026-114938 | HotSpot AVX-512 VBMI Base64 decode stub on x86-64 CPUs with avx512vbmi: JDK 17.0.6+, 21, 25, 27. Fixed 17.0.21.1 / 21.0.13.1 / 25.0.5.1 / 27.0.1.1; JDK 8 and 11 not affected | Attacker Base64 reaches `java.util.Base64` basic/URL decoders (Spring Security CSRF, Tomcat/Jetty/Spring Basic auth, Shiro `rememberMe`, auth0 java-jwt, Keycloak JWT) | JVM version from outbound `User-Agent` or actuator, plus a 31-character decoder-type probe. White-box: Calif's bounded trigger | INDICATED remotely; runtime CONFIRMED white-box | [java2shell.md](./reference/incidents/java2shell.md) |
| Nginx2Shell, NGINX2Root | CVE-2026-123007, CVE-2026-123633 (+ the 2026-11-18 nginx batch) | nginx HTTP/2 module: OSS 1.9.5-1.30.6 and 1.31.0-1.31.8 (fixed 1.30.7 / 1.31.9), NGINX Plus (fixed 37.0.8.1 / 37.3.0.1), OpenResty, ingress-nginx (no fix) | HTTP/2 enabled and reaching nginx itself (no h2-terminating CDN/LB); 123633 also needs an upstream and exhausted `worker_connections` | Banner plus ALPN h2 on the origin; `bytevet/h2flowcheck` needs approval | INDICATED; RULED OUT when h2 is off | [nginx2shell.md](./reference/incidents/nginx2shell.md) |
| React2Shell | CVE-2025-55182 (KEV) and RSC follow-ons (incl. CVE-2026-126187) | React Server Components 19.0.0, 19.1.0, 19.1.1, 19.2.0; Next.js App Router 15.0 to 16.0.6 below each line's fix (15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7) and 14.3 canaries | App Router route accepting `Next-Action` | Assetnote `--safe-check` side channel (L2); Metasploit `check` JS-only marker (L3a) | INDICATED; CONFIRMED with L3a approval | [react2shell.md](./reference/incidents/react2shell.md) |
| Log4Shell | CVE-2021-44228 (+ 45046, 45105, 44832) | log4j-core 2.0-beta9 to 2.14.1 | Attacker string gets logged | DNS lookup carrying the `${:-123}${:-456}` token (nuclei `CVE-2021-44228`) | CONFIRMED (lookup) | [4shell-classics.md](./reference/incidents/4shell-classics.md) |
| Spring4Shell | CVE-2022-22965 | Spring Framework < 5.3.18 / 5.2.20 as a WAR on Tomcat, JDK 9+ | POJO data-binding endpoint | `?class.module.classLoader.URLs%5B0%5D=0` returns 400 vs a 200 baseline | INDICATED | [4shell-classics.md](./reference/incidents/4shell-classics.md) |
| Text4Shell | CVE-2022-42889 | Apache Commons Text 1.5-1.9 | Input used as a `StringSubstitutor` template | `${dns:address\|localhost}` reflected as `127.0.0.1`, or `${url:...}` OOB | CONFIRMED | [4shell-classics.md](./reference/incidents/4shell-classics.md) |
Every other name cve.now resolves (ProxyLogon, ProxyShell, ProxyNotShell, CitrixBleed 1 and 2, ToolShell, Heartbleed, Shellshock, regreSSHion, Terrapin, HTTP/2 Rapid Reset, POODLE, XZ backdoor, EternalBlue, SMBGhost, BlueKeep, Zerologon, PrintNightmare, and the local or client-side ones): [`reference/named-incidents.md`](./reference/named-incidents.md). A name that is in neither list: `python3 $H incident <name>`, then the vendor advisory and the discoverer's write-up; add a playbook once researched.
## Gotchas that cost hunts their credibility
- **Distro backports.** `nginx/1.24.0 (Ubuntu)`, `PHP/8.3.6-0ubuntu0.24.04.13`, `OpenSSH_9.6p1 Ubuntu-3ubuntu13.3` can all be fully patched. Map distro packages through the distro tracker before writing a word.
- **Edge vs origin.** Cloudflare, CloudFront, ALB and friends terminate TLS and HTTP/2: Nginx2Shell's precondition and Node2Shell's `br` decoding must be shown on the origin. A WAF 403 is inconclusive, never RULED OUT.
- **Patched package, old process.** `nginx -s reload`, php-fpm workers, long-running JVMs and Node processes keep the old code until a restart. Runtime evidence beats package evidence.
- **Bundled copies.** Next.js vendors React, Node.js bundles Brotli, Elasticsearch bundles a JDK, appliances bundle PHP and Java. Version-check the bundle, not the OS package.
- **cve.now text is model-written** and its exploit index is thin for older CVEs: cite the vendor/CNA, and use `exploits --deep` and `kev` for classics and appliances.
- **Fake PoCs arrive within hours.** Popular is not safe: Ghost-Bx1's Node2Shell repo ships persistence, LLCForge repos invent facts, zip-only repos hide what runs. Vet everything.
- **Crash-capable probes are not checks.** Memory-corruption triggers (PHP2Shell OOM, Node2Shell 23 MB stream, Java4Shell `A*64+'='`, nginx crash triggers) prove DoS at best and need L3b approval; prefer staging clones.
- **Proof is the unique marker, not the exploit's success message.** Rapid7 and Censys both insist on an independent oracle (OOB or a marker only the server could produce).
- **cve.now rate limits** (30 searches/min, 120 entry reads/min) and the 400-result anonymous cap: narrow by tech/vendor and date instead of paging the catalog.
- **Dates.** Playbooks are a snapshot (2026-11-21). Fixed versions, KEV status and exploit availability move weekly: refresh from cve.now and the vendor before reporting.