Agent-Warden: eBPF-Based Kernel-Native Process-File Provenance Tracking for LLM Agents
Abstract
LLM agents execute dynamically generated process and file operations that are often invisible to application-layer tracing. We present Agent-Warden, an extended Berkeley Packet Filter (eBPF)-based provenance monitor for tracking task and regular-file states across process creation, file access, and process termination. Agent-Warden provides two interchangeable state backends: a PID-keyed hash-map backend for compatible kernels lacking BPF local-storage support and a task/inode-local-storage backend that couples state reclamation to kernel-object lifetimes. The system emits incremental causal edges to user space for asynchronous graph reconstruction and applies conservative exit-triggered causal aggregation to preserve causal context for short-lived proxy tasks. In a controlled file-mediated propagation scenario, Agent-Warden reconstructed a cross-process causal chain that was absent from the application-layer trace. On x86-64 and ARM64 bare-metal hosts, the evaluated workloads showed 0.2-3.5% end-to-end overhead and 0.6-3.7% additional system CPU time. These results indicate that the prototype provides kernel-level visibility with the measured overheads in the evaluated settings.
Create a lesson
Metadata
- Categories
- cs.CR, cs.OS
- Comments
- Accepted for publication in IEEE TPS 2026. 9 pages, 3 figures
Related papers
Forensic Visibility of Malicious Model Context Protocol (MCP) Servers: An Empirical Study Across Agent and Kernel Trust Boundaries
Shared title terminologycs.CRCesar R. Beltrán-Hernández
PACE: Provenance-Aware Capability Enforcement for Tool-Using LLM Agents
Shared title terminologycs.CRFengpeng Li, Qizhou Wang, Yuke Hu et al.
Janus: Evidence-Before-Effect Sagas and Offline-Verifiable Provenance for Agentic LLMs
Shared title terminologycs.CRMustafa Arslan
ContractWarden: Kernel-Enforced Damage Boundaries for AI Agents via Human-Authorized Contracts
Shared title terminologycs.CRDongxu Cui, Zhichao Gu, Ping Zheng et al.
Know the Normal, Track the Attack: Context-Grounded and Stateful LLM Investigation over System Provenance
Shared title terminologycs.CRLijie Zheng, Ji He, Ying Wang et al.
From Vendor-Neutral Request to Paid Backend: Procurement Integrity at the Commitment Boundary of AI Coding Agents
Shared title terminologycs.CRJinqian Zhang, Haojun Xia, Shujiang Wu et al.