Living-off-the-Agent, Enforcing MCP-to-Kernel Capability Boundaries: Cross-Layer Runtime Detection and Boundary Delimitation on Autonomous Coding Agents
Autonomous AI coding agents powered by large language models (LLMs) and connected via the Model Context Protocol (MCP) routinely spawn shells, run test suites, edit configuration files, and open network sockets, making normal AI-assisted software engineering look like post-exploitation activity to Endpoint Detection and Response (EDR) tools. Meanwhile, prompt-level AI guardrails inspect model text and tool arguments but remain blind to what child processes execute in the OS kernel. We formalize Living-off-the-Agent (LotA) compromises, where indirect prompt injections or poisoned tools hijack authorized AI agent workflows, and separate Class-I cross-boundary attacks (ungrounded secret reads, persistence writes, child/IPC escapes, and dormant rule triggers) from Class-II in-envelope semantic attacks (logic bugs in authorized files and data piggybacking over approved endpoints). We present LotAGuard, a sub-millisecond runtime monitor for Linux eBPF and Windows Sysmon/ETW built around three mechanisms: (1) incarnation-safe, memory-bounded causal attribution linking AI tool calls to OS process trees across post-response escapes, rapid PID recycling, deferred server tasks, and multi-week uptime, paired with rarity-weighted contracts and three-tier dispositions; (2) hunk-blame lineage tracking persistent AI instruction files (CLAUDE.md, .cursorrules) without taint explosion; and (3) task-level evaluation avoiding paired-OS pseudo-replication. Evaluated across five frontier and open-weights AI models, verbatim AgentDojo and InjecAgent benchmarks (16/16 Class-I detected at 0% FPR vs. 0/4 Class-II by design), and 100 SWE-bench Verified engineering tasks (0/100 blocking FPs, 1% step-ups, under 15 KB over a 14-day soak), LotAGuard outperforms EDR, provenance, and AI-only guards while delineating where cross-session flow gates and code-diff review address adaptive semantic evasions.
Authors
- F. Soulis
- Jeremy Canale (ORCID: https://orcid.org/0009-0002-2524-8451)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-02
- DOI
- https://doi.org/10.5281/zenodo.24749085
- Primary Topic
- Security and Verification in Computing
- Type
- article
- Field-Weighted Citation Impact
- 0.00