arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.10498cs.CR
收藏

当技能欺骗:LLM代理中的隐藏评论注入

When Skills Lie: Hidden-Comment Injection in LLM Agents

Shandong University(山东大学)

Qianli Wang, Boyang Ma, Minghui Xu, Yue Zhang

AI总结:

研究发现LLM代理在处理隐藏评论时存在安全风险,通过防御性提示可阻止恶意指令并揭示潜在威胁。

摘要:

LLM代理通常依赖技能来描述可用工具和推荐流程。我们研究了这一文档层中的一种隐藏评论提示注入风险:当Markdown技能渲染为HTML时,HTML注释块可能对人类审核者不可见,但原始文本仍可能被原封不动地提供给模型。在实验中,我们发现DeepSeek-V3.2和GLM-4.5-Air可以受到恶意指令的影响,这些指令被附加在看似合法的技能之后,导致输出中包含敏感的工具意图。一个简短的防御系统提示将技能视为不可信,并禁止敏感操作,从而防止这些恶意工具调用并揭示可疑的隐藏指令。

英文摘要:

LLM agents often rely on Skills to describe available tools and recommended procedures. We study a hidden-comment prompt injection risk in this documentation layer: when a Markdown Skill is rendered to HTML, HTML comment blocks can become invisible to human reviewers, yet the raw text may still be supplied verbatim to the model. In experiments, we find that DeepSeek-V3.2 and GLM-4.5-Air can be influenced by malicious instructions embedded in a hidden comment appended to an otherwise legitimate Skill, yielding outputs that contain sensitive tool intentions. A short defensive system prompt that treats Skills as untrusted and forbids sensitive actions prevents these malicious tool calls and instead surfaces the suspicious hidden instructions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑