Self-State Attacks on Self-Hosted AI Agents: How Far Can OS Defenses Go?
Not on the map. Why?
Abstract (arXiv)
Self-hosted AI agents maintain persistent memory, instructions, and configuration that influence their future behavior. If an agent is compromised, an attacker can exploit the agent's legitimate write permissions to corrupt this self-state, making malicious and benign updates difficult to distinguish at the operating system (OS) level. We investigate how far existing OS mechanisms can prevent, detect, and recover from such self-state attacks. We formalize an attack space and evaluate representative OS defenses using four agent workloads and a Linux telemetry pipeline. Our results show a consistent limitation across defense dimensions. File-level controls either leave alternative mutation paths open or, when complete over the tested operations, also block corresponding legitimate updates. Detectors flag a substantial part of legitimate activity, while more selective methods cover only part of the attack space. Finally, protected backups successfully restore corrupted state, but require a trusted recovery point and may incur rollback cost. Overall, our results show that the main limitation is not OS observability. Indeed, the OS can enforce, observe, attribute, and recover self-state changes. Yet, generic OS defenses lack the decision context needed to combine broad operation coverage with selective decisions. Effective protection therefore requires self-state-aware mechanisms that exploit additional context beyond generic file and syscall behavior.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 24 of its 70 references that are in the map. First posted on arXiv 20 Jul 2026.
Builds on
24 of 70 references.
References · 24
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandboxcited by 548
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agentscited by 538
- 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agentscited by 437
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Basescited by 429
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agentscited by 369
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
- 2024R-Judge: Benchmarking Safety Risk Awareness for LLM Agentscited by 288
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 267
- 2025AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agentscited by 223
12 more
- 2024Fact, Fetch, and Reason: A Unified Evaluation of Retrieval-Augmented Generationcited by 162
- 2025WASP: Benchmarking Web Agent Security Against Prompt Injection Attackscited by 157
- 2025Memory Injection Attacks on LLM Agents via Query-Only Interactioncited by 144
- 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systemscited by 130
- 2025Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agentscited by 125
- 2025Prompt Flow Integrity to Prevent Privilege Escalation in LLM Agentscited by 87
- 2024ToolSword: Unveiling Safety Issues of Large Language Models in Tool Learning Across Three Stagescited by 82
- 2026Taming Various Privilege Escalation in LLM-Based Agent Systems: A Mandatory Access Control Frameworkcited by 54
- 2025VeriGuard: Enhancing LLM Agent Safety via Verified Code Generationcited by 49
- 2026Memory Poisoning Attack and Defense on Memory Based LLM-Agentscited by 44
- 2025AgentSight: System-Level Observability for AI Agents Using eBPFcited by 21
- 2026Uncovering Security Threats and Architecting Defenses in Autonomous Agents: A Case Study of OpenClawcited by 20
Built on by
Not cited yet.