Kernel-Layer Runtime Defense for LLM Agents Against Indirect Prompt Injection
Aravinda Kashyap, Basavesh Ammanaghatta Shivakumar, Danfeng Yao, Peng Gao
Abstract
Large language model (LLM) agents are increasingly deployed to orchestrate complex workflows, autonomously invoking tools that interact with filesystems, network services, and execution environments. This autonomy exposes agents to indirect prompt injection (IPI): adversaries embed malicious instructions in retrieved content, requiring no access to the user or the model. Existing defenses operate at the model or application layer, above the execution boundary where injected instructions are actually carried out, leaving no enforcement point between the compromised agent and the host. We present Argus, a runtime defense for LLM agents that operates at the kernel layer using eBPF, and attaches to an existing agent process at deployment time without source code changes. Argus anchors enforcement to the session intent captured and correlates it against syscall-level behavior via a data-provenance correlation engine. Prior enforcement approaches terminate the agent session on detection and discard the user's task entirely. Argus instead introduces a contain-and-continue mechanism that isolates and terminates only the offending subprocess, then returns structured feedback that lets the agent autonomously replan and safely complete the intended task, escalating to full session termination only if a bounded per-session retry budget is exhausted. We introduce ORBIT, a benchmark that evaluates OS-level defenses with live agents, real shell execution, and kernel-level syscall ground truth, spanning nine attack suites over 126 attack and 43 benign runs. Our evaluations across frontier models show that Argus consistently reduces attack success rate with a mean blocking DSR of 74.1% while preserving agent utility on benign tasks, establishing kernel-layer enforcement as a practical and model-agnostic defense primitive for deployed agents. (Abridged)
Create a lesson
Metadata
- Comments
- 18 pages, 6 figures, 7 tables
Related papers
DefenseComposer: Knowledge-Guided Defense Stacking Against Indirect Prompt Injection
Shared title terminologycs.CRJiahe Chen, Mengdi Li, Junjie Huang et al.
Red-Teaming the Reward: A Verifier and Benchmark for Triton Kernel Optimization Agents
Shared title terminologycs.CRPouya Shiri, Seyed Abbas Hosseini
Prompt Injection Detection using DeBERTa-v3: A Position-Neutral Dataset for AI Security
Shared title terminologycs.CRMirza Akhi
Reinforcement Building: Toward Self-Improving Harnesses for Defensive Software Security Agents
Shared title terminologycs.CRAmine Lbath, Aurelien Delaitre, Vadim Okun et al.
A Layered Input-Output Defense for Open-Weight Language Models under Adaptive Jailbreak Attack
Shared title terminologycs.CRYousef Bayoumi, Roozbeh Razavi-Far, Ehsan Hallaji
Are Web Agents Still Detectable? Stress-Testing Bot Defenses with Coordinated Evasion
Shared title terminologycs.CRParsa Nilforushan, Gemmin Sugiura, Kourosh Hashemi et al.