Gavin Branaa · tritsystem

I research ML security and low-level systems security: I find memory-safety, correctness and isolation bugs in machine-learning libraries and in the native code underneath them, reproduce each one through the real target, fix it upstream, and build the tools and study material that make the next one faster to find and easier to check.

Every number on this page is measured and dated, and every result links to its source. Negative results are reported with the same care as positives, and only merged pull requests are counted as contributions.

The record at a glance

From a full GitHub snapshot of every pull request I've authored, taken 2026-11-09, counting only other people's repositories (104 PRs across 58 repositories).

38
merged fixes and features, across 18 projects
73%
of decided PRs merged (38 of 52; 95% interval 60–83%)
3.7 days
median from opening to merge (quartiles 1.1 and 7.7)
2
published security advisories (h5io, PyJWT)
7
bugs I reported that maintainers then fixed

Read the denominator: 52 of the 104 are still open, and I count them as undecided, not as failures. Sixteen maintainers did all 38 merges, and four of them did 21, so this record says as much about those projects' responsiveness as about my patches. Of the 14 closed without merging, 8 were superseded by another fix for the same bug, 3 closed for policy or process reasons (one was my own sign-off mistake), 2 weren't wanted in that form, and none was rejected because the fix was wrong. One closed PR's commits were still merged, cherry-picked under my name into the maintainer's own PR (open_clip #1231); I don't count it.

Security and correctness work

The work splits into the native and systems layer, where bugs are memory-safety and isolation problems, and the ML layer, where they are silent numerical errors that change a model's output without crashing anything.

Published advisories

AdvisoryPackageWhat
GHSA-vwvw-f6v4-w737
CVE-2026-120499
h5io ≤ 0.2.5h5io.read_hdf5() rebuilt objects from a crafted file — eval on a timezone node, import_module on a class node, and pandas unpickling — so opening an untrusted .h5 ran code, including through MNE-Python readers. High severity, CVSS 7.8 (v3.1) / 8.5 (v4.0), CWE-95 + CWE-502. Published 2026-11-05, credited to me as a finder alongside r3vpwnx; fixed in 0.2.6.
GHSA-gvp8-978c-rx2q
CVE-2026-103001
PyJWT 2.11.0–2.13.0PyJWT.decode() mutated the caller's options dict, so a reused dict could silently switch off claim verification. Medium severity, CVSS 6.5, CWE-471. Published 2026-09-30, credited to me as reporter.

Merged fixes, by bug class

ClassMergedExamples
Memory safety in C/C++4use-after-free and double free in cfengine #6358; leak and NULL dereference in DeepSpeed's native shared-memory init (#8565); unchecked allocations in miniupnp's firewall rule builders and HTTP path (#922, #942), which I classify as robustness rather than exploitable bugs
Network-daemon and firewall correctness (C)3miniupnp: IPv4 port mappings that dropped their remote-host restriction under nftables (#925), a netlink socket left out of sync on an error path (#941), DNAT rules created at the kernel's highest revision (#923)
Authorization boundary1Woodpecker CI's org-level secret queries didn't exclude repo-scoped secrets (#7365); a defensive fix, not exploitable on a normally run instance
Shared mutable state (aliasing)2Ansible hosts seeing another host's facts under run_once (#87503); Celery Signature.clone() sharing kwargs (#10571)
Cross-sample and cross-call leakage in ML2GCViT mixing features between images in one batch (timm #2848); stale coordinate caches in the SAM3 decoder (ultralytics #26075)
Precision and dtype drift9float16/bfloat16 input silently upcast or exported at the wrong dtype: MONAI (#9103, #9104), NVIDIA Model-Optimizer (#2651), librosa (#2106), kornia (4), SpikingJelly (1)
Broken gradients2non-finite gradients at a boundary (kornia #4299); backward broken by checkpointing plus an in-place activation (timm #2849)
Module state that didn't follow .to()3kornia (2), SpikingJelly (1)
Logic, geometry and validation5a group-size check that skipped narrow layers (llm-compressor #3252), image-processor handling in transformers (#49767), kornia (2), snntorch (1)
Features (not bug fixes)4snntorch synaptic delay, homeostasis and an equation-to-neuron generator; a resonate-and-fire neuron for SpikingJelly

The class labels are my own (from the track-record site's classifier). Apart from the two advisories above, no maintainer or CVE has given any fix below a security designation.

In review (open, not counted)

Low-level systems

spikeling-os Rust · active

A from-scratch x86_64 kernel with its own filesystem, ELF loader, processes and a subset-C compiler that runs inside it, built one verified milestone at a time. Each milestone has two QEMU boots and self-tests whose expected values are worked out by hand.

Differential fuzzing of the in-kernel compiler found and fixed real silent miscompiles: integer literals of 232 or more truncated to 32 bits, case labels outside the 32-bit range compared by their low 32 bits, and a continue inside a switch inside a loop dropped since Milestone 91. The last one was found only after the fuzz started reporting how often it generated each combination of constructs. Its first run had produced that combination 0 times in 800 programs.

Native seam audit procedure

A procedure for auditing the native boundary of ML libraries, where Python hands buffers to C, C++ and CUDA. Before any tool is trusted, it's validated on a planted bug and a clean control: 9 sanitizer and fuzzer configurations, including four compute-sanitizer tools on an RTX 5060.

It records blind spots instead of hiding them: synccheck didn't flag a divergent __syncthreads on sm_120, and the first tool inventory wrongly said valgrind was installed, which only the planted bug exposed. Procedure

pytest-numba-cache Python · finished

A pytest plugin that gives each parallel worker its own numba cache, fixing a cache-write race. Measured: crashes in 8 of 10 rounds without it and 0 of 10 with it, and 76 of 160 librosa processes crashed on a shared cache versus 0 with separate ones. Measured on Windows only.

baton Python · active

Three LoRA adapters sharing one frozen model, each with its own pre-filled KV cache. Hardening found a cache-position bug where re-warming left every later write outside the attention mask, ending in a CUDA device-side assert. The fix raises before any GPU write, and a mutation check proves the test catches it.

ML research

The ML research is where I learned to measure: pre-registered studies of spiking neural networks, ternary weights and physical reservoirs. Most of the results are bounded or negative, and they're reported that way.

Spikeling Python/C · active

A language and runtime for spiking neural networks: one .spk file runs on Python, C, Verilog and GDScript backends.

Measured both ways. Event-driven execution was 16–29× faster at 5% activity but 0.92× at 100%. The resonator neuron beat a naive threshold but not Goertzel or FFT, and SNN scheduling was falsified as a differentiator (identical to greedy graph colouring).

Heterogeneous neuron ensembles study line

Do mixed neuron types detect more kinds of anomaly than one type? In Python, a mixed ensemble scored 60/60 versus 30/60 for all-LIF (heterogeneous-neuron-ontology).

The kernel port went through a full retraction: the original 16/16 result was a false positive, because its thresholds were calibrated on too few quiet windows. After that was fixed it was an honest negative (12 vs 12). A properly configured, frequency-corrected resonator then gave a measured 29/32 versus 12/32 for all-LIF, with 1/32 false positives on held-out quiet data (spikeling-os Milestones 165–175).

Ternary weights and OBSERVE Python · active

Ternary research that produced OBSERVE, a local semantic code search tool. Ternary weights gave 20× compression but cost 7.35 points of accuracy, against INT8's 0.19-point gain. So the search API serves float32, because ternary changed the top result 40% of the time.

OBSERVE used 66% fewer tokens on its own benchmark, but grep beats it (5/5 vs 3/5) when you know the identifier. The hosted API (observe-api) is code-complete but not currently deployed.

methodlm Python · active

A causal-reasoning harness that makes a model back causal claims with real tests and a checkable ledger. Its backdoor-adjustment test cut false causal claims from 100% to about 1% while keeping the true cause. Its value depends on the model's capability, and it says so.

Physical reservoirs simulation studies

topological-phononics (Zenodo preprint): topological structure protects a reservoir against a dead element exactly when chiral symmetry holds, and the idealized ~5× does not transfer to a realistic device.

quasicrystal-mems-reservoir: a symmetry selection rule confirmed on finite-element modes to 1 part in 109, with a bounded advantage. The "richer structure computes better" intuition was disproven.

silicon-mega-accelerator and spikegate finished

Accelerator techniques applied to Spikeling: a bit-exact 25.6× speedup from sparse indexing, while a lookup-table exp() was 1.56× slower than math.exp. spikegate's spike-gated routing lost to an if/elif cascade by ~21× on decision speed, and its README says so first.

Tools I built for the hunt

reagent

A two-stage bug assay: 40 detectors (32 Python, 8 C) nominate code from AST patterns, then confirm() imports and probes the code. Each detector has a synthetic ground-truth benchmark. Most sweeps of new repos end with zero real findings after triage, and that's reported.

crawlspike

A static crawler for "one path honors a flag, its sibling drops it". It found a known bug from Spikeling that ruff, semgrep and pylint all miss. On real OSS its first runs found 5 bugs in itself and 0 in the targets.

sec-portfolio pipeline

The track-record site is regenerated from the real merged diffs, with no model in the loop, so it can't hallucinate a fix.

mcp-gateway private

A tamper-evident, hash-chained audit log and rate limiter for local agent tool servers, imported by OBSERVE's and Spikeling's MCP servers.

How I learn

The method

Everything above runs on one written discipline, the Method, which opens: "A result is worth exactly as much as the test that could have broken it and didn't." In practice:

The evidence ladder

Every finding states the tier it reached, and I never round up. A finding needs at least T3, and I file at T4.

T0
A static detector or grep hit. A lead.
T1
Code read by hand and reasoned through, nothing run. A lead.
T2
The real function run, but outside its real caller. Still a lead, never called confirmed.
T3
Reproduced through the real target's real input path. The minimum to call it a finding.
T4
T3, plus a fix that flips the same reproduction from red to green, with the project's own tests still passing.
T5
T4, plus a stated search of sibling code for the same root cause, every candidate resolved, and a guard for the whole bug class.

What I study with

ML security curriculum

A reading curriculum for low-level ML systems security: systems and exploitation, fuzzing and sanitizers, GPUs and CUDA, framework internals, serialization and supply chain, adversarial ML and LLM security, and disclosure. It has 262 links checked live, about 24,650 hours of estimated reading in total (an index, not hours already studied), an 8-hour course, worked threat models, the native seam audit, and a pre-registered containment study, whose design didn't hold up: its apparent 97% containment was cluster collapse.

ML memory ladder

8 levels and 16 executable C++ and Python labs on ML memory allocation, CUDA caching-allocator and stream-lifetime bugs, and KV-cache state, with 64 spaced-repetition questions. Each level is built on a real bug I fixed, such as DeepSpeed #8565 and cfengine #6358.

ML ladder

A 16-level interactive ML course, from "what ML is" through research rigor to production evaluation and design.

The playbook

A from-scratch walkthrough of the research repos in 25 chapters with 49 questions, built to defend the work under questioning. Its closing chapter records a grand unification that failed, measured against each substrate's real code.

Memory: logging every result, negatives included

Every piece of work is logged the same day in a private research vault, with 575 work notes and 120 lessons as of 2026-11-04. Reusable mistakes become lessons, and lessons become numbered rules. A small search tool (mastermind) checks those rules before any outward action, such as a filing, a comment or a push. Example lesson titles: a finding counts only when execution-verified, reproducible and fixable; use an fp64 control before calling a numerical violation a bug; print the imported module path before trusting a harness; a mean-plus-k-sigma threshold from few windows can be vacuous.

Catching my own mistakes

How it fits together

Each line is a link a repository or document actually shows, such as an import, a vendored module or a cross-reference. Hover over or focus a box to see its links. The full list, with sources, is under the map.

How the learning material, method, tools, findings and research connect
Hover over or focus a box to see how it connects.
All connections, as a list
FromToHow (and where it's shown)