自动化平台如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.
DeepPresenter: Environment-Grounded Reflection for Agentic Presentation Generation
Chinese Information Processing Laboratory(中国信息处理实验室);Institute of Software Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学)
Agentic Router: An Execution-Grounded Continual Learning Approach With Memory
Zhejiang University(浙江大学);Zhejiang Lab(之江实验室);State Grid Hebei Electric Power Co., Ltd.(国网河北省电力有限公司);Macau University of Science and Technology(澳门科技大学)
CARE: Towards Clinical Accountability in Multi-Modal Medical Reasoning with an Evidence-Grounded Agentic Framework
Microsoft Research Asia(微软亚洲研究院);Department of Biomedical Engineering, Yale University(耶鲁大学生物医学工程系);Department of Radiology & Biomedical Imaging, Yale University(耶鲁大学放射学与生物医学成像系)
GoGoTB: Agentic RTL Verification with Specification-Grounded Coverage Closure
Tencent(腾讯);School of Integrated Circuits, Peking University(北京大学集成电路学院);Southwest Jiaotong University(西南交通大学);Institute of Electronic Design Automation, Peking University(北京大学电子设计自动化研究所);Beijing Advanced Innovation Center for Integrated Circuits(北京集成电路高精尖创新中心)
GCA Framework: A GCC Countries-Grounded Dataset and Agentic Pipeline for Climate Decision Support
Mohamed Bin Zayed University of Artificial Intelligence (MBZUAI)(莫扎德人工智能大学);University of Missouri(密苏里大学);Australian National University(澳大利亚国立大学);Linköping University(林肯大学)
DocShield: Towards AI Document Safety via Evidence-Grounded Agentic Reasoning
Ant Group(蚂蚁集团);Nanyang Technological University(南洋理工大学);CFAR and IHPC, Agency for Science, Technology and Research (A*STAR), Singapore(新加坡科技研究局(A*STAR)计算与先进机器人中心及高性能计算研究所)
Evidence-Grounded Frontier Mapping and Agentic Hypothesis Generation in Nanomedicine
ARIA Lab, Signal Processing Systems, Department of Electrical Engineering, Eindhoven University of Technology(ARIA实验室,信号处理系统,电气工程系,埃因霍温理工大学);Laboratory of Chemical Biology, Department of Biomedical Engineering, Eindhoven University of Technology(化学生物学实验室,生物医学工程系,埃因霍温理工大学);The Louis Family Laboratory for Targeted Drug Delivery and Personalized Medicine Technologies, Department of Chemical Engineering, Technion - Israel Institute of Technology(定向药物输送与个性化医学技术实验室,化学工程系,技术离子-以色列理工学院);Department of Nanomedicine and Theranostics, Institute for Experimental Molecular Imaging (ExMI), RWTH Aachen University Hospital(纳米医学与诊疗学系,实验分子成像研究所(ExMI),亚琛工业大学医院);Department of Internal Medicine and Radboud Center for Infectious Diseases (RCI), Radboud University Medical Center(内科学系和Radboud感染疾病中心(RCI),Radboud大学医学中心)
Deep-Reporter: Deep Research for Grounded Multimodal Long-Form Generation
National University of Singapore(新加坡国立大学);Nanyang Technological University(南洋理工大学);University of Edinburgh(爱丁堡大学);Beijing Institute of Technology(北京理工大学)
Auditable agentic AI for evidence-grounded thyroid ultrasound diagnosis and reporting
School of Computer Science and Engineering, Sun Yat-sen University(中山大学计算机科学与工程学院);School of Software Engineering, Sun Yat-sen University(中山大学软件工程学院);School of Mathematical Sciences, Zhejiang University(浙江大学数学科学学院);Perelman School of Medicine, University of Pennsylvania(宾夕法尼亚大学佩雷尔曼医学院);Zhujiang Hospital, Southern Medical University(南方医科大学珠江医院);College of Mathematical Medicine, Zhejiang Normal University(浙江师范大学数学医学院)
LLMs and Agentic AI Systems for Smart Grids: A Tutorial on Architectures and Applications
Department of Electrical and Computer Engineering, University of California San Diego(加州大学圣迭戈分校电气与计算机工程系);Department of Electrical and Computer Engineering, University of Alberta(阿尔伯塔大学电气与计算机工程系)
A Multimodal Agentic Pathology Co-pilot via Evidence Grounded Reasoning
Department of Computer Science and Engineering, Hong Kong University of Science and Technology(香港科技大学计算机科学与工程系);Department of Pathology, Nanfang Hospital, Southern Medical University(南方医科大学南芳医院病理科);Department of Pathology, School of Basic Medical Sciences, Southern Medical University(南方医科大学基础医学学院病理科);Department of Anatomical and Cellular Pathology, Chinese University of Hong Kong(香港中文大学解剖与细胞病理学系);Guangdong Provincial Key Laboratory of Molecular Tumor Pathology(广东省分子肿瘤病理学重点实验室);Jinfeng Laboratory(锦风实验室);Department of Chemical and Biological Engineering, Hong Kong University of Science and Technology(香港科技大学化学与生物工程系);Division of Life Science, Hong Kong University of Science and Technology(香港科技大学生命科学系);State Key Laboratory of Nervous System Disorders, The Hong Kong University of Science and Technology(香港科技大学神经系统疾病国家重点实验室);HKUST Shenzhen-Hong Kong Collaborative Innovation Research Institute, The Hong Kong University of Science and Technology(香港科技大学深圳-香港协同创新研究院)