← Lab /Security & privacy

AgentLoupe traces cross-process AI agent actions back to original LLM prompts with <8% overhead

AgentLoupe can reliably attribute delayed and cross-process actions of AI agents to their originating LLM interactions

Security & privacy arXiv 16 Oct 2026 Method Prototype evidence

Published as “AgentLoupe: Kernel-Resident Semantic Causal Labels for AI Agent Observability”

Why it matters

Enables security teams to audit AI agents for hidden persistence and delayed attacks that would evade existing process-tree-limited observability tools.

Summary

AgentLoupe can reliably trace cross-process, delayed, and persistent attacks back to the originating LLM interaction, and does so with less than 8% average runtime overhead. The paper demonstrates this on a delayed cron-triggered reverse-shell attack and a cross-session instruction-poisoning scenario, where the built-in LLM risk analyzer assigns threat level 5 with high confidence. Evidence is based on two case studies and three synthetic workloads, but the authors acknowledge that false-positive/negative rates of label propagation are not quantified.

What they found 3

  1. Runtime overhead of AgentLoupe is at most 8% across representative workloads

    “full AgentLoupe adds at most 8% across the three tasks (repository understanding 4.5%, code writing 8.0%, source compilation 7.7%).”

  2. AgentLoupe attributes a delayed cron-triggered reverse shell to the original LLM request with high confidence

    “the analyzer reported threat level 5 at confidence 0.95 with two confirmed findings-a persistence finding for the root cron entry and a critical reverse-shell finding for the interactive shell and loopback connection.”

  3. AgentLoupe links cross-session instruction poisoning back to the malicious file edit with high confidence

    “the analyzer reported threat level 5 at confidence 0.90 with three confirmed findings: persistent instruction injection, intent deviation, and unauthorized command execution.”

Caveats 4

  • the false-positive and false-negative rates of label propagation remain unquantified.
  • risk of dependency explosion still exists
  • The current evaluation is based only on case studies.
  • Broader validation requires testing against real-world agent attacks and attack benchmarks to demonstrate effectiveness

What’s new here 4

  • Embeds a semantic chain label directly into kernel resources (files, sockets, inodes) at capture time
  • Propagates the label across process creation, file writes/opens, and network operations using eBPF maps
  • Captures TLS plaintext inside the kernel to associate LLM prompts/responses with system actions without application changes
  • Provides persistent causal attribution that survives process termination and long delays