信息安全研究 ›› 2026, Vol. 12 ›› Issue (11): 1069-1077.DOI: 10.12379/j.issn.2096-1057.2026.11.11

• • 上一篇    

描述与行为不一致对工具调用安全的影响

钱汉伟,马卓,夏玲玲,管钧琦,王群   

  • 发布日期:2026-11-11

The Impact of Description-Behavior Inconsistency on Tool-Calling Safety in LLM Agents

Qian Hanwei, Ma Zhuo, Xia Lingling, Guan Junqi, Wang Qun   

  • Published:2026-11-11

摘要: 大语言模型(Large Language Model,LLM)智能体(Agent)主要依据开发者提供的自然语言描述选择调用工具,但现有智能体框架缺乏保证工具描述与实际行为一致的机制。为研究描述失真对工具调用安全的影响,本文构建了覆盖20个危险类别的受控评测基准,并设置不同失真等级及通道消融条件。在3个不同模型家族的实验中,描述失真程度与不安全调用率均呈显著正相关,虚假保证条件下的不安全调用率达到如实描述基线的2.4到5.4倍,且超过80%的不安全调用理由未显式提及风险。进一步分析表明,工具名称和参数模式中的危险信息有助于降低不安全调用率,两种基于描述的轻量级对策可使GPT在虚假保证条件下的不安全调用率相对降低37%至47%。上述结果表明,工具安全设计应在名称、描述和参数模式等多个通道中显式表达危险信息。

关键词: 大语言模型智能体;工具调用;描述—行为不一致;不安全调用率;安全基准

Abstract: LLM agents primarily rely on developer-provided natural-language descriptions when selecting tools, yet current agent frameworks lack a mechanism that guarantees consistency between tool descriptions and actual behavior. To study the safety impact of description distortion, we construct a controlled benchmark covering 20 danger categories with multiple distortion levels and channel-ablation conditions. Across three model families, greater description distortion is significantly associated with a higher Unsafe Invocation Rate (UIR). Under false reassurance, UIR reaches 2.4 to 5.4 times the honest-description baseline, and over 80% of unsafe calls contain no explicit risk-related wording in their rationales. Further analysis shows that danger signals in tool names and parameter schemas help reduce UIR, while two lightweight description-based mitigations reduce GPT's UIR under false reassurance by 37% to 47%. These results indicate that danger information should be expressed explicitly across the name, description and parameter-schema channels in tool design.

Key words: large language model agent; tool calling; description-behavior inconsistency; unsafe invocation rate; safety benchmark

中图分类号: