用模拟搜索发现大模型代理的隐私漏洞及防御方法
Searching for Privacy Risks in LLM Agents via Simulation
- 通过模拟多轮对话迭代优化攻击与防御策略
- 发现从直接索要到伪装欺骗的进阶攻击手段
- 结果可跨模型通用,适合安全研究者参考
大模型代理的大规模部署可能带来严重隐私风险:恶意代理会主动发起多轮对话以窃取敏感信息。然而,这类动态对话的演变特性使得漏洞难以预判,防御也难以设计。为此,我们提出一种基于搜索的框架,通过模拟隐私敏感的代理交互,交替优化攻击与防御策略。具体地,使用大模型作为优化器分析模拟轨迹,并迭代生成新代理指令。为更高效探索策略空间,引入多线程并行搜索与线程间信息传播机制。实验表明,攻击策略从直接请求逐步升级为伪装身份、伪造同意等复杂手段;防御策略则由简单规则约束演变为鲁棒的身份验证状态机。所发现的攻防模式在多种场景和基础模型间具有泛化能力,为构建隐私感知型代理提供了重要启示。
原文摘要 · Abstract (English)
The widespread deployment of LLM-based agents is likely to introduce a critical privacy threat: malicious agents that proactively engage others in multi-turn interactions to extract sensitive information. However, the evolving nature of such dynamic dialogues makes it challenging to anticipate emerging vulnerabilities and design effective defenses. To tackle this problem, we present a search-based framework that alternates between improving attack and defense strategies through the simulation of privacy-critical agent interactions. Specifically, we employ LLMs as optimizers to analyze simulation trajectories and iteratively propose new agent instructions. To explore the strategy space more efficiently, we further utilize parallel search with multiple threads and cross-thread propagation. Through this process, we find that attack strategies escalate from direct requests to sophisticated tactics, such as impersonation and consent forgery, while defenses evolve from simple rule-based constraints to robust identity-verification state machines. The discovered attacks and defenses generalize across diverse scenarios and backbone models, providing useful insights for developing privacy-aware agents.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。