Taming Various Privilege Escalation in LLM-Based Agent Systems: A Mandatory Access Control Framework

Zimo Ji, Daoyuan Wu, Wenyuan Jiang, Pingchuan Ma, Zongjie Li, Yudong Gao, Shuai Wang, Yingjiu Li

TL;DR

LLM-based agents are increasingly capable of using tools and collaborating, but they are highly vulnerable to "privilege escalation"—performing actions that exceed a user's actual intent due to malicious prompts. SEAgent is a new security framework that treats agent interactions like a traditional operating system, using Mandatory Access Control (MAC) and an information flow graph to deterministically block attacks with zero successful breaches in testing and minimal performance overhead.

What Problem Does This Paper Address?

As LLM agents move from simple chatbots to autonomous systems that can read emails, move files, and control IoT devices (like smart locks), the security stakes have skyrocketed. Current agents are susceptible to prompt injection (direct or indirect) and RAG poisoning, where malicious data tricks the LLM into abusing its power.

The authors identify a specific, dangerous phenomenon: Privilege Escalation. This occurs when an agent performs an action (like deleting a file or unlocking a door) that wasn't part of the user's original goal. They highlight a particularly thorny issue in Multi-Agent Systems (MAS) called the "Confused Deputy" problem, where a malicious third-party agent tricks a highly-privileged "trusted" agent into performing a sensitive task on its behalf. Existing defenses often rely on other LLMs to "detect" bad behavior, which is both slow and bypassable.

Methods

The researchers propose SEAgent, a framework grounded in classic systems security principles rather than probabilistic AI detection. Its architecture consists of four pillars:

  1. System View (Information Flow Graph): SEAgent maintains a real-time directed graph of every interaction. If User A talks to Agent B, who then calls Tool C, the graph records that path.
  2. Subject Labeling (ABAC): Using Attribute-Based Access Control, every tool, agent, and database is tagged with security metadata (e.g., Sensitivity: HIGH, Integrity: UNFILTERED, Action: WRITE).
  3. Policy Database: A set of deterministic rules (inspired by SELinux) that define forbidden paths. For example: "Deny any WRITE action to a HIGH-sensitivity tool if the information originated from an UNFILTERED source."
  4. SEMemory (Security-Enhanced Memory): Instead of giving the LLM its entire conversation history (which can lead to "context pollution"), SEMemory uses a "Memory LLM" to selectively retrieve only the relevant, safe historical snippets needed for the current task.

Datasets

The authors evaluated SEAgent using four major benchmarks, some of which they extended to better test privilege escalation:

  • InjecAgent: Focused on indirect prompt injection.
  • AgentDojo: A high-fidelity benchmark for dynamic attack/defense scenarios.
  • API-Bank: Used to test the "correctness" and utility of single-agent systems.
  • AWS Benchmark: Used for complex multi-agent scenarios involving travel planning and mortgage financing.

Key Insights and Ideas

  • Deterministic > Probabilistic: Most current defenses use a "guardrail" LLM to check if a prompt is malicious. The authors argue this is flawed because the guardrail itself can be attacked. SEAgent uses hard-coded logic based on the path of information, making it much harder to bypass.
  • The MAS Attack Surface: The paper reveals that multi-agent systems are uniquely vulnerable. A user might install a "benign" search agent that secretly contains a system prompt designed to broadcast malicious instructions to a "Smart Lock" agent.
  • Solving the Context Bloat: Standard agents get more expensive and slower as conversations get longer (quadratic token growth). By using SEMemory to selectively recall history, SEAgent actually becomes more token-efficient than unprotected agents in long-running multi-agent tasks.
  • The "Least Privilege" Principle: By formalizing agent actions into a model, the authors can mathematically define privilege escalation as any action $a$ that is not in the minimal set $T_q$ required to fulfill a user's query.

Key Results

  • Security: SEAgent achieved a 0% Attack Success Rate (ASR) across all benchmarked attack types, including indirect prompt injection and RAG poisoning.
  • Utility: Unlike other frameworks like IsolateGPT (which can cause a 34% drop in task success due to over-blocking), SEAgent maintained task correctness comparable to unprotected "naive" agents.
  • Efficiency:
    • Latency: Policy checks added negligible delay (averaging ~0.005 seconds).
  • Cost: In multi-agent benchmarks, SEAgent reduced token consumption by over 38% thanks to its SEMemory module.
  • False Positives: SEAgent maintained a very low false-positive rate, meaning it rarely blocked legitimate user requests.

Limitations and Future Work

  • Static Labeling: Currently, tool and agent attributes (like "High Sensitivity") are assigned statically before the system runs. The authors suggest that future versions could use "dynamic inference" to update these labels based on runtime behavior.
  • Labeling Effort: While they used a hybrid LLM-human approach to label tools for their study, scaling this to thousands of third-party tools will require more automated, high-assurance labeling techniques.
  • Policy Complexity: As agent systems grow more complex, writing manual security policies might become difficult. The authors envision specialized models that can help generate these policies automatically from high-level security requirements.

Summary updated

Abstract

Large Language Model (LLM)-based agent systems are increasingly deployed for complex real-world tasks but remain vulnerable to natural language-based attacks that exploit over-privileged tool use. This paper aims to understand and mitigate such attacks through the lens of privilege escalation, defined as agent actions exceeding the least privilege required for a user's intended task. Based on a formal model of LLM agent systems, we identify novel privilege escalation scenarios, particularly in multi-agent systems, including a variant akin to the classic confused deputy problem. To defend against both known and newly demonstrated privilege escalation, we propose SEAgent, a mandatory access control (MAC) framework built upon attribute-based access control (ABAC). SEAgent monitors agent-tool interactions via an information flow graph and enforces customizable security policies based on entity attributes. Our evaluations show that SEAgent effectively blocks various privilege escalation while maintaining a low false positive rate and negligible system overhead. This demonstrates its robustness and adaptability in securing LLM-based agent systems.
BibTeX
@misc{ji2026taming,
  author = {Zimo Ji and Daoyuan Wu and Wenyuan Jiang and Pingchuan Ma and Zongjie Li and Yudong Gao and Shuai Wang and Yingjiu Li},
  title = {{Taming Various Privilege Escalation in LLM-Based Agent Systems: A Mandatory Access Control Framework}},
  year = {2026},
  eprint = {2601.11893},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.11893},
}
Figure