Skip to content

Instantly share code, notes, and snippets.

@Blevene
Blevene / evals_mitre_attack_valgur_lessonsLearned.md
Last active November 25, 2026 21:46
Evals Still Require Your Brain; how to figure out what you can trust

Evals Still Require Your Brain

How to figure out what you can trust

Written By: Brandon Levene in November 2026


I've been working on building valgur (for an earlier version see: https://github.com/Blevene/bandjacks) , an agent driven ETL pipeline that reads threat intelligence reports and maps the described attacker behavior to MITRE ATT&CK techniques AND modeling the extracted behaviors into prose supported attack paths. For this project, the estimated costs of processing the corpus I have available would cost me nearly $6,000 in API costs from Google/OpenAI/Anthropic, so I decided that I would emphasize the usage of my own hardware and open weight models. The vast majority of the effort expended in building valgur was focused on evaluations: gates that helped decide what did/did not ship, experiments to decide what to try next, probes of each pipeline component, and audits of my own tooling.

TLDR: The models are rarely what failed. Instead, measurement was the most frequent failure. Vendor-writt

@Blevene
Blevene / CVE-2026-123007.md
Last active November 19, 2026 21:24
CVE-2026-123007: Detection Opportunities and Analysis

CVE-2026-123007: an 11-year-old HTTP/2 flow-control underflow in NGINX, its memory-corruption consequence, and detection rules for every observation plane

This report is self-contained: every claim is verifiable from the report alone, with primary evidence excerpts in Appendix A and every deployed detection artifact embedded with its SHA-256 in Appendix B. It references no external ledgers, folders, or systems. Scope boundary: characterization and detection only (see the stop boundary, defined in Terms). Our validation stops at the crash/memory-safety tier by design — no exploit was built, no code execution was attempted, and nothing here is an exploit. Third-party RCE claims are reported as such and labeled. All validation ran in an isolated lab on NGINX builds we compiled from the public source mirror at pinned commits; all timestamps are UTC.

Terms:

Flow control is HTTP/2's credit system: a receiver grants a window (an allowance in bytes) and the sender may send only within it;

**WINDOW

@Blevene
Blevene / CVE-2026-114938.md
Last active November 18, 2026 14:47
CVE-2026-114938 ("Java4Shell"): Detection Opportunities and Analysis

CVE-2026-114938 ("Java4Shell"): 62-byte out-of-bounds heap write in the OpenJDK AVX-512 Base64 decode intrinsic

This report is self-contained: every claim is verifiable from the report alone, with primary evidence excerpts in Appendix B and every deployed detection artifact embedded with its SHA-256 in Appendix A. Nothing else is needed to check any statement. Scope boundary: this is a proof-and-detection report only — it characterizes the out-of-bounds write and validates mitigations and detections; it contains no exploit chain of our own and no weaponization (the chain stages referenced in §8.6 are the discoverer's documented ones). All validation ran on an isolated, network-less lab VM (environment in Provenance). Disclosure status was re-checked on 2026-11-18 (§10).

Terms

An out-of-bounds (OOB) write is a store past the end of an allocated buffer. The intrinsic is a hand-written assembly implementation of java.util.Base64 decoding that HotSpot's C2 (the tier-4 optimizing JIT compi

@Blevene
Blevene / CVE-2026-122006.md
Created November 6, 2026 18:12
Detection Guide — Rails Active Storage arbitrary file write/read via ImageMagick coders (CVE-2026-122006 / GHSA-f3w6-w445-fwh9)

Detection Guide — Rails Active Storage arbitrary file write/read via ImageMagick coders (CVE-2026-122006 / GHSA-f3w6-w445-fwh9)

Scope and evidence base

  • Affected: Rails applications using Active Storage with config.active_storage.variant_processor = :mini_magick (default for apps on load_defaults 6.1 or earlier) that accept uploads from untrusted users, on ImageMagick builds whose policy does not deny the scripting coders. GHSA-f3w6-w445-fwh9 / CVE-2026-122006, CVSS 9.8 (AV:N/AC:L/PR:N/UI:N), published 2026-11-04.
@Blevene
Blevene / Ssh_Musl_password_bypass.md
Last active November 8, 2026 17:32
reproduction and detection: SSH x Musl Password Bypass

Validating the OpenSSH × musl password-authentication bypass: one correction to the public disclosure, one bound confirmed, and what detection actually looks like

This report is self-contained: a reader with no access to our systems can understand the bug, the one correction we validated against the public disclosure, the claim of theirs we confirmed, and every detection claim, with all decisive evidence quoted verbatim in Appendix A and the detection tools reproduced verbatim in Appendix B. Scope boundary: this is a validation and detection report, not an exploitation report — we claim no evidence of this bug being used in the wild, and nothing here was tested against a production fleet. Raw logs are retained by us and available on request.

Terms used in this report: musl is a lightweight C library used as the system libc on Alpine Linux, OpenWrt, and Buildroot images. An arm (noun) is one lab test configuration — a specific sshd build plus an account layout plus a password policy (distinct

@Blevene
Blevene / CVE-2026-98432_reproduction_report.md
Created November 2, 2026 16:42
Reproduction and Detections CVE-2026-98432 — Reproducing the Linux `ip_options_rcu` Use-After-Free

CVE-2026-98432 — Reproducing the Linux ip_options_rcu Use-After-Free: a Full Account

Self-contained report: every quantitative claim was verified against raw run logs, and the provenance (kernel hashes, PoC fingerprint, upstream commits) is given in §10. Scope: proof-only — a bug trigger and a leak-detection experiment. No exploitation work was performed.

*Terms we use: an attempt is one full attack cycle (SYN → duplicate SYN → ACK → close) against one TCP connection 4-tuple (source IP, source port, destination IP, destination port). A harness is the userspace

@Blevene
Blevene / TGT_ISCI_PreAuth_RCE_Detection_Guide.md
Last active October 28, 2026 18:57
TGT ISCI PreAuth RCE Detection Guide

Original Source used as basis for lab validation and reproduction: https://warez.sl0p.foo/tgt-iscsi-rce/

Detection guide — Linux tgt (tgtd) iSCSI target: unauthenticated (default config) heap write, heap-pointer leak, Data-In over-read

Scope: userspace iSCSI target tgtd from the tgt project (a.k.a. scsi-target-utils), all shipped versions — the bugs were introduced in 2006/2007 and are present in the latest upstream tree, v1.0.97 @ commit f0dc199, which is also the newest version any distribution ships. Not a kernel-target issue: LIO (in-kernel) is a different codebase and is not affected.

Guide version: 1.0 — 2026-10-28. All claims below are from our own source checkout and lab runs, not from the (AI-generated, author-self-validated) advisory that brought these bugs to our attention.

AI Disclaimer: Lab work + orchestration of bug reproduction/expoitability as well as analysis was facilitated by AI models.

@Blevene
Blevene / Detection_CVE-2026-111497.md
Last active October 25, 2026 18:56
CVE-2026-111497, node2shell Detection Opportunities

Detection guide — CVE-2026-111497 (Node2Shell / Broccoli): Brotli decoder OOB write

(Brotli 1.0.3–1.2.0 per the upstream CVE record, plus bundled copies · Node.js, Python, Bun, Envoy · behind nginx/Apache/CDN proxies · v4 release, 2026-10-25)

Detection-engineering guide for the Brotli decoder out-of-bounds write (CVE-2026-111497, CWE-787 + CWE-252, CVSS v4.0 9.2): the decoder confuses malformed input with incomplete input, keeps filling an 8-byte state buffer past its end, and corrupts adjacent state. **Our angle: reproduction and

@Blevene
Blevene / PHP2Shell_Detection_Opps.md
Created October 21, 2026 15:13
PHP2Shell: Detection Opportunities

Detection guide — CVE-2026-109618 / 109619 (PHP)

(nginx+PHP-FPM · Apache mod_php · Apache+proxy_fcgi · 2026-10-21)

Act now

  1. Patch to 8.5.12 / 8.4.27 / 8.3.36 / 8.2.35. PHP ≤ 8.1: source-only backports on github.com/php/php-src. Restart FPM/CGI workers after the change (§8.3).
  2. Until patched: set session.upload_progress.enabled=Off. It closes the upload-progress path only — keep watching multipart POSTs (§6).
@Blevene
Blevene / gist:37418227b764cce3151099627ff02cfc
Last active February 15, 2026 17:39
Structured Analysis - Example 1

Structured Analysis Report: US Removal of Chinese Hackers from Networks

Analysis ID: 2026-02-15-us-chinese-hackers-network-removal Date: 2026-02-15 Techniques Applied: Key Assumptions Check, Analysis of Competing Hypotheses, Cross-Impact Matrix, What If? Analysis, Contrasting Narratives, Premortem + Self-Critique Mode: Adaptive Evidence Base: 20 items