mlsanityData to 14 Oct 2026

HAMSA: Hijacking Aligned Compact Models via Stealthy Automation

arXiv 2508.16484 ↗First posted 22 Aug 2025cs.CLcited by 2

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Large Language Models (LLMs), especially their compact efficiency-oriented variants, remain susceptible to jailbreak attacks that can elicit harmful outputs despite extensive alignment efforts. Existing adversarial prompt generation techniques often rely on manual engineering or rudimentary obfuscation, producing low-quality or incoherent text that is easily flagged by perplexity-based filters. We present an automated red-teaming framework that evolves semantically meaningful and stealthy jailbreak prompts for aligned compact LLMs. The approach employs a multi-stage evolutionary search, where candidate prompts are iteratively refined using a population-based strategy augmented with temperature-controlled variability to balance exploration and coherence preservation. This enables the systematic discovery of prompts capable of bypassing alignment safeguards while maintaining natural language fluency. We evaluate our method on benchmarks in English (In-The-Wild Jailbreak Prompts on LLMs), and a newly curated Arabic one derived from In-The-Wild Jailbreak Prompts on LLMs and annotated by native Arabic linguists, enabling multilingual assessment.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 33 of its 40 references that are in the map. First posted on arXiv 22 Aug 2025.

Builds on

33 of 40 references.

Closest ancestors · 12

Same direction, newest first

  1. 2025From LLMs to MLLMs to Agents: A Survey of Emerging Paradigms in Jailbreak Attacks and Defenses within LLM Ecosystem18 Jun
  2. 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMs3 Oct
  3. 2024StructuralSleight: Automated Jailbreak Attacks on Large Language Models Utilizing Uncommon Text-Organization Structures13 Jun
  4. 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models28 Mar
  5. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models3 Oct
  6. 2023Open Sesame! Universal Black Box Jailbreaking of Large Language Models4 Sep
  7. 2023Detecting Language Model Attacks with Perplexity27 Aug
  8. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models7 Aug
  9. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
  10. 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbots16 Jul
  11. 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul
  12. 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Study23 May

Other references · 21

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  6. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  7. 2023Qwen Technical Reportcited by 3,344
  8. 2023Mistral 7Bcited by 3,164
  9. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
  10. 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
  11. 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
  12. 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 729
9 more
  1. 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 472
  2. 2023Multi-step Jailbreaking Privacy Attacks on ChatGPTcited by 333
  3. 2021Understanding Dataset Difficulty with V-Usable Informationcited by 291
  4. 2021Recursively Summarizing Books with Human Feedbackcited by 290
  5. 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 289
  6. 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
  7. 2023AI Alignment: A Comprehensive Surveycited by 263
  8. 2025GigaChat Family: Efficient Russian Language Modeling Through Mixture of Experts Architecturecited by 8
  9. 2025Geopolitical biases in LLMs: what are the "good" and the "bad" countries according to contemporary language modelscited by 6

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025ForgeDAN: An Evolutionary Framework for Jailbreaking Aligned Large Language Models
  2. 2024Jailbreaking Large Language Models Through Alignment Vulnerabilities in Out-of-Distribution Settings
  3. 2024Jailbreaking and Mitigation of Vulnerabilities in Large Language Models
  4. 2025Formalization Driven LLM Prompt Jailbreaking via Reinforcement Learning
  5. 2023A Wolf in Sheep's Clothing: Generalized Nested Jailbreak Prompts can Fool Large Language Models Easily
  6. 2025A Domain-Based Taxonomy of Jailbreak Vulnerabilities in Large Language Models
  7. 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing
  8. 2026Adversarial Reframing: A Framework for Targeted Generation in Language Models