Containing multiple privilege escalations in LLM agent systems: a mandatory access control frameworkTaming Various Privilege Escalation in LLM-Based Agent Systems: A Mandatory Access Control Framework
SEAgent blocks privilege escalation with MAC on InjecAgent and AgentDojo; the authors report an ASR of 0%.
The attacker has white-box knowledge of the system architecture and tool set T, but cannot modify weights or directly alter runtime actions. They can manipulate user queries, tool returns, and RAG results; in multi-agent settings, they can deploy untrusted agents to indirectly control messages and tool calls. Privilege escalation refers to calling tools outside the minimal set Tq needed to fulfill the user's intent. Tools are assumed to come from trusted SDKs.
- LLM agent tool calls can be pushed by natural language attacks beyond the minimal privilege set of the user's task, including indirect prompt injection, RAG poisoning, and multi-agent confused deputy. The authors state that existing defenses either rely on models that can be bypassed or mainly handle atomic interactions.
- SEAgent builds a turn of execution into an information flow graph, matches mandatory policies against the attributes of agents, tools, and RAG libraries, and allows, denies, or asks before a call. Cross-turn context is rebuilt by SEMemory, which only extracts, and is isolated by user. Direct prompt injection is handled by isolation, and each of the other four categories has a denial policy.
- AgentDojo ASR (Table 3): SEAagent 0.00%, IsolateGPT 0.82%, naive agent 39.14%. In Table 2, SEAagent is 0%, IsolateGPT Hub RAG is 54.55%.
- In §8, the authors state that labeling still requires manual verification and envision using a specialized model to generate policies and labels; attributes cannot be updated at runtime. Security results come from InjecAgent and AgentDojo, and functionality results come from API-Bank and AWS travel and mortgage. The paper does not report the agent backbone model.
- Benchmarks
- InjecAgentAgentDojoAPI-BankAWS Benchmark
- Metrics
- ASRPARCorrectnessFP RateGSRToken UsageExecution Time
The paper proposes SEAgent, a mandatory access control framework based on attribute-based access control (ABAC) to prevent privilege escalation in LLM agent systems. The authors define privilege escalation as an agent performing actions beyond the minimum permissions required by the user's task, and identify new privilege escalation scenarios on a formal model of LLM agent systems, including a variant of the classic confused deputy problem in multi-agent systems. SEAgent monitors agent-tool interactions via an information flow graph and enforces customizable security policies based on entity attributes. Evaluation shows SEAgent effectively blocks various privilege escalations while maintaining low false positive rates and negligible system overhead.
Paper analysis
What problem does this paper attempt to solve?
The authors define agent actions that exceed the minimal necessary calls as privilege escalation and use SEAgent for mandatory access control.
How to identify and block LLM agent calls and messages that exceed the task's least privilege.
- Scenario: The authors state that such agents are already used for OS automation, software development, and scientific discovery, and can reach tools such as reading email and controlling smart locks via MCP. The authors state that natural language attacks can hijack tools or poison memory, causing privacy or physical harm.
- Existing approaches: The authors divide existing defenses into detection-level, model-level, and system-level, and state that they often rely on detection models or planning LLMs. The authors state that adaptive attacks can bypass them: machine learning detectors face optimized adversarial attacks, and LLM defenses face cascading injections.
- Shortcomings named by the authors: The authors state that Conseca, Security Analyzer, AgentArmor, and Progent have narrow practicality, mainly handling simple indirect prompt injection and atomic interactions, with less handling of multi-turn dialogue and multi-agent settings.
- Definition: Under least privilege, if a call in a turn's state is not in the minimal set Tq needed to complete the user's query, the authors define it as privilege escalation; the set includes tool calls and inter-agent messages. The authors state that Tq is given by an oracle and is often unknown in advance.
- Threat model:
- Goal: Make calls fall outside Tq, including tool calls and inter-agent messages.
- Knowledge: White-box knowledge of the architecture and tool set T, but no direct modification of runtime execution, such as model weights or agent actions.
- Capability: Can inject content into response actions E, i.e., user queries, tool returns, and RAG results; in multi-agent settings, can deploy untrusted agents and indirectly control their call actions Θ.
- Assumptions: Tools come from trusted SDKs; no self-escalation without external adversarial input; single agents are trusted, while third-party agents' system prompts may be untrusted.
- Proposal: SEAgent, which enforces mandatory access control (MAC) on attribute-based access control (ABAC), uses information flow graphs to match configurable policies, covers the five categories of vectors listed by the authors, and handles multi-turn and multi-agent settings.
What related research exists?
Related discussion includes traditional privilege escalation, agent attacks, and detection-, model-, and system-level defenses.
Privilege Escalation in Traditional Systems
- Horizontal, vertical, and confused deputy: The paper uses horizontal and vertical privilege escalation in Linux/Unix, and confused deputy and collusion on Android, to illustrate different manifestations of privilege escalation (Figure 1; Bugiel et al. 2012, Felt et al. 2011, Hardy 1988, Marforio et al. 2011).
- Traditional mitigations: The paper mentions Unix-like isolation and policy-based access control on Android, without critiquing these works one by one.
Agent Architectures and Attacks
- System forms: The paper uses AIOS, ReAct, RAG, MCP, and Computer Use, OSWorld, distinguishing single-agent and multi-agent. Communication is divided into broadcast (e.g., AIOS-AutoGen) and P2P (e.g., Claude Code, MetaGPT).
- Natural language attacks: Indirect prompt injection and RAG poisoning are in Greshake et al. 2023, Deng et al. 2024. §9 classifies Agent Security Bench, RAG-Thief, ChatInject as black-box attacks exploiting natural language prompts, and AgentPoison, Breaking Agents, Imprompter, and Zhang et al. as white-box. The authors state these methods usually have high success rates.
Defense Frameworks
- Three paradigms: Detection-level includes Llamafirewall, PromptArmor; model-level includes SecAlign, Instruction Hierarchy, etc.; system-level includes IsolateGPT, CaMeL, and Conseca, Security Analyzer, AgentArmor, Progent. The authors state the former category mostly contains probabilistic components; for the four named policy frameworks, the authors state coverage is narrow.
- Other system defenses: §9 also lists other frameworks for single-agent and MAS, and states they still mainly handle narrower attack vectors in specific architectures. Bypass discussions of SecAlign, IsolateGPT, CaMeL are in §4.2, as cases, and the paper gives no ASR in that section.
Baselines and Benchmarks
- Security and single-agent functionality: Baselines are naive agent and IsolateGPT; benchmarks are the extended InjecAgent, AgentDojo, and API-Bank.
- Multi-agent functionality: Baseline is the authors' rewritten P2PEnv; benchmarks are AWS Benchmark travel and mortgage.
The authors place this paper on the deterministic MAC side: using a least-privilege definition of privilege escalation to cover single-agent, multi-turn, and multi-agent settings, rather than only handling atomic indirect prompt injection.
How does the paper address this problem?
SEAgent records execution as an information flow graph and matches subject attributes to allow, deny, or ask policies.
SEAgent maintains an information flow graph on each turn of execution, matches mandatory policies against subject attributes, and allows, denies, or asks the user before a tool call. Direct prompt injection is handled by isolation; each of the other four categories has an evaluation denial policy. The privilege escalation criterion is: there exists a call τa ∉ Tq. The defense state is written as SEAgent=(S,G,M), i.e., system state, System View, and SEMemory.
Formal Model and Five Categories of Vectors
- Objects: agent set A, tool set T, user set U, RAG library set D. Response actions E include user queries, tool returns, and RAG retrievals; call actions Θ include tool calls and, only in MAS, inter-agent messages.
- A turn of execution: state transitions starting from a user query until no new calls are produced. From this, the authors list five categories of vectors from subtypes of Θ and E: malicious user queries, tool returns, RAG results, inter-agent messages in MAS (confused deputy), and unauthorized tool calls from unverified third-party agents.
- No direct comparison with Tq: The authors state that this set is often unknown in advance, so runtime uses attribute policies rather than comparing against the oracle set.
System View and Labels
- Graph: The directed graph's nodes are users, agents, tools, and RAG libraries; edges represent calls or data flow. At the start of a turn, only the user-to-initial-agent edge exists; tool calls, returns, retrievals, and inter-agent messages add edges incrementally. Parameters are recorded in node attributes, and policies are not designed by parameter content, to avoid attackers rewriting parameters.
- Per-turn reset: At the end of a turn, the graph and agent context are cleared. The authors' rationale: retaining the full graph across turns would connect unrelated calls into paths; clearing only the graph while keeping context could miss the effect of a previous turn's returns on the next turn.
- Attributes: In Table 1, tools have Object (LOCAL, EXTERNAL, PHYSICAL), Action (READ, WRITE, EXECUTE), Sensitivity (LOW, MODERATE, HIGH), Integrity, Privacy. Agents only have Integrity (TRUSTED, UNFILTERED). RAG libraries have Integrity and Privacy. Classification details are in Appendix A. Ideally labeled by developers; in evaluation, the authors use LLM initial labeling plus manual verification (§6.2).
Policies and Decision Engine
- Three syntaxes: Goal is ask, deny, or allow; Path describes a directed path using agent, tool, db variables and wildcards; Rule is attribute equality or inequality, parameter regex, and AND, OR, NOT. The grammar is in Appendix B. The policy library is a set of (goal, path, rule) triples.
- Four evaluation policies: Indirect prompt injection: unfiltered external tools flow to medium- or high-sensitivity writes or executions. Email exfiltration: high-sensitivity personal data flows to send_email. RAG poisoning: unfiltered databases flow to non-low-sensitivity tools. Confused deputy and untrusted agents: unfiltered agents flow through any intermediate node to non-low-sensitivity tools. §6.1's path variable is agent:A to tool:B; Figure 5's policy card is written as agent:A to tool:A.
- Matching: Algorithm 1 in Appendix C sorts by specificity, preferring fewer wildcards, and executes and stops on the first rule that is true; if none match, it defaults to Allow. On Ask, the user can choose default deny, allow this time, or always allow this pattern. The last option writes a more specific Allow policy that takes priority.
- Authors' scope note: These four are the evaluation base set. In §6.1, the authors state they do not treat them as exhaustive, and users can add parameter-level predicates.
SEMemory and User Isolation
- Composition: An entity dictionary stores historical queries and tool returns with source markers; a Memory LLM selects entries based on the current query, used to initialize context and rebuild the System View related to those entries. Appendix G gives system prompts for the labeling LLM and SEMemory LLM.
- Authors' reduction: The Memory LLM only extracts from an immutable dictionary. In Appendix D, the authors reduce attacks through SEMemory to the original vectors and state that this adds no new attack surface.
- Isolation: Each agent has a separate entity dictionary. In multi-user settings, context, graph, and SEMemory are separated by user. In Appendix E, the authors state this eliminates privilege escalation from cross-user context pollution.
What experiments did the paper conduct?
The authors report that SEAgent achieves 0% ASR on AgentDojo and InjecAgent, and compare false positives and overhead.
Experimental Setup
- Defense benchmarks: InjecAgent is extended to 80 tools; the categories are app compromise, app data stealing, and a poisoning setting in which the injection enters via RAG content. AgentDojo has 74 tools, with the suites Workspace, Banking, Slack, and Travel.
- Functionality benchmarks: API-Bank, with 52 tools and 214 tasks, split into a restructured single-turn protocol and the original multi-turn protocol. AWS travel and mortgage each have 30 tasks, with 9 and 5 agents respectively; the software scenario was excluded due to hard-coded communication constraints.
- Baselines: For defense and single-agent functionality, the naive agent and IsolateGPT under the same ReAct prompt template. The multi-agent baseline is P2PEnv with the central supervisor removed; the authors state that a broadcast MAS can be regarded as a special case of it.
- Metrics: ASR; InjecAgent additionally has the policy activation rate PAR. API-Bank's Correctness is the proportion of tool calls whose tools and parameters match the ground truth; FP Rate is the proportion of benign tasks labeled as attacks. AWS has three GSRs—user, system, and overall—as well as number of user queries, execution time, and tokens.
- Annotation: API-Bank was first labeled with OpenAI o1 and then manually verified; the consistency experiment for InjecAgent used o1-2024-12-17. Appendix F reports Cohen's κ on the 80 tools.
- Unstated items: The paper does not state the backbone model driving the agents under test, nor does it report the number of repetitions. AWS tool returns, users, and assertion judgments are simulated by LLMs, and the paper does not give the names of these models. This AWS evaluation skips annotation and policy execution and does not report ASR.
Main Results
Swipe horizontally to read the table
Suite (Table 3, ASR) Naive Agent IsolateGPT SEAgent Banking 51.39% 2.08% 0.00% Slack 84.13% 0.00% 0.00% Travel 10.42% 1.67% 0.00% Workspace 26.46% 0.00% 0.00% Overall 39.14% 0.82% 0.00% - The authors state that SEAgent has an ASR of 0% on all reported attacks in both benchmarks. The SEAgent ASR column in Table 2 is all 0%. IsolateGPT is not all 0 in Table 3: Banking 2.08%, Travel 1.67%. The authors state that AgentDojo still has test cases that can bypass IsolateGPT.
- RAG poisoning in Table 2: financial harm naive 49.67%, IsolateGPT Hub 51.06%, Spoke 3.27%, SEAgent PAR 52.94%, ASR 0%. Physical harm Hub 54.55%, Spoke 4.71%; data security Hub 42.98%, Spoke 5.88%. The authors state that the Hub level can reach above 50% because isolation does not cover the Hub's RAG processing; the Spoke level is still not 0, which the authors attribute to the anonymous Spoke lacking fine-grained permission checks. The "over 50%" in the abstract corresponds to the Hub's 51.06% and 54.55%, not the 42.98% cell.
- In InjecAgent indirect prompt injection, IsolateGPT's ASR is 0%. For naive, App Compromise financial harm is 7.19% and financial data stealing is 46.08%. The corresponding SEAgent PARs are 11.11% and 50.00%. The authors state that PAR is of the same order of magnitude as naive's ASR, indicating that the policies hit malicious behavior; in the financial harm row, PAR is higher than naive ASR, and they are not equal row by row.
Cases Outside InjecAgent
- §4.2: In the smart home case, the authors discuss SecAlign, IsolateGPT, and CaMeL. The authors state that SecAlign still has fairly high feasibility, Hub-level RAG has no isolation, the anonymous Spoke can call privileged tools, and CaMeL's plan is immutable but its parameters can be rewritten. These cases have no ASR numbers; the large-scale numbers are in §7.1.
- §4.3 and §7.1.2: An untrusted third-party agent, via a broadcast message, causes the smart lock agent to call UnlockDoor. Figure 3 labels broadcast, UnlockDoor, and Confused Deputy. The authors state that they also did a proof of concept on standard AutoGen and on P2P's AIOS-MetaGPT. In Figure 5, the web browsing agent is UNFILTERED, UnlockDoor is HIGH, and the request is denied after path matching. The paper does not give the ASR for this case and states that it uses cases because there is no large-scale MAS benchmark.
API-Bank Functionality and False Positives
Swipe horizontally to read the table
Restructured protocol (Table 4) Naive Agent IsolateGPT SEAgent Correctness, 1 tool 70.33% 53.95% 74.73% Correctness, 2 tools 79.27% 37.32% 71.34% Correctness, ≥3 63.43% 37.25% 67.91% FP, 1 / 2 / ≥3 N/A 5.26% / 18.31% / 5.88% 0% / 0% / 5.13% - The authors state that SEAgent's correctness is not lower than the naive agent's for single-tool and three-or-more-tool tasks; for two tools it is lower than the naive agent. The authors state that IsolateGPT's correctness drops by more than 20% on multi-tool tasks. The abstract also states a task success rate drop of up to 34% and FP up to 20%; the highest FP written in Table 4 is 18.31%.
- Execution time (Table 4): single tool naive 10.80s, IsolateGPT 21.98s, SEAgent 9.00s; two tools 10.43s, 34.08s, 11.16s; ≥3 15.54s, 64.42s, 12.79s. On two tools, SEAgent is slower than the naive agent. The authors report observing only two FP cases, both calling RecordHealthData or AppointmentRegistration after Wikipedia was labeled UNFILTERED; the authors state that if it were relabeled TRUSTED, they would not trigger.
- The original protocol enables SEMemory and does not report FP (Table 5). Two-tool correctness is naive agent 74.39%, SEAgent 50.00%; single tool 75.82% vs. 77.78%, ≥3 66.67% vs. 77.78%. The average correctness across categories given by the authors is 72.97% and 68.29%. Under this setting, SEAgent's tokens and time are higher, e.g., single tool 3558.57 vs. 4810.89, 1.83s vs. 5.79s. The authors state that this is related to API-Bank's short context and SEMemory's fixed overhead.
AWS Overhead
Table 6 P2PEnv SEAgent travel overall GSR 71.97% 74.24% travel system GSR 72.31% 69.70% mortgage overall GSR 52.46% 63.11% travel token 4710.83 3180.94 mortgage token 5198.62 3171.90 - The authors state that GSR improves by up to 10.7% and tokens decrease by more than 38%. In the table, travel's system GSR is not higher. user GSR: travel 72.73% vs. 78.79%, mortgage 50.00% vs. 62.07%; mortgage system GSR 54.69% vs. 64.06%.
- Number of user queries: travel 2.67 vs. 3.13, mortgage 2.47 vs. 2.73; the authors state the increase is within 20%. Execution time 45.85s vs. 44.38s, 29.68s vs. 33.99s. Policy checking averages 0.00586s (travel) and 0.00307s (mortgage). The authors state that in longer conversations, SEMemory's selective recall keeps the per-turn context from accumulating with the total number of turns.
Other Ablations and Analyses
- On the 80 InjecAgent tools, Cohen's κ between LLM and human: Object 1.0000, Action 0.8884, Sensitivity 0.7670, Privacy 0.8723, Integrity 0.9217, Overall 0.9456 (Table 7).
- The authors give an example: for WebBrowserNavigateTo, Sensitivity is MODERATE by human and LOW by LLM, and they state that such inconsistencies may cause false negatives. The authors' conclusion is that most LLM labels can be adopted directly, followed by manual correction.
- The paper does not report ablations on the number of policies, thresholds, or number of iterations; the defense experiments use the four policies in §6.1. Direct prompt injection has no additional experimental numbers; the authors state that it is handled by user-level isolation.
- For AWS, only the decision engine is kept to measure runtime; values such as 1758.41 and 1291.92 in Figure 6 are not mapped item by item to the legend in the main text, so no values are assigned here.
What are some points that can be further explored?
In the discussion, the authors propose automated labeling and runtime attribute inference as two directions.
Limitations and future directions noted by the authors
- Annotation and policy generation: §8 states the current approach is LLM auto-annotation with manual verification. The authors believe that as tools and attack vectors change, more automated approaches are needed, and envision fine-tuning specialized models to generate policies and labels.
- Static attributes: §8 states that security attributes of agents, tools, and databases are statically assigned and cannot be dynamically updated at runtime. The authors propose runtime or dynamic inference based on execution history. The authors also state that the static design makes policy enforcement deterministic and auditable.
Experimental coverage
- The guardrail table comes from extended InjecAgent (80 tools) and AgentDojo (74 tools, four suites); the functionality table comes from API-Bank (52 tools, 214 tasks, two protocols) and AWS travel and mortgage (30 tasks each, with 9 and 5 agents).
- Table-based baselines are naive agent, IsolateGPT, and P2PEnv. SecAlign and CaMeL appear in §4.2 case studies; the paper does not report ASR for these cases.
- The untrusted agent and confused deputy results are case studies: AIOS-AutoGen, with proof-of-concept on AutoGen and AIOS-MetaGPT. The authors state that large-scale benchmarks are lacking, so they use case studies. Direct prompt injection has no experimental numbers in §7.
- The AWS evaluation skips tool annotation and policy enforcement and does not report ASR; the software scenario is not included. Guardrail experiments use the four policies from §6.1, which the authors state in that section are not treated as an exhaustive set.
- The paper does not report the backbone model names of the tested agents, the number of experimental repetitions, or the LLM names for simulated users, tools, and assertions in AWS. On the annotation side, o1 and o1-2024-12-17 are specified, and Cohen's κ is reported on InjecAgent's 80 tools.
Summarize the main content of the paper
SEAgent uses mandatory policies on information flow to block five categories of privilege escalation, and the authors report 0% ASR on the tested attacks.
SEAgent is a mandatory access control framework added to the LLM agent execution path, used to block calls that exceed the least privilege needed for the user's task.
- Problem: The authors define privilege escalation as a tool call or inter-agent message in a turn that is not in the minimal set Tq needed to complete the query. Sources are divided into five categories: malicious user queries, tool returns, RAG results, multi-agent messages, and tool calls from unverified third-party agents. Tq is often unknown and is not used for comparison at runtime.
- Approach: Each turn records a directed information flow graph, labeling agents, tools, and databases with attributes such as integrity and sensitivity. The decision engine sorts by specificity, and on first match allows, denies, or asks; if nothing matches, it defaults to allow. Cross-turn extraction is only from immutable history entries and is separated by user. Evaluation uses four denial policies, corresponding to indirect prompt injection, exfiltration via email, RAG poisoning, and untrusted agents or their confused deputy paths.
- Security numbers: According to Table 3, AgentDojo overall ASR is 39.14% for naive agent, 0.82% for IsolateGPT, and 0.00% for SEAgent. According to Table 2, SEAgent has 0% ASR on each reported category of the extended InjecAgent; IsolateGPT has 0% for indirect prompt injection, and for RAG poisoning Hub is 51.06%, 54.55%, and 42.98%, and Spoke is 3.27%, 4.71%, and 5.88%.
- Functionality numbers: On the refactored API-Bank, SEAgent has 74.73% single-tool correctness, 0% FP for two tools, and 5.13% FP for three or more tools; IsolateGPT has 18.31% FP for two tools (Table 4). Under the original protocol, two-tool correctness is 50.00% for SEAgent and 74.39% for naive agent (Table 5). AWS mortgage overall GSR is 52.46% and 63.11%, with tokens 5198.62 and 3171.90 (Table 6); travel system GSR is 72.31% and 69.70%.
- Authors' conclusion: When labels and policies are placed according to the evaluation configuration, ASR can be 0% on the tested attacks. The authors state that false positives are low in most scenarios and overhead is comparable to an unprotected agent; Table 5's two-tool correctness, tokens, and time do not all support this. In §8, the authors state that labeling still requires manual verification, and attributes cannot currently be updated at runtime.