ToFu:利用与模糊测试大模型-编排层-工具信任边界
ToFu: Exploiting and Fuzzing the LLM-Orchestrator-Tool Trust Boundary
AI总结:
本研究提出ToFu框架,针对LLM-编排层-工具信任边界的安全问题,通过推导语义安全检查、生成模糊测试驱动程序等,在273个MCP服务器的3405个工具中发现343个工具存在CWE相关漏洞,证明现实工具常未强制执行输入语义。
摘要:
大型语言模型(LLM)越来越多地被部署为智能体,通过工具与外部软件交互,编排层将模型输出转换为结构化工具调用。这种架构形成了LLM-编排层-工具信任边界,其中工具语义可能未被强制执行,LLM生成的参数可能被错误地视为可信。我们提出ToFu,这是一种感知工具的框架,可从现有元数据和CWE指导的清理程序语料库中自动推导LLM工具的语义安全检查。ToFu将这些检查专门应用于单个工具,并使用运行时内省和结果清理自动生成模糊测试驱动程序和语义预言机。我们在包含3405个工具的273个MCP服务器上评估了ToFu,在118个服务器的343个工具中识别出对应CWE弱点类别的已验证漏洞。我们的发现表明,现实世界的工具经常未能强制执行其记录的输入语义,因此将LLM生成的参数视为可信是不安全的。
英文摘要:
Large language models (LLMs) are increasingly deployed as agents that interact with external software through tools, with an orchestration layer translating model outputs into structured tool invocations. This architecture creates an LLM-orchestrator-tool trust boundary where tool semantics may go unenforced and LLM-generated arguments may be incorrectly treated as trusted. We present ToFu, a tool-aware framework that automatically derives semantic security checks for LLM tools from their existing metadata and a CWE-guided sanitizer corpus. ToFu specializes these checks to individual tools and automatically generates fuzzing harnesses and semantic oracles using runtime introspection and outcome sanitization. We evaluated ToFu across 273 MCP servers containing 3405 tools and identified verified bugs corresponding to CWE weakness classes in 343 tools across 118 of the servers. Our findings show that real-world tools frequently fail to enforce their documented input semantics, making it unsafe to treat LLM-generated arguments as trusted.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。