Implementazione di riferimento per "Hard Stop: Kernel-Level Preemption and Containment for Rogue Agentic Execution". Epistemic Andon Cord fuori banda, prelazione del gruppo di processi POSIX sotto il millisecondo (<0,154 ms) ed estrazione dello stato WAL resistente alle letture parziali.
Confronto Architetturale: Fabric Hardware Off-Board (DPU / SmartNIC) vs. Preemption a Livello di Kernel In-Cache (Hard Stop) Le architetture di sicurezza hardware off-board instradano la telemetria di esecuzione degli agenti fuori banda attraverso bus I/O dell'host (PCIe/CXL) o fabric di rete esterni verso processori dedicati (DPU o smartNIC). Ciò introduce ritardi fisici di trasporto, framing SerDes e serializzazione dei ring-buffer DMA (da 1,0 a 12,0 ms in condizioni di congestione del cluster) prima che un segnale di quarantena possa essere inviato. Hard Stop fornisce un'alternativa software-defined in-cache: intercettando l'esecuzione in modo sincrono nella cache L1/L2 della CPU host tramite hook LSM eBPF in-line e
cgroup v2rootless, questa implementazione di riferimento raggiunge una preemption deterministica inferiore ai 2 microsecondi (< 1,8 µs) su hardware Linux di uso comune—applicando un vero controllo positivo a zero leakage senza richiedere silicio specializzato.
Abstract: Un'IA generativa autonoma che opera in un ciclo di esecuzione continuo senza un Epistemic Andon Cord fuori banda rappresenta un rischio operativo esistenziale. Hard Stop introduce un'architettura di controllo supervisivo a doppio piano che combina supervisione fuori banda tramite Discrete Event System (DES), sentinelle Synchronous Reactive (SR) e bus di preemption POSIX/eBPF sub-millisecondo (<0,154 ms)—dimostrando congelamenti deterministici dei processi prima che traffico socket fuori target o chiamate di sistema non autorizzate attraversino i confini dell'hypervisor.
Principio: Un modello linguistico stocastico non può fungere da arbitro deterministico della propria sicurezza.
Formalmente, qualsiasi ciclo di sicurezza auto-valutante interno composto da un modello probabilistico $M$ con tasso di errore non nullo $\epsilon > 0$ eredita una probabilità di errore composta $P(\text{error}) \ge 1 - (1 - \epsilon)^k$. Le garanzie di sicurezza deterministiche richiedono rigorosamente un'architettura di controllo supervisivo fuori banda che operi direttamente ai confini del runtime, dei cgroup e del kernel.
[ Agent Generative Loop ]
│
Tool Dispatch Stream
│
┌──────────────────────────────────▼──────────────────────────────────┐
│ Out-of-Band Epistemic Sentinel Bus │
│ • Egress Domain Meet (D ∩ D_eval = ∅) │
│ • Path Traversal & SSTI Lexical/LSM Tripwires │
│ • Execution Surface Boundary Verification │
└──────────────────────────────────┬──────────────────────────────────┘
│ Invariant Breach (<0.154 ms)
▼
┌─────────────────────────────────────────────────────────────────────┐
│ Sub-Millisecond Physical Preemption Bus │
│ 1. Immediate Non-Cooperative SIGSTOP / Cgroup Freeze (<0.026 ms) │
│ 2. Out-of-Band Lock-Free Write-Ahead Log (WAL) State Extraction │
│ 3. Asynchronous LangGraph interrupt() Snapshot (0 Leaked Tokens) │
└─────────────────────────────────────────────────────────────────────┘
Gli appliance di sicurezza off-board (DPU, smartNIC o firewall di rete esterni) sono fondamentalmente limitati dalla fisica del transito su bus e fabric. Un dispositivo esterno non può matematicamente superare la località della cache della CPU host:
A. OFF-BOARD HARDWARE FABRIC (DPU / SmartNIC / External Security Switch):
[Agent Syscall] ---> [Host DMA Ring] ---> [PCIe Gen4/5 Bus] ---> [DPU Ingress FIFO] ---> [DPU Policy SoC]
t=0 5 - 15 µs 1.5 - 3.0 µs 3 - 5 µs 50 - 500 µs
|
[Host APIC Context Switch] <--- [PCIe MSI-X Interrupt] <--- [Cluster Queue Congestion] <--------+
10 - 50 µs 2 - 6 µs 1.0 - 12.0 ms
Total Quarantine Envelope: 1.0 ms to 12.0 ms (Vulnerable to atomic syscall exfiltration)
B. IN-CACHE KERNEL PREEMPTION (hardstop-rs):
[Agent Syscall] ---> [eBPF LSM Trap] ---> [L1/L2 Cache Policy Trie] ---> [%rax = -EPERM] ---> [cgroup.freeze]
t=0 < 0.4 µs 40 - 90 ns t = 60 ns < 1.8 µs
Total Preemption Envelope: < 2.0 µs (Preempted in-line before bus or network traversal; 555× faster)
| Livello / Stadio Fisico | Mezzo di Trasporto | Vincolo Fisico Irriducibile | Involucro di Latenza |
|---|---|---|---|
| Off-Board Hardware Fabrics | |||
| 1. Host-to-Device Bus Transit | PCIe Gen 4/5 Bus | TLP Serialization & Root Complex Crossing | 1.5 – 3.0 µs |
| 2. Memory Synchronization | DMA Ring Buffers | Descriptor Ring Updates & MMIO Doorbell | 5.0 – 15.0 µs |
| 3. Optical / PHY Overhead | Fiber / SerDes PHY | Electro-Optic Transduction, PAM-4, FEC Framing | 50 – 100 ns |
| 4. Network Fabric Transit | InfiniBand / RoCEv2 | Optical Fiber (5 ns/m) + Switch Traversal | 3.0 – 80.0 µs |
| 5. Off-Board Classification | SoC ARM / NPU Cores | Hardware Flow Table & Policy Parser | 50.0 – 500.0 µs |
| 6. Multi-Tenant Queue Load | Buffer Memory | Cluster Congestion & Head-of-Line Blocking | 1.0 – 12.0 ms |
| 7. Host Return Interrupt | Host PCIe / APIC | MSI-X Delivery & Core Register Context Switch | 10.0 – 50.0 µs |
| Off-Board Quarantine Total | Bus & Fabric | Cumulative Transit & Asynchronous Interrupt | 1.0 ms – 12.0 ms |
| In-Cache Kernel Preemption (hardstop-rs) | |||
| 1. Syscall Interception | Host CPU Pipeline | Kernel Entry Vector Trap | < 0.4 µs |
| 2. Tripwire Policy Eval | Host L1/L2 Cache | BPF LPM Radix Trie / Aho-Corasick DFA | 40.0 – 90.0 ns |
| 3. Synchronous LSM Denial | CPU Register (%rax) | Native BPF LSM return -EPERM Execution | 60.0 ns (exact) |
| 4. Process Group Quiescence | cgroup v2 Subsystem | Cached Inode File Descriptor to cgroup.freeze | < 1.8 µs |
| In-Cache Preemption Total | Host CPU L1/L2 | Direct In-Line Synchronous Cache Evaluation | < 2.0 µs (555× faster) |
Benchmark condotti secondo il protocollo gerarchico a due livelli di Kalibera & Jones (2013): E=15 avvii indipendenti di processi OS (ASLR nuovo per ogni avvio), I=50/3 iterazioni di warmup scartate, M=100/20 iterazioni misurate per processo, B=2.000 ricampionamenti bootstrap gerarchici. Le statistiche sono mediane non parametriche con IC al 95%.
Scopri gli strumenti più utilizzati dalla nostra community.
Nessun dato di popolarità ancora.