Goal Hijacking Attack on Large Language Models via Pseudo-Conversation Injection
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 16 of its 28 references that are in the map. First posted on arXiv 31 Oct 2024.
Builds on
16 of 28 references.
References · 16
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 605
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 518
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
- 2022GatorTron: A Large Clinical Language Model to Unlock Patient Information from Unstructured Electronic Health Recordscited by 238
- 2024Automatic and Universal Prompt Injection Attacks against Large Language Modelscited by 119
4 more
- 2023Jatmo: Prompt Injection Defense by Task-Specific Finetuningcited by 106
- 2024InjecGuard: Benchmarking and Mitigating Over-defense in Prompt Injection Guardrail Modelscited by 42
- 2024Empirical Analysis of Large Vision-Language Models against Goal Hijacking via Visual Prompt Injectioncited by 17
- 2023Towards Safer Generative Language Models: A Survey on Safety Risks, Evaluations, and Improvementscited by 14
Built on by
Citing papers per year: 2025: 4.
4 papers.
- 2025ASIDE: Architectural Separation of Instructions and Data in Language Modelscited by 24
- 2025A Survey on Agentic Security: Applications, Threats and Defensescited by 20
- 2025CoBia: Constructed Conversations Can Trigger Otherwise Concealed Societal Biases in LLMscited by 5
- 2025AdversariaL attacK sAfety aLIgnment(ALKALI): Safeguarding LLMs through GRACE: Geometric Representation-Aware Contrastive Enhancement- Introducing Adversarial Vulnerability Quality Index (AVQI)cited by 0
- 2025CoBia: Constructed Conversations Can Trigger Otherwise Concealed Societal Biases in LLMs10 Oct 2025
- 2025A Survey on Agentic Security: Applications, Threats and Defenses7 Oct 2025
- 2025AdversariaL attacK sAfety aLIgnment(ALKALI): Safeguarding LLMs through GRACE: Geometric Representation-Aware Contrastive Enhancement- Introducing Adversarial Vulnerability Quality Index (AVQI)10 Jun 2025
- 2025ASIDE: Architectural Separation of Instructions and Data in Language Models13 Mar 2025