Goal hijacking is a type of adversarial attack on Large Language Models (LLMs) where the objective is to manipulate the model into producing a specific, predetermined output, regardless of the user's original input. In goal hijacking, an attacker typically appends a carefully crafted malicious suffix to the user's prompt, which coerces the model into ignoring the user's original input and generating the target response. In this paper, we introduce a novel goal hijacking attack method called Pseudo-Conversation Injection, which leverages the weaknesses of LLMs in role identification within conversation contexts. Specifically, we construct the suffix by fabricating responses from the LLM to the user's initial prompt, followed by a prompt for a malicious new task. This leads the model to perceive the initial prompt and fabricated response as a completed conversation, thereby executing the new, falsified prompt. Following this approach, we propose three Pseudo-Conversation construction strategies: Targeted Pseudo-Conversation, Universal Pseudo-Conversation, and Robust Pseudo-Conversation. These strategies are designed to achieve effective goal hijacking across various scenarios. Our experiments, conducted on two mainstream LLM platforms including ChatGPT and Qwen, demonstrate that our proposed method significantly outperforms existing approaches in terms of attack effectiveness.
ShadowCoT: Cognitive Hijacking for Stealthy Reasoning Backdoors in LLMs
School of Communication and Information Engineering, Shanghai University(上海大学通信与信息工程学院);College of Computer Science and Information Technology, IAU(国际应用技术大学计算机科学与信息学院);Center for AI Research (CAIR), University of Agder (UiA)(阿格德大学人工智能研究中心)
Efficient Universal Goal Hijacking with Semantics-guided Prompt Organization
Nanyang Technological University, Singapore(南洋理工大学);CFAR and IHPC, Agency for Science, Technology and Research (A*STAR), Singapore(CFAR和IHPC,新加坡科技研究局);New York University, USA(纽约大学);East China Normal University, China(华东师范大学)
ACIArena: Toward Unified Evaluation for Agent Cascading Injection
Zhejiang University(浙江大学);State Key Laboratory of Internet Architecture, Tsinghua University(清华大学网络架构国家重点实验室);University of California, Los Angeles(加州大学洛杉矶分校);Palo Alto Networks;Ningbo Global Innovation Center, Zhejiang University(浙江大学宁波全球创新中心)