soc-home-lab

07 — kev-hunting

Problem: When CISA adds a vulnerability to the KEV catalog, federal agencies get a hard deadline — but your network doesn’t patch itself. The gap between “KEV published” and “patch deployed” is the hunting window, and the public reporting usually contains enough of the attack chain to hunt on.

Case: October 2026 KEV additions, plus the week of 10-12→10-18 additions (9 new KEV entries). 2026-10-20 additions (CISA catalog version 2026.10.21, 6 new entries) are covered below — headlined by the Plex2Shell RCE chain:

New this week — full lab built:

Hunt packs with an in-repo reference detector (detect/, tests in tests/):

All six in-repo detectors ship with the sample above; three of them (BeyondTrust, Atlassian, Nextcloud) also ship a noisy sample variant in samples/noisy/ (thousands of lines, benign look-alikes, missing fields). Expected TP/FP numbers are in NOISY_DATA.md.

Intel only (in CISA KEV, no lab):

KEV fields for the intel-only entries, checked against the official feed:

Verified against CISA KEV on 2026-12-04 (catalog version 2026.12.03).

| CVE | KEV entry (vendor · product · name) | Added | Federal due | Why no lab | Sources | |—|—|—|—|—|—| | CVE-2026-106931 | EG Secure Solutions · SiteGuard Server Edition · EG Secure Solutions SiteGuard Server Edition OS Command Injection Vulnerability | 2026-10-20 | 2026-10-23 | Commercial licensed WAF, no free repro environment | CISA KEV · NVD · EG Secure Solutions alert-202610-1 | | CVE-2026-0322 | Palo Alto Networks · PAN-OS · Palo Alto Networks PAN-OS Code Injection Vulnerability | 2026-10-14 | 2026-10-17 | Needs a real firewall | CISA KEV · NVD | | CVE-2026-96951 | Microsoft · Windows · Microsoft Windows Command Injection Vulnerability | 2026-10-13 | 2026-10-16 | Windows + sample complexity | CISA KEV · NVD | | CVE-2026-76519 | Cisco · Secure Email Gateway · Cisco Secure Email Gateway Relative Path Traversal Vulnerability | 2026-10-14 | 2026-10-17 | Needs a real appliance | CISA KEV · NVD | | CVE-2026-105133 | Ahsay · AhsayCBS · Ahsay AhsayCBS Improper Authentication Vulnerability | 2026-10-14 | 2026-10-17 | Niche backup product | CISA KEV · NVD | | CVE-2026-105134 | Ahsay · AhsayCBS · Ahsay AhsayCBS Command Injection Vulnerability | 2026-10-14 | 2026-10-17 | Niche backup product | CISA KEV · NVD | | CVE-2025-61624 | Fortinet · Multiple Products · Fortinet Multiple Products Path Traversal Vulnerability | 2026-10-16 | 2026-10-19 | No public PoC for either trigger as of 2026-10-17 | CISA KEV · NVD |

What it is: A threat-hunting lab built around the KEV-to-action pipeline: take a fresh KEV entry, extract huntable artifacts from public reporting, write detection heuristics, and document the hunt. Companion piece: cve-2026-102764-beyondtrust-auth-bypass.md (lab card with the full writeup + NICE mapping).

Skills: Threat-intel consumption (KEV), IOC extraction, log hunting, detection engineering, incident documentation.

samples/ contains synthetic training logs only — generated for this lab, no real attacker data, no real malware. The real implants are never included.

Safety rules (read first)

  1. Hunt in your own lab/VM logs or the provided synthetic samples. Never run “hunt queries” against systems you don’t own.
  2. No exploit code lives here and none should be written here — this lab is detection only. Do not go looking for a PoC to “test”.
  3. If you find a real indicator during the exercises, stop and treat it as a real incident (isolate, escalate) — don’t continue the lab on a compromised box.

Lab exercises (do them yourself, in order)

Exercise 1 — Intel extraction (30 min)

Read the BeyondTrust advisory BT26-05 summary and the Mandiant reporting referenced in the soc-skills lab card. Extract every huntable artifact into a table: artifact → log source → example value. Aim for the 7 in hunt-checklist.md. Write the table in incident-report-template.md §1.

Exercise 2 — Write the hunt (45 min)

Using the synthetic samples/appliance.log, write a script (or extend ../02-python-ioc-analyzer/) that flags each artifact type and correlates: ≥2 distinct artifact types on one host within 24h → incident. Compare your output with the reference implementation in cve-2026-102764-detect.py after yours runs.

Exercise 3 — Tune against benign noise (30 min)

The samples include benign admin activity (scheduled haproxy reloads, routine vault reads, scheduled log rotation). Tune your heuristics so none of them become incidents — document every allowlist decision and why in the report §3. A hunter who can’t explain their allowlist can’t defend their alerts.

Harder version: run the reference detector on samples/noisy/appliance-noisy.log (six appliances, three days, ~2,600 lines). It raises one false incident and misses one real one. Find both before you read NOISY_DATA.md.

Exercise 4 — Incident report (30 min)

Fill incident-report-template.md end to end as if Exercise 2’s incident were real: timeline, IoCs, severity call (justify P1), containment (isolate appliance, rotate vault, rebuild from known-good), eradication, recovery, lessons learned.

Detection notes

Signal Where Why it matters
New .php under appliance web root file integrity / syslog SAWFLY web shell = initial persistence
setuid-root file outside pkg mgmt EDR / auditd Root SUID shell = privilege foothold
Vault read by unusual account appliance audit log Secrets theft precedes lateral movement
Boot script + sudoers changed together file integrity Passwordless sudo = reboot persistence
haproxy.cfg changed + new WS/SOCKS listener config backup / netstat BARECLAW = C2 channel
Jump Item role → Administrator appliance audit log Privilege escalation on the support plane
Log sequence gaps SIEM Actor deletes logs — absence is evidence

Resume bullet (copy-ready)