arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.11229cs.CRcs.AIcs.SE
收藏

评论与控制:通过上下文引导进化劫持代理工作流

Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution

Johns Hopkins University Applied Physics Lab(约翰霍普金斯大学应用物理实验室);Johns Hopkins University(约翰霍普金斯大学);Wyze Labs(Wyze实验室)

Neil Fendley, Zhengyu Liu, Aonan Guan, Jiacheng Zhong, Yinzhi Cao

AI总结:

本文提出JAW框架,通过上下文引导进化方法劫持自动化平台上的代理工作流,揭示代理工作流中因输入操控导致的安全风险,并展示了对GitHub和n8n的广泛影响。

摘要:

自动化平台如GitHub Actions和n8n日益采用所谓的代理工作流,整合大语言模型(LLM)代理执行代码审查和数据同步等任务。尽管为开发者带来便利,这种整合暴露了新风险:攻击者可能通过操控输入(如GitHub问题评论)来操纵LLM代理执行恶意操作,如泄露凭证和执行任意命令。本文设计了首个检测和利用框架JAW,通过上下文引导进化方法劫持自动化平台上的代理工作流。关键思想是通过混合程序分析衍生的上下文进化代理工作流输入以实现劫持。具体而言,JAW通过三种分析生成代理工作流上下文:(i)静态路径可行性分析以识别可行的代理调用路径及触发所需的输入约束;(ii)动态提示溯源分析以确定输入如何被转换和嵌入到LLM上下文中;(iii)能力分析以识别代理在运行时可用的操作和限制。对GitHub工作流和n8n模板的评估显示,4714个GitHub工作流和8个n8n模板可被成功劫持,例如泄露用户凭证。我们的发现涵盖15个广泛使用的GitHub Actions,包括官方GitHub Actions for Claude Code、Gemini CLI、Qwen CLI和Cursor CLI,以及两个官方n8n节点。我们已负责任地向受影响厂商披露所有发现,并获得许多认可、修复和漏洞赏金,尤其是来自GitHub、Google和Anthropic的。

英文摘要:

Automation platforms such as GitHub Actions and n8n are increasingly adopting so-called agentic workflows, which integrate Large Language Model (LLM) agents for tasks such as code review and data synchronization. While bringing convenience for developers, this integration exposes a new risk: An adversary may control and craft certain inputs, such as GitHub issue comments, to manipulate the LLM agent for unwanted actions, such as credential exfiltration and arbitrary command execution. To our knowledge, no prior academic work has studied such a risk in agentic workflows. In this paper, we design the first detection and exploitation framework, called JAW, to hijack agentic workflows hosted on automation platforms via a novel approach called Context-Grounded Evolution. Our key idea is to evolve agentic workflow inputs under the contexts derived from hybrid program analysis for hijacking purposes. Specifically, JAW generates agentic workflow contexts through three analyses: (i) static path-feasibility analysis to identify feasible agent-invocation paths and the input constraints required to trigger them, (ii) dynamic prompt-provenance analysis to determine how that input is transformed and embedded into the LLM context, and (iii) capability analysis to identify the actions and restrictions available to the agent at runtime. Our evaluation of JAW on GitHub workflows and n8n templates showed that 4714 GitHub workflows and eight n8n templates can be successfully hijacked, for example, to leak user credentials. Our findings span 15 widely-used GitHub Actions, including official GitHub Actions for Claude Code, Gemini CLI, Qwen CLI, and Cursor CLI, and two official n8n nodes. We responsibly disclosed all findings to the affected vendors and received many acknowledgements, fixes, and bug bounties, notably from GitHub, Google, and Anthropic.

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

↑