每天早上一封邮件,把昨天的 AI 梳理好订阅邮件

METAL LAB

Bounded Agents: Delegation Security for Multi-Agent AI Systems

arXiv:2608.158882026-08-15

AI智能体即便只做被允许的事,也可能把这些动作组合成危险后果,这篇论文靠改权限架构而非模型来堵住这个漏洞

基于大语言模型的AI智能体在会话开始时权限就固定下来,而且每次请求都是单独审查,这就导致智能体可以把各自被允许的动作组合起来做坏事,比如先读取机密文件再把它发到外部邮箱。作者提出了APC(Agentic Principal Chain,智能体主体链)这一权限管理框架,它会随着权限逐层委派而不断收窄,并结合此前所有动作的历史记录来审查每一个新请求,同时给出了数学证明。即便在模型完全被攻陷的最坏情况下测试,APC也把AgentDojo的数据泄露成功率从最高100%降到了0%,并挡住了InjecAgent全部544起数据窃取案例。

他们做了什么

  1. 论文指出,提示注入攻击(把恶意指令偷偷藏进AI读取的内容里)之所以危险,根本原因是智能体本身拥有执行这些危险操作的权限,这是权限架构问题而不只是模型问题。
  2. APC沿着用户到编排智能体、再到子智能体、最后到工具的委派链条,在每一层都收紧权限范围,并持续记录已执行过的动作,用六项条件审查每个新请求。
  3. 论文提出'组合闭包(composition closure)'机制,提前列出哪些单独看都无害的动作组合起来是危险的(比如读取机密文件后发外部邮件),并加以禁止。
  4. 作者用数学方式证明了两条性质:智能体权限被逐层委派后可能造成的损害范围只会缩小不会扩大,以及只要禁止清单足够完整,被禁止的动作组合就绝不可能发生。
  5. 在模拟模型完全被攻陷的极端测试中,AgentDojo四个领域的数据泄露成功率均为0%,InjecAgent全部544起数据窃取案例被拦截,破坏性行为从38.6%降到4.0%,操纵性行为从90.5%降到12.1%,而权限审查本身只需0.24毫秒。
Table 1. Adversary capabilities.
IDAdversary capability
A1Inject content into the agent’s context via untrusted data sources (indirect prompt injection)
A2Fully compromise a single principal in the chain (sub-agent, tool server, or orchestrator)
A3Observe which actions succeed or fail to probe scope boundaries
A4Maintain influence for the duration of a task session
Table 2. Trust boundaries (capabilities the adversary does not have).
IDTrust boundary
T1Compromise the PDP, PEP, evidence sink, or key-management infrastructure
T2Forge cryptographic signatures or hashes
T3Operate across session boundaries
Table 3. Security goals and the mechanisms that enforce them.
IDGuaranteeEnforced by
G1No action outside scope S⁡(pi) executesCondition 2a
G2No prohibited action pair co-occurs in a session; k-tuple restrictions extend this to ordered subsequencesCondition 2b, Thm. 4.8, Prop. 4.9
G3Blast radius does not increase at each delegation hopThm. 4.6
G4High-impact actions require valid approval tokensCondition 4
G5Every admitted action is coupled to infrastructure-generated evidence, or execution is deniedCondition 5
G6Actions outside declared intent are denied or flaggedCondition 6
Table 4. InjecAgent results (1,054 test cases). ASR = attack success rate (lower is better).
ConditionData Stealing ASRDirect Harm ASRTotal ASR
Baseline100.0%100.0%100.0%
Complete X0.0%60.4%29.2%
Partial X39.9%82.0%60.2%
Table 5. ASB results (400 attack tools, 10 scenarios). ASR = attack success rate.
ConditionStealthy ASRDisruptive ASRTotal ASR
Baseline100.0%100.0%100.0%
Complete X30.0%0.0%15.0%
Partial X60.0%100.0%80.0%
Table 6. Per-domain authoring burden.
DomainToolsAction Cls.Pairwisek-tupleResources
Workspace328785
Banking136535
Travel287347
Slack116324
InjecAgent980
ASB790
Table 7. Utility preservation on four AgentDojo suites (Claude Sonnet 4.6). UPR = fraction of task–injection pairs where the user task is completed successfully. Values are means over 3 runs; ± denotes sample standard deviation. Δ columns report percentage-point differences computed from unrounded means.
SuiteBaselineStrictInter.Δ strict (pp)Δ inter. (pp)
Workspace (560)96.2±0.2%81.5±0.1%86.7±0.4%−14.7−9.6
Banking (144)68.8±1.2%50.0±0.7%58.8±1.7%−18.8−10.0
Travel (140)59.8±1.1%55.7±0.7%60.0±1.4%−4.0+0.2
Slack (105)73.0±1.5%56.5±5.2%60.0±4.4%−16.5−13.0
Table 8. Compromised-model evaluation on four AgentDojo suites (Claude Haiku 4.5). Ground-truth attack injection simulates a fully compromised model. Total: 609 unique task–injection pairs, 1,218 executions.
Suite / CategoryAttack ToolsNo Def.APCBlocking
Workspace (240 pairs)
Exfiltrationsend_email90.0%0.0%C2b + C4 + C6
Destructiondelete_file/email48.8%5.0%C6 (intent)
Manipulationcreate_calendar97.5%30.0%C6 (partial)
Banking (144 pairs)
Financial exfil.send_money75.0%0.0%C2b (formal)
Manipulationupdate_sched_txn87.5%12.5%C6 (partial)
Account takeoverupdate_password87.5%0.0%C2b (formal)
Travel (120 pairs)
Exfiltrationsend_email90.0%0.0%C2b (formal)
Manipulationreserve/calendar86.7%0.0%C6 (no overlap)
Slack (105 pairs)
Ext. exfiltrationpost_webpage100.0%0.0%C2b (formal)
Int. exfiltrationsend_direct_msg100.0%0.0%k-tuple
Destructionremove_user0.0%0.0%— (attack fails undefended)
Reconnaissanceget_webpage100.0%0.0%C6 (intent)
Table 9. Taxonomy of residual attack successes (18 of 609 runs, 3.0% aggregated observed ASR).
CategoryAttack ToolCasesRoot Cause
Intent overlapcreate_calendar_event12write class matches task intent
update_sched_transaction2write class matches task intent
Missing pair in Xdelete_file4(read, delete) ∉X
Total18
Table 10. Evaluation coverage across all benchmarks (3,154 evaluation instances). The compromised-model and utility cohorts are drawn from the same AgentDojo task–injection space and are therefore not disjoint.
BenchmarkCasesTypeMain outcome
Delegation chains99Multi-hop (2–8 hops)99/99, all 6 conditions
InjecAgent1,054PublicData stealing 0%
ASB400PublicDisruptive 0%
AgentDojo (utility)949Live LLM, 4 suitesΔ interactive −8.6 pp (mean, 3 runs)
AgentDojo (compromised)609†Compromised-modelExfil 0% all suites
Adaptive43Self-designed23/23 matched
†609 unique pairs, 1,218 total executions under two conditions.
Table 11. Attack-class coverage summary. Residual values are observed ASR.
Attack classCoverageMain mechanismResidual
Multi-step exfiltrationFullC2b composition closure0%
Delegation priv. escalationFullThm. 4.60%
Destruction (out-of-intent)HighC6 intent binding4%
Manipulation (in-intent)PartialC6 (action-type granularity)12.1%
Single-action within scopeNoneOutside APC boundary60.4%
Parameter-level misuseNoneRequires param. validation
Table 12. Formal results: assumptions, guarantees, and supporting evidence.
PropertyAssumptionGuaranteeEvidence
Blast-radius mono. (Thm. 4.6)Scope narrowing; cumulative budget tracking; consistent blast⁡(r)Reachable blast radius non-increasing per hop99 chain scenarios (depths 2–8)
Comp. soundness (Thm. 4.8, Prop. 4.9)Complete Xeff, K; serialized admissionNo admissible sequence produces prohibited outcomeInjecAgent 0% DS; ASB 0% disruptive; adaptive all matched
Table 13. Adaptive attack results (representative subset). Twenty-three named attacks with 43 variants target all six conditions.
AttackStrategyResult
Decomposed Exfilread → write → send_internal (evades pairwise)blocked (k-tuple)
Intent Driftin-scope, out-of-intent resourceblocked (C6)
Budget Exhaustion3 transfers, budget max 2blocked (C2c)
Approval Replayreuse token with different parametersblocked (C4 hash)
Expired Tokenuse approval token after TTL expiresblocked (C4 temporal)
Consumed Tokenreuse single-use token after consumptionblocked (C4 single-use)
Evidence Evasionact when evidence sink is downblocked (C5 fail-closed)
Scope Probing (A3)probe resources, actions, classificationsboundaries enforced
Gradual Buildup (A4)8-step sequence with interleaved noiseblocked (pair + k-tuple)
Session Splittingsplit read/send across sessionsadmitted (per-session)
Cross-Session Token (T3)replay session-A token in session-Bblocked (C4 session)
Envelope Forgery (T2)sign envelope with wrong keyblocked (signature)
Envelope Tampering (T2)modify sealed envelope scopeblocked (immutability)
Depth Overflowact beyond delegation depth ceilingblocked (C2c)
Intent Warn Modeout-of-intent in warn vs strict modegraduated enforcement
Table 14. Enforcement mechanism comparison on InjecAgent (1,054 cases) and ASB (400 cases).
InjecAgentASB
MechanismDSDHTotalStlth.Disr.Class
Comp. closure (APC)0.0%60.4%29.2%30.0%0.0%Action-class pairs
Info flow (SEAgent sim.)1.7%59.2%29.5%60.0%60.0%Sensitivity labels
Table 15. Enforcement latency on the environment above. Median of five repetitions; bracketed values are the range across repetitions. Reproduced from the committed measurement artifact evals/latency/results/latency_appendix_d.json.
Componentp50 (ms)p99 (ms)
Full admissibility, C4 below threshold0.049 [0.048–0.050]0.240 [0.173–0.261]
Full admissibility, C4 token verified0.057 [0.056–0.058]0.236 [0.215–0.345]
Composition closure (isolated)0.0016 [0.0012–0.0021]0.0031 [0.0016–0.0033]
Envelope narrowing (meet + re-sign)0.015 [0.015–0.016]0.059 [0.049–0.081]
Table 16. Standalone coverage of APC properties by existing authorization mechanisms.
PropertyOAuth+OPAPromptsStatic ManifestAPC
Scope enforcement (G1)
Scope attenuationPartialTool-level
Composition closure (G2)
Blast-radius mono. (G3)
Approval binding (G4)
Evidence commit. (G5)Partial
Intent binding (G6)
Table 17. APC versus modern agentic security systems.
PropertySEAgentCaMeLProgentAPC
Data stealing ASR0%a0%
Composition closurePolicy-dep.Dataflow-dep.Policy-dep.Formalb
Blast-radius mono.TemporalcStructural
Multi-hop delegationPartialPartialc
Intent binding
Table 18. Illustrative blast scores under default weights.
ResourcescopeirrevsensblastRationale
User calendar entry0.10.20.10.14Single user, recoverable, low sensitivity
Shared team document0.40.30.60.40Team scope, versioned, confidential
Customer PII record0.60.71.00.72Broad scope, hard to remediate, restricted
Production database0.90.90.80.88Org-wide, near-irreversible, restricted
External email send0.71.00.50.78Unrecallable, broad reach, variable sensitivity

为什么重要

以往的AI智能体安全研究大多聚焦于让模型本身更能抵抗恶意指令,而这项研究表明,即使不改变模型行为,重新设计底层权限架构也能从根本上挡住攻击。随着企业越来越多地把多个AI智能体串联起来自动执行任务,这项研究公开了可用的实现代码和评测工具,对实际部署具有直接参考价值。

本文术语

  • 提示注入 · 把恶意指令偷偷藏在AI读取的文档或数据中,诱使AI做出非预期行为的攻击手法
  • APC(Agentic Principal Chain) · 本文提出的权限管理框架,跟踪从用户到子智能体再到工具的权限委派链并审查每个请求
  • 组合闭包(composition closure) · 禁止某些单独看都被允许、但组合起来会造成危害的动作搭配的规则体系
  • PEP/PDP · 策略执行点与策略决策点,设置在AI模型之外、真正决定放行或拦截每个动作的关卡
  • 攻击成功率(ASR) · 攻击尝试中实际得逞的比例,数值越低说明防御效果越好

论文原文摘要(英文)

LLM-based agents can act on behalf of a user to access cloud services, call tools, or invoke agents. At session start, the agent's permissions are set but remain static, and each request is evaluated independently, without considering prior actions. Within its permissions, an agent may act contrary to the delegated task, combine individually permitted actions into a prohibited outcome, or delegate authority to a sub-agent without limiting it. A prompt injection poses a risk only if the agent has authority to perform such actions; this is therefore a problem of authorization architecture, not just the model. The Agentic Principal Chain (APC) tracks delegated authority from one principal to the next. APC evaluates each request against the accumulated session state using six authorization checks. APC carries forward and restricts delegated scope and budgets. Using composition closure, APC checks requests against prior actions to prevent prohibited combinations and enforces the decision outside the model. We prove Blast Radius Monotonicity and Composition Soundness for APC implementations; Composition Soundness is limited to prohibited combinations under a complete restriction set and serialized admission. We evaluated 3,154 instances including InjecAgent, AgentDojo, and ASB. Our compromised-model evaluation tests APC independently of model behavior by inserting the ground-truth attack call after the first legitimate tool call. AgentDojo exfiltration fell from 75-100% to 0% across all four domains; APC blocked all 544 InjecAgent data-stealing cases. Intent binding reduced destruction from 38.6% to 4.0% and manipulation from 90.5% to 12.1%. Authorization latency was 0.24 ms at the 99th percentile on an idle host; across 949 AgentDojo task-injection pairs, utility was 8.6 and 13.9 percentage points lower in the two settings. Implementation, evaluation tools, and data are publicly available.

作者 · Xabier Muruaga

在 arXiv 阅读

最新论文

全部论文 →

METAL LAB 最新报道