I put a 21 KB recurrent decision model inside Linux 6.12 eBPF LSM hooks to catch AI agent secret exfiltration in 5.65 microseconds, before 1 packet leaves the machine.
Instead of generating text like an LLM, it works like a tiny Jev-style decision model, running 1 fixed-point INT8 forward pass (64 to 64 to 4, plus FNV-1a 3-gram embeddings) that outputs 4 calibrated probabilities in parallel (exfil risk, evasion chain, benign workflow, and uncertainty). A 32-byte recurrent hidden state lives in BPF_MAP_TYPE_TASK_STORAGE and carries across fork() and execve().
Most security teams refuse to put any model in the syscall path, so I benchmarked all 4 approaches on Linux 6.12 across 3,840 unseen multi-step dev workflows:
Simple rules (block connect after opening a secret) broke 500 out of 1,000 normal dev workflows. Oblivious decision trees (1.3 KB) and a stateless 21 KB INT8 model cut false denials to 0, yet both missed half the multi-step chains (50% recall). The recurrent 21 KB decision model kept false denials at 0 per 1,000 while jumping to 75% recall on the strict gate (0.947 F1 on evasion chains) at 5.65 us median hook latency (12.25 us p99).
In the live Linux 6.12 KVM video (inert dummy files and raw shell commands, no hidden scripts), plain cat on config.yaml updates h[32] as CLEAN (20 us), plain cat on dummy_secret.env tags it TAINT (13.5 us), python3 reading .env and hitting approved local port :19998 gets ALLOW (13.6 us, 1 pkt), then a bash subshell reading .env and execing a clean python3 toward unapproved :19999 gets hit with -EPERM straight from the kernel in 18.2 us (0 bytes leaked). Finally, warden hot-swaps new weights live inside the kernel (gen 1 to gen 2) with 0 reboot.
That hot-swap also closes the update loop. When the model flags high uncertainty or hits a false denial, the event streams out via BPF_RINGBUF for review or teacher labeling, a 10-second CPU pass retrains the 21 KB INT8 pack, and the new weights swap into the double-buffered BPF map with 0 downtime.
0 floats, 0 tail calls, 0 userspace round-trips, cleared the real Linux 6.12 eBPF verifier at 21,457 instructions out of 1M. Full eBPF C, loader, training pipeline, and 21 KB INT8 pack are live in my llm.asm repo (MIT, link below).