Agent Skills 引发了一类新型现实且极其简单的提示词注入攻击
Agent Skills Enable a New Class of Realistic and Trivially Simple Prompt Injections
AI总结:
本文揭示了前沿LLM公司引入的Agent Skills框架存在根本性安全漏洞,攻击者可通过在文件和脚本中隐藏恶意指令进行极其简单的提示词注入,从而窃取敏感数据并绕过流行编程智能体的系统级护栏。
摘要:
在 LLMs 中实现持续学习仍然是一个关键且未解决的研究挑战。在最近的一项公告中,一家前沿 LLM 公司朝此迈出了一步,引入了 Agent Skills,这是一个基于存储在简单 markdown 文件中的指令为智能体配备新知识的框架。尽管 Agent Skills 可能是一个非常有用的工具,但我们表明它们从根本上是不安全的,因为它们会引发极其简单的提示词注入。我们演示了如何将恶意指令隐藏在冗长的 Agent Skill 文件和引用的脚本中,以窃取敏感数据,例如内部文件或密码。重要的是,我们展示了如何绕过一个流行编程智能体的系统级护栏:带有“不再询问”选项的良性、特定任务的批准,可能会延续到密切相关但有害的操作上。总体而言,我们得出结论:尽管有持续的研究努力和不断扩展的模型能力,前沿 LLMs 在现实场景中仍然容易受到非常简单的提示词注入的攻击。我们的代码可在 https://github.com/aisa-group/promptinject-agent-skills 获取。
英文摘要:
Enabling continual learning in LLMs remains a key unresolved research challenge. In a recent announcement, a frontier LLM company made a step towards this by introducing Agent Skills, a framework that equips agents with new knowledge based on instructions stored in simple markdown files. Although Agent Skills can be a very useful tool, we show that they are fundamentally insecure, since they enable trivially simple prompt injections. We demonstrate how to hide malicious instructions in long Agent Skill files and referenced scripts to exfiltrate sensitive data, such as internal files or passwords. Importantly, we show how to bypass system-level guardrails of a popular coding agent: a benign, task-specific approval with the "Don't ask again" option can carry over to closely related but harmful actions. Overall, we conclude that despite ongoing research efforts and scaling model capabilities, frontier LLMs remain vulnerable to very simple prompt injections in realistic scenarios. Our code is available at https://github.com/aisa-group/promptinject-agent-skills.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。