具有虚假记忆的真实AI智能体:针对Web3智能体的致命上下文操纵攻击
Real AI Agents with Fake Memories: Fatal Context Manipulation Attacks on Web3 Agents
AI总结:
本研究揭示Web3 AI智能体面临上下文操纵攻击,尤其是记忆注入,通过ElizaOS和CrAIBench基准验证其危害,并评估防御措施,强调需加强安全与受托责任。
摘要:
与Web3集成的AI智能体提供了自主性和开放性,但因其与金融协议和不可变智能合约交互而引发安全担忧。本文研究了在现实场景中面临对抗性威胁时,基于区块链的金融生态系统内AI智能体的脆弱性。我们引入了上下文操纵的概念——一种利用未受保护的上下文表面(包括输入通道、记忆模块和外部数据源)的全面攻击向量。它扩展了传统的提示注入,并揭示了一种更隐蔽且持久的威胁:记忆注入。使用ElizaOS(一个用于自动化Web3操作的代表性去中心化AI智能体框架),我们展示了向提示或历史记录中注入恶意内容可触发未经授权的资产转移和协议违规,这在现实中可能造成毁灭性的财务损失。为量化这些风险,我们引入了CrAIBench,一个面向Web3的基准,涵盖150多个现实区块链任务(如代币转移、交易、桥接和跨链交互)以及500多个使用上下文操纵的攻击测试用例。我们的评估结果证实,与提示注入相比,AI模型对记忆注入显著更脆弱。最后,我们评估了一条全面的防御路线图,发现当存储的上下文被破坏时,提示注入防御和检测器仅提供有限保护,而基于微调的防御在保持单步任务性能的同时,大幅降低了攻击成功率。这些结果强调了在区块链环境中,AI智能体既需要安全又需要具备受托责任的紧迫性。
英文摘要:
AI agents integrated with Web3 offer autonomy and openness but raise security concerns as they interact with financial protocols and immutable smart contracts. This paper investigates the vulnerabilities of AI agents within blockchain-based financial ecosystems when exposed to adversarial threats in real-world scenarios. We introduce the concept of context manipulation -- a comprehensive attack vector that exploits unprotected context surfaces, including input channels, memory modules, and external data feeds. It expands on traditional prompt injection and reveals a more stealthy and persistent threat: memory injection. Using ElizaOS, a representative decentralized AI agent framework for automated Web3 operations, we showcase that malicious injections into prompts or historical records can trigger unauthorized asset transfers and protocol violations which could be financially devastating in reality. To quantify these risks, we introduce CrAIBench, a Web3-focused benchmark covering 150+ realistic blockchain tasks. such as token transfers, trading, bridges, and cross-chain interactions, and 500+ attack test cases using context manipulation. Our evaluation results confirm that AI models are significantly more vulnerable to memory injection compared to prompt injection. Finally, we evaluate a comprehensive defense roadmap, finding that prompt-injection defenses and detectors only provide limited protection when stored context is corrupted, whereas fine-tuning-based defenses substantially reduce attack success rates while preserving performance on single-step tasks. These results underscore the urgent need for AI agents that are both secure and fiduciarily responsible in blockchain environments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。