mlsanityData to 14 Oct 2026

Exploiting Prefix-Tree in Structured Output Interfaces for Enhancing Jailbreak Attacking

arXiv 2502.13527 ↗First posted 19 Feb 2025cs.CR cs.AIcited by 5

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

The rise of Large Language Models (LLMs) has led to significant applications but also introduced serious security threats, particularly from jailbreak attacks that manipulate output generation. These attacks utilize prompt engineering and logit manipulation to steer models toward harmful content, prompting LLM providers to implement filtering and safety alignment strategies. We investigate LLMs' safety mechanisms and their recent applications, revealing a new threat model targeting structured output interfaces, which enable attackers to manipulate the inner logit during LLM generation, requiring only API access permissions. To demonstrate this threat model, we introduce a black-box attack framework called AttackPrefixTree (APT). APT exploits structured output interfaces to dynamically construct attack patterns. By leveraging prefixes of models' safety refusal response and latent harmful outputs, APT effectively bypasses safety measures. Experiments on benchmark datasets indicate that this approach achieves higher attack success rate than existing methods. This work highlights the urgent need for LLM providers to enhance security protocols to address vulnerabilities arising from the interaction between safety patterns and structured outputs.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. First posted on arXiv 19 Feb 2025.

Builds on

0 of 0 references.

No references here yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 4; 2026: 1.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025SafeInt: Shielding Large Language Models from Jailbreak Attacks via Safety-Aware Representation Intervention
  2. 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models
  3. 2024Prefix Guidance: A Steering Wheel for Large Language Models to Defend Against Jailbreak Attacks
  4. 2024Harnessing Task Overload for Scalable Jailbreak Attacks on Large Language Models
  5. 2026The Salami Slicing Threat: Exploiting Cumulative Risks in LLM Systems
  6. 2025Forewarned is Forearmed: Pre-Synthesizing Jailbreak-like Instructions to Enhance LLM Safety Guardrail to Potential Attacks
  7. 2025Smoke and Mirrors: Jailbreaking LLM-based Code Generation via Implicit Malicious Prompts
  8. 2025Jailbreaking in the Haystack