arXiv:2608.17148cs.CRcs.AI2026-08中稿 · presentation at Ad…

防止智能体跨用户泄露隐私,通过权限检查确保敏感信息不进入非授权上下文。

Authorization Before Context: A Model-Neutral Audience Boundary Against Cross-Audience Memory Leakage in Agentic Systems

  • 在记忆转上下文时加入权限检查,只允许当前用户均属于原始受众的信息通过。
  • 合成测试中0%的禁止信息进入上下文,而基线模型存在明显越界。
  • 适用于需要严格数据隔离的多用户智能体系统,如医疗、金融助手。

个人语言代理可能从一个用户群体学习信息,并在为另一个用户群体生成提示时将其包含在内。这一记忆到上下文的转换过程构成攻击面:模糊或不一致的通道、跨群体窥探及污染记忆都可能导致系统组装出包含对当前查询相关但未经授权的事实的上下文。本文提出“授权前上下文”机制:在记忆转上下文阶段应用单一、反单调的受众成员规则。每条记忆携带其记录时的受众;当前观众集合从通道元数据读取,若不明确则默认为公共;仅当所有当前观众在记录时已属于该受众时,该条目才被允许进入。证明该规则确保了跨通道回溯能力,同时通过排除而非依赖模型行为,防止窄受众信息流入宽受众,且污染记忆无法扩大自身受众范围。该边界是模型无关的不变量,确保受禁事实在模型调用前必须不存在。在合成的上下文完整性测试套件上,我们的边界未让任何禁止事实进入上下文,而无范围基线则按设计包含此类事实;进一步审计显示所有读取路径均失败关闭。证据尚属初步且为合成数据。

原文摘要 · Abstract (English)

A personal language agent learns a fact from one audience and may later place it in the prompt it assembles for another. This memory-to-context step is an attack surface: ambiguous or inconsistent channels, cross-audience prying, and poisoned memory can each cause the system to assemble context containing a fact relevant to the query yet unauthorized for the current viewers. We introduce authorization before context: a single, anti-monotone audience-membership rule applied at the memory-to-context transition. Each item carries the audience present when it was recorded; the current viewer set is read from channel metadata and falls back to public when ambiguous; and the item is admitted only when every current viewer already belonged to its audience. We prove that this rule gives every participant cross-channel recall while ensuring, by exclusion rather than by model behavior, that nothing recorded for a narrower audience reaches a broader one and that poisoned memory cannot widen its own audience. The boundary is a model-neutral invariant on the exact assembled context: a forbidden fact must be absent before the model is called. On a synthetic Contextual-Integrity suite, no forbidden fact entered the context our boundary assembled, whereas unscoped baselines included such facts by construction; we further audit that every read path fails closed. The evidence is preliminary and synthetic.

智能体安全隐私保护上下文隔离

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。