
Runtime security monitor bridging MCP JSON-RPC 2.0 and OS kernel telemetry (Linux eBPF & Windows Sysmon) to detect hijacked autonomous coding agents.
LotAGuard is a cross-layer runtime monitor and synchronous kernel enforcer for autonomous AI coding agents powered by large language models (LLMs) over the Model Context Protocol (MCP).
Because autonomous coding agents routinely spawn shells, execute pytest/cargo/go/node, edit dotfiles, and open local sockets, normal AI-assisted software engineering triggers 96.4% false-positive sessions in traditional Endpoint Detection and Response (Falco, Sysmon + Sigma) while prompt-level AI guardrails remain blind to what child processes execute in the OS kernel. We formalize Living-off-the-Agent (LotA) compromises and establish a principled boundary between:
.env, .ssh/*, cloud tokens), persistence writes (.git/hooks/*, .cursorrules, CLAUDE.md), forbidden child execve / socket egress, post-RPC detached children, and dormant rule activations observable at the OS/protocol boundary.LotAGuard-Ext) and code-diff/SAST auditing complement core OS capability enforcement.
Algorithm 1 / StreamingCausalStitcher)
stdio frames (+0.01–0.05 ms median latency) alongside headerless Linux CO-RE BTF eBPF (sched_process_fork, sched_process_exit, execve, openat, connect) and Windows Sysmon64 (EID 1, 3, 5, 11, 22, 23) + Microsoft-Windows-Kernel-File ETW (EventID 12/30).(PID, G) key via a 64-bit monotonic counter G (O(1) space), evicts dead processes immediately from gamma and mu on proc_exit, expires ProcessGuid reorder entries after a 2 s FIFO window (capping 14-day / 50,000-RPC stitcher state below 15 KB vs. 219 MB unreclaimed), and resolves deferred in-server async spawns via AsyncCtx -> tau_tid[ptid] -> lastRPC.fork/exec trees via IPC-Bridge causal leases (Unix sockets / named pipes) and Attest-Cone HMAC envelopes for Streamable-HTTP MCP servers.LotAGuard-Ext
CLAUDE.md and .cursorrules (30/30 delayed triggers caught with 0 false positives across 750 multi-session steps).LotAGuard-Ext (<0.12 ms) adds CrossSessionSecretLedger (3-session staged secret tracking with 0% intermediate taint explosion) and EgressFlowGate (high-entropy config token flow gating).D4) & Three-Tier Operational Dispositions
git status touching .git/index.lock) using clean calibration frequencies while enforcing Tier-3 Hard Block (Mode-3 Linux Landlock LSM ABI v4+ / Windows socket guard), Tier-2 Step-Up Confirmation, and Tier-1 Passive SIEM Audit.
All dual-OS experiments compute exact Clopper-Pearson 95% confidence intervals (CP95) over independent task/instance units (N_inst) to prevent paired-OS pseudo-replication.
| Benchmark Suite | Independent Units (OS Runs) | Verified Result (CP95 on Independent Units) |
|---|---|---|
R2 — Verbatim AgentDojo v1.1.1 + InjecAgent | 40 tasks (80 runs: 20 Ben, 16 Class-I, 4 Class-II) | 16/20 (80.0%, [56.3, 94.3]%) overall recall at 0/20 (0.0%) FPR (16/16 Class-I vs. 0/4 Class-II; 75% FPR for native ToolFilter). |
S1 — Official SWE-bench Verified Workflows | 100 unique GitHub instances across 12 repos (200 runs) | 0/100 (0.0%, [0.0, 3.6]%) Tier-3 blocking FPs; 1/100 ([0.03, 5.5]%) Tier-2 step-ups (+G_sem); 9/100 passive logs (vs. 100/100 D0, 23/100 D5). |
Series I — Cloned OSS (click, requests, express) | 120 live dual-OS sessions (72 benign, 48 attack) | 66.7% R@1%FPR (G_lex) and 87.5% R@5%FPR (+G_sem, 0.930 AUC vs. 0.123 AUC for compiled C++ UNICORN at 1.66 s). |
R3 — Blind Unseen Repos & 8 Unseen Secret Formats | 72 runs (fastapi, httpx, flask) | Egress-escalated 3-tier policy: 0/48 ([0.0, 7.4]%) interruptions while hard-blocking 13/13 ([75.3, 100]%) socket-egress attacks. |
Series T — Live Rapid OS PID Recycling | 30 instances (60 runs; verified dual start_ns / ProcessGuid) | Pollution FP: 10/10 flat -> 0/10 ([0.0, 30.9]%); Laundering TP: 2/10 Win flat -> 10/10 Lin / 9/10 Win ([55.5, 99.7]%). |
Series U1 — 14-Day / 50,000-RPC Memory Soak | 200,000 child incarnations, 600,150 OS events | Unreclaimed: 219.2 MB (450,101 entries) vs. 2 s-GC: 11.63 KB Lin / 14.34 KB Win (8 active entries, 50/50 grandchild TP, 0 post-close). |
Series U2 — Deferred Server-Internal Async | 30 instances (60 runs: worker, Timer, call_later) | lastRPC: 10/10 FP & 0/20 TP -> tau_tid + AsyncCtx: 0/10 FP & 20/20 TP across both OSes. |
S2 — Pre-Frozen (SHA-256-Locked) Stress | 30 specs (60 runs; author-operated harness) | Pure D4: 10/20 (50.0%); LotAGuard-Ext: 12/20 (60.0%) at 0/10 FPR (20/20 when paired with D7). |
R4 — Adaptive Semantic & 3-Session Split | 48 cases (96 runs across AS1–AS4) | Pure D4: 0/40 -> LotAGuard-Ext: 30/40 (75.0%, 0/10 Session-2 taint FP) -> +Selective Diff: 75/80 runs (93.8%). |
| Series L — Mode-3 Synchronous Kernel Containment | 80 dual-OS runs (Linux Landlock LSM + Win Guard) | 40/40 (100%) unauthorized connects blocked inline (0 B leaked), +9.65 ms Linux / <0.10 ms Windows. |
| Series A–E — Controlled Class-I Verification | 1,430 live sessions across 5 LLMs (4 vendors) | 480/480 Class-I envelope consistency (0.00% frozen test FPR on unseen seeds; verifies specification consistency within the defined envelope). |

Open-Source-XDR- und SIEM-Plattform für Bedrohungserkennung, Protokollanalyse, Dateiintegritätsüberwachung, Schwachstellenbewertung und Compliance-Management für Endpunkte und Cloud-Workloads.

Open-Source-Netzwerk-IDS/IPS/NSM-Engine für Echtzeit-Datenverkehrsinspektion, Eindringungserkennung und -verhinderung, Protokollanalyse und regelbasiertes Threat Hunting.

Zeek ist ein leistungsstarkes Netzwerkanalyse-Framework, das sich stark von den typischen IDS unterscheidet, die Sie vielleicht kennen.