mlsanityData to 7 Oct 2026

Sandwich attack: Multi-language Mixture Adaptive Attack on LLMs

arXiv 2404.07242 ↗First posted 9 Apr 2024cs.CR cs.AI cs.CLcited by 20

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) are increasingly being developed and applied, but their widespread use faces challenges. These include aligning LLMs' responses with human values to prevent harmful outputs, which is addressed through safety training methods. Even so, bad actors and malicious users have succeeded in attempts to manipulate the LLMs to generate misaligned responses for harmful questions such as methods to create a bomb in school labs, recipes for harmful drugs, and ways to evade privacy rights. Another challenge is the multilingual capabilities of LLMs, which enable the model to understand and respond in multiple languages. Consequently, attackers exploit the unbalanced pre-training datasets of LLMs in different languages and the comparatively lower model performance in low-resource languages than high-resource ones. As a result, attackers use a low-resource languages to intentionally manipulate the model to create harmful responses. Many of the similar attack vectors have been patched by model providers, making the LLMs more robust against language-based manipulation. In this paper, we introduce a new black-box attack vector called the Sandwich attack: a multi-language mixture attack, which manipulates state-of-the-art LLMs into generating harmful and misaligned responses. Our experiments with five different models, namely Google's Bard, Gemini Pro, LLaMA-2-70-B-Chat, GPT-3.5-Turbo, GPT-4, and Claude-3-OPUS, show that this attack vector can be used by adversaries to generate harmful responses and elicit misaligned responses from these models. By detailing both the mechanism and impact of the Sandwich attack, this paper aims to guide future research and development towards more secure and resilient LLMs, ensuring they serve the public good while minimizing potential for misuse.

Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). Builds on 20 of its 31 references that are in the map. First posted on arXiv 9 Apr 2024.

Builds on

20 of 31 references.

References · 20

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
  4. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
  5. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
  6. 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 729
  7. 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 478
  8. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
  9. 2023Low-Resource Languages Jailbreak GPT-4cited by 290
  10. 2023Certifying LLM Safety against Adversarial Promptingcited by 248
  11. 2023Pretraining Language Models with Human Preferencescited by 245
  12. 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 226
8 more
  1. 2023Multilingual Jailbreak Challenges in Large Language Modelscited by 222
  2. 2023Red-Teaming Large Language Models using Chain of Utterances for Safety-Alignmentcited by 213
  3. 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attackscited by 189
  4. 2023Training Language Models with Language Feedback at Scalecited by 125
  5. 2023Cognitive Overload: Jailbreaking Large Language Models with Overloaded Logical Thinkingcited by 78
  6. 2023Text-CRS: A Generalized Certified Robustness Framework against Textual Adversarial Attackscited by 32
  7. 2023TaCo: Enhancing Cross-Lingual Transfer for Low-Resource Languages in LLMs through Translation-Assisted Chain-of-Thought Processescited by 18
  8. 2023Comprehensive Evaluation of ChatGPT Reliability Through Multilingual Inquiriescited by 11

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 5; 2025: 11; 2026: 4.

20 papers.

Sort:

By area:

  1. 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
  2. 2024Code-Switching Red-Teaming: LLM Evaluation for Safety and Multilingual Understandingcited by 34
  3. 2024Code-Switching Curriculum Learning for Multilingual Transfer in LLMscited by 26
  4. 2025Multilingual and Multi-Accent Jailbreaking of Audio LLMscited by 25
  5. 2024Jigsaw Puzzles: Splitting Harmful Questions to Jailbreak Large Language Modelscited by 15
  6. 2024Cognitive Overload Attack:Prompt Injection for Long Contextcited by 13
  7. 2025ControlNET: A Firewall for RAG-based LLM Systemcited by 11
  8. 2025MrGuard: A Multilingual Reasoning Guardrail for Universal LLM Safetycited by 9
  9. 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasurescited by 8
  10. 2025Trustworthy Machine Learning via Memorization and the Granular Long-Tail: A Survey on Interactions, Tradeoffs, and Beyondcited by 6
  11. 2025Bypassing Prompt Guards in Production with Controlled-Release Promptingcited by 6
  12. 2025OMNIGUARD: An Efficient Approach for AI Safety Moderation Across Languages and Modalitiescited by 5
8 more
  1. 2024Dynamic Normativity: Necessary and Sufficient Conditions for Value Alignmentcited by 3
  2. 2025Phonetic Perturbations Reveal Tokenizer-Rooted Safety Gaps in LLMscited by 2
  3. 2026A Blind Spot in Alignment: Quantifying Biosecurity Risks in Large Language Modelscited by 2
  4. 2025The Tower of Babel Revisited: Multilingual Jailbreak Prompts on Closed-Source Large Language Modelscited by 1
  5. 2025Casting a SPELL: Sentence Pairing Exploration for LLM Limitation-breakingcited by 1
  6. 2026Multilingual jailbreaking of LLMs using low-resource languagescited by 1
  7. 2026A Survey of Toxicity Detection and Mitigation Strategies for Multilingual Language Modelscited by 0
  8. 2026Safety Targeted Embedding Exploit via Refinementcited by 0