Prompt Packer: Deceiving LLMs through Compositional Instruction with Hidden Attacks
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
Recently, Large language models (LLMs) with powerful general capabilities have been increasingly integrated into various Web applications, while undergoing alignment training to ensure that the generated content aligns with user intent and ethics. Unfortunately, they remain the risk of generating harmful content like hate speech and criminal activities in practical applications. Current approaches primarily rely on detecting, collecting, and training against harmful prompts to prevent such risks. However, they typically focused on the "superficial" harmful prompts with a solitary intent, ignoring composite attack instructions with multiple intentions that can easily elicit harmful content in real-world scenarios. In this paper, we introduce an innovative technique for obfuscating harmful instructions: Compositional Instruction Attacks (CIA), which refers to attacking by combination and encapsulation of multiple instructions. CIA hides harmful prompts within instructions of harmless intentions, making it impossible for the model to identify underlying malicious intentions. Furthermore, we implement two transformation methods, known as T-CIA and W-CIA, to automatically disguise harmful instructions as talking or writing tasks, making them appear harmless to LLMs. We evaluated CIA on GPT-4, ChatGPT, and ChatGLM2 with two safety assessment datasets and two harmful prompt datasets. It achieves an attack success rate of 95%+ on safety assessment datasets, and 83%+ for GPT-4, 91%+ for ChatGPT (gpt-3.5-turbo backed) and ChatGLM2-6B on harmful prompt datasets. Our approach reveals the vulnerability of LLMs to such compositional instruction attacks that harbor underlying harmful intentions, contributing significantly to LLM security development. Warning: this paper may contain offensive or upsetting content!
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 29 of its 43 references that are in the map. First posted on arXiv 16 Oct 2023.
Builds on
29 of 43 references.
Closest ancestors · 5
Same direction, newest first
- 2023Goal-Oriented Prompt Attack and Safety Evaluation for LLMs21 Sep
- 2023Red-Teaming Large Language Models using Chain of Utterances for Safety-Alignment18 Aug
- 2023Query-Efficient Black-Box Red Teaming via Bayesian Optimization27 May
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned23 Aug
- 2022Red Teaming Language Models with Language Models7 Feb
Other references · 24
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
- 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 729
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 520
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
12 more
- 2023Analyzing Leakage of Personally Identifiable Information in Language Modelscited by 278
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 268
- 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbotscited by 172
- 2021Challenges in Detoxifying Language Modelscited by 169
- 2023Generative Language Models and Automated Influence Operations: Emerging Threats and Potential Mitigationscited by 157
- 2023Open Sesame! Universal Black Box Jailbreaking of Large Language Modelscited by 128
- 2022When to Make Exceptions: Exploring Language Models as Accounts of Human Moral Judgmentcited by 93
- 2023Spear Phishing With Large Language Modelscited by 49
- 2023FuzzLLM: A Novel and Universal Fuzzing Framework for Proactively Discovering Jailbreak Vulnerabilities in Large Language Modelscited by 46
- 2022Why So Toxic? Measuring and Triggering Toxic Behavior in Open-Domain Chatbotscited by 31
- 2022What do LLMs Know about Financial Markets? A Case Study on Reddit Market Sentiment Analysiscited by 27
- 2023KoSBi: A Dataset for Mitigating Social Bias Risks Towards Safer Large Language Model Applicationcited by 24
Built on by
Citing papers per year: 2023: 3; 2024: 15; 2025: 9; 2026: 3.
30 papers.
Sort:
By area:
- 2024LLMs-as-Judges: A Comprehensive Survey on LLM-based Evaluation Methodscited by 451
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024Humans or LLMs as the Judge? A Study on Judgement Biasescited by 314
- 2023MM-SafetyBench: A Benchmark for Safety Evaluation of Multimodal Large Language Modelscited by 255
- 2024WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Modelscited by 206
- 2023Evil Geniuses: Delving into the Safety of LLM-based Agentscited by 103
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 82
- 2024Safeguarding Large Language Models: A Surveycited by 73
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
- 2024Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language Modelscited by 42
- 2025Chasing Moving Targets with Online Self-Play Reinforcement Learning for Safer Language Modelscited by 33
- 2024S-Eval: Towards Automated and Comprehensive Safety Evaluation for Large Language Modelscited by 28
18 more
- 2024A Trembling House of Cards? Mapping Adversarial Attacks against Language Agentscited by 22
- 2024LLM Task Interference: An Initial Study on the Impact of Task-Switch in Conversational Historycited by 19
- 2025NeuroStrike: Neuron-Level Attacks on Aligned LLMscited by 18
- 2024Are LLMs Correctly Integrated into Software Systems?cited by 13
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Featurescited by 13
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Surveycited by 10
- 2024Can LLMs Deeply Detect Complex Malicious Queries? A Framework for Jailbreaking via Obfuscating Intentcited by 8
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLMcited by 8
- 2025Shh, don't say that! Domain Certification in LLMscited by 7
- 2024Lightweight Safety Classification Using Pruned Language Modelscited by 5
- 2024CRiskEval: A Chinese Multi-Level Risk Evaluation Benchmark Dataset for Large Language Modelscited by 2
- 2026NeST: Neuron Selective Tuning for LLM Safetycited by 2
- 2025Be a Multitude to Itself: A Prompt Evolution Framework for Red Teamingcited by 1
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
- 2025AdversariaL attacK sAfety aLIgnment(ALKALI): Safeguarding LLMs through GRACE: Geometric Representation-Aware Contrastive Enhancement- Introducing Adversarial Vulnerability Quality Index (AVQI)cited by 0
- 2025Large Language Model Selection with Limited Annotationscited by 0
- 2026When Prompts Become Payloads: A Framework for Mitigating SQL Injection Attacks in Large Language Model-Driven Applicationscited by 0
- 2026Large Language Model Selection with Limited Annotationscited by 0
- 2026Large Language Model Selection with Limited Annotations24 May 2026
- 2026When Prompts Become Payloads: A Framework for Mitigating SQL Injection Attacks in Large Language Model-Driven Applications11 May 2026
- 2026NeST: Neuron Selective Tuning for LLM Safety18 Feb 2026
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Features15 Oct 2025
- 2025Large Language Model Selection with Limited Annotations10 Oct 2025
- 2025NeuroStrike: Neuron-Level Attacks on Aligned LLMs15 Sep 2025
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 Sep 2025
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLM7 Aug 2025
- 2025AdversariaL attacK sAfety aLIgnment(ALKALI): Safeguarding LLMs through GRACE: Geometric Representation-Aware Contrastive Enhancement- Introducing Adversarial Vulnerability Quality Index (AVQI)10 Jun 2025
- 2025Chasing Moving Targets with Online Self-Play Reinforcement Learning for Safer Language Models9 Jun 2025
- 2025Shh, don't say that! Domain Certification in LLMs26 Feb 2025
- 2025Be a Multitude to Itself: A Prompt Evolution Framework for Red Teaming22 Feb 2025
18 more
- 2024Lightweight Safety Classification Using Pruned Language Models18 Dec 2024
- 2024LLMs-as-Judges: A Comprehensive Survey on LLM-based Evaluation Methods7 Dec 2024
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMs1 Nov 2024
- 2024Are LLMs Correctly Integrated into Software Systems?6 Jul 2024
- 2024WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models26 Jun 2024
- 2024CRiskEval: A Chinese Multi-Level Risk Evaluation Benchmark Dataset for Large Language Models7 Jun 2024
- 2024Safeguarding Large Language Models: A Survey3 Jun 2024
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Survey1 Jun 2024
- 2024S-Eval: Towards Automated and Comprehensive Safety Evaluation for Large Language Models23 May 2024
- 2024Can LLMs Deeply Detect Complex Malicious Queries? A Framework for Jailbreaking via Obfuscating Intent6 May 2024
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Review6 May 2024
- 2024Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language Models3 Mar 2024
- 2024LLM Task Interference: An Initial Study on the Impact of Task-Switch in Conversational History28 Feb 2024
- 2024Humans or LLMs as the Judge? A Study on Judgement Biases16 Feb 2024
- 2024A Trembling House of Cards? Mapping Adversarial Attacks against Language Agents15 Feb 2024
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Ugly4 Dec 2023
- 2023MM-SafetyBench: A Benchmark for Safety Evaluation of Multimodal Large Language Models29 Nov 2023
- 2023Evil Geniuses: Delving into the Safety of LLM-based Agents20 Nov 2023
- 2024WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Modelscited by 206
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 82
- 2024Safeguarding Large Language Models: A Surveycited by 73
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Featurescited by 13
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Surveycited by 10
- 2024Can LLMs Deeply Detect Complex Malicious Queries? A Framework for Jailbreaking via Obfuscating Intentcited by 8
- 2024Lightweight Safety Classification Using Pruned Language Modelscited by 5
- 2025Be a Multitude to Itself: A Prompt Evolution Framework for Red Teamingcited by 1
- 2026When Prompts Become Payloads: A Framework for Mitigating SQL Injection Attacks in Large Language Model-Driven Applicationscited by 0
- 2026When Prompts Become Payloads: A Framework for Mitigating SQL Injection Attacks in Large Language Model-Driven Applications11 May 2026
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Features15 Oct 2025
- 2025Be a Multitude to Itself: A Prompt Evolution Framework for Red Teaming22 Feb 2025
- 2024Lightweight Safety Classification Using Pruned Language Models18 Dec 2024
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMs1 Nov 2024
- 2024WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models26 Jun 2024
- 2024Safeguarding Large Language Models: A Survey3 Jun 2024
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Survey1 Jun 2024
- 2024Can LLMs Deeply Detect Complex Malicious Queries? A Framework for Jailbreaking via Obfuscating Intent6 May 2024
- 2025Chasing Moving Targets with Online Self-Play Reinforcement Learning for Safer Language Modelscited by 33
- 2025NeuroStrike: Neuron-Level Attacks on Aligned LLMscited by 18
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLMcited by 8
- 2026NeST: Neuron Selective Tuning for LLM Safetycited by 2
- 2025AdversariaL attacK sAfety aLIgnment(ALKALI): Safeguarding LLMs through GRACE: Geometric Representation-Aware Contrastive Enhancement- Introducing Adversarial Vulnerability Quality Index (AVQI)cited by 0
- 2026NeST: Neuron Selective Tuning for LLM Safety18 Feb 2026
- 2025NeuroStrike: Neuron-Level Attacks on Aligned LLMs15 Sep 2025
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLM7 Aug 2025
- 2025AdversariaL attacK sAfety aLIgnment(ALKALI): Safeguarding LLMs through GRACE: Geometric Representation-Aware Contrastive Enhancement- Introducing Adversarial Vulnerability Quality Index (AVQI)10 Jun 2025
- 2025Chasing Moving Targets with Online Self-Play Reinforcement Learning for Safer Language Models9 Jun 2025
- 2024Are LLMs Correctly Integrated into Software Systems?cited by 13
- 2024Are LLMs Correctly Integrated into Software Systems?6 Jul 2024
- 2024LLMs-as-Judges: A Comprehensive Survey on LLM-based Evaluation Methodscited by 451
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024Humans or LLMs as the Judge? A Study on Judgement Biasescited by 314
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
- 2024Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language Modelscited by 42
- 2024S-Eval: Towards Automated and Comprehensive Safety Evaluation for Large Language Modelscited by 28
- 2024LLM Task Interference: An Initial Study on the Impact of Task-Switch in Conversational Historycited by 19
- 2025Shh, don't say that! Domain Certification in LLMscited by 7
- 2024CRiskEval: A Chinese Multi-Level Risk Evaluation Benchmark Dataset for Large Language Modelscited by 2
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
- 2025Large Language Model Selection with Limited Annotationscited by 0
- 2026Large Language Model Selection with Limited Annotationscited by 0
- 2026Large Language Model Selection with Limited Annotations24 May 2026
- 2025Large Language Model Selection with Limited Annotations10 Oct 2025
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 Sep 2025
- 2025Shh, don't say that! Domain Certification in LLMs26 Feb 2025
- 2024LLMs-as-Judges: A Comprehensive Survey on LLM-based Evaluation Methods7 Dec 2024
- 2024CRiskEval: A Chinese Multi-Level Risk Evaluation Benchmark Dataset for Large Language Models7 Jun 2024
- 2024S-Eval: Towards Automated and Comprehensive Safety Evaluation for Large Language Models23 May 2024
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Review6 May 2024
- 2024Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language Models3 Mar 2024
- 2024LLM Task Interference: An Initial Study on the Impact of Task-Switch in Conversational History28 Feb 2024
- 2024Humans or LLMs as the Judge? A Study on Judgement Biases16 Feb 2024
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Ugly4 Dec 2023