An 89 KB ternary System-1 decision model in SSD SRAM for zero-byte-loss ransomware rollback.
Data on an SSD is never overwritten in place. When a file is encrypted by ransomware, ciphertext is written to a fresh flash page while the original data is preserved on silicon until garbage collection is run.
An 89 KB ternary {-1, 0, +1} System-1 model is held directly in on-chip SSD SRAM beyond the reach of OS rootkits. Every 128 writes are checked in 4.0 ms inside 189 KB of static C11 with zero floats, zero tokens, and zero training; on attack, garbage collection is frozen, writes are locked, and the block map (L2P) is flipped back to the clean flash pages.
| Suite | Workload | Result | Proof |
|---|---|---|---|
| Live Linux Attacks | 9/9 QEMU NVMe ext4 ransomware, wiper, and white-box evasion runs |
0 B lost, 24/24 SHA-256 intact, e2fsck CLEAN |
QEMU Report |
| Benign Workloads | 3/3 live Linux (git repack + Rust build, SQLCipher, FITRIM) + 6/6 DB/OS traces |
0 false lockdowns |
QEMU Report, Eval Report |
| Power-Loss Recovery | Mid-attack PCIe power yank on 85%-full CoW FTL + volatile DRAM wipe |
1,500/1,500 files recovered from 3.79 KB supercap log |
Eval Report |
| Silicon & Formal | Freestanding C11 (-O3), 500-window bit-exact parity, Z3 QF_LIA |
363,520 trits (88.75 KB), 189.02 KB SRAM, 4.0 ms, 7/7 Z3 UNSAT |
Eval Report, ssd_guard.c, smt_verify.py |
- 128-Op Telemetry Window: Every
128NVMe block mutations are encoded off the~15 usechost write path from64 Bold and new page headers, page-body entropy and repeat-structure bits, LBA locality, and cold-data age. - Analytical Ternary Weights:
363,520weights in{-1, 0, +1}(88.75 KBat2 bits/trit) are compiled directly from128file-header grammars, differential transition gates, 4-head causal attention, and stride filters with zero training. - Single-Pass System-1 Judgment: Branchless integer inference (
int8/int16/int32, zero floats, zeromalloc) is completed in4.0 msinside189.02 KBof on-chip controller SRAM, and a calibrated containment probability is produced with zero token generation. L2PBlock-Map Rollback: Suspect windows are pinned against garbage collection (YELLOW); on confirmed attack (RED), hardware WORM lockdown is engaged,TRIMand wipe commands are blocked, andL2Ppointers are rolled back to intact flash pages.
pip install -e .
make weights c_lib test smt
make eval redteam # Linux/WSL2 live guest suite: sudo make redteam-qemuc_engine/ Freestanding C11 ternary inference engine, bench, and 88.75 KB weight blob
compiler/ 128 header grammars, analytical trit compiler, Python reference, and C bridge
ftl_sim/ Copy-on-Write FTL simulator, cold-epoch tracking, PLP journal, and WORM FSM
verification/ Bit-exact C11/Python parity suite and 7 white-box Z3 QF_LIA proofs
eval/ Tail calibration, 85%-full dirty-FTL + PLP suite, and EVAL_REPORT.md
live_testbench/ NBD CoW server, Linux QEMU NVMe runner, e2fsck judge, and 12 red-team cases
media/ Live ransomware defense and rollback demo video (mp4) and poster (png)
Makefile Build, parity test, Z3 proof, dirty-FTL eval, and QEMU red-team targets
End-to-end containment is verified on Linux ext4 over QEMU NVMe/NBD, an 85%-full CoW FTL simulator with PLP recovery, freestanding C11 (GCC/MSVC), and Z3 QF_LIA; NTFS, XFS, and physical Cosmos+ OpenSSD Cortex-R5 targets are queued next.
