← Lab /AI/ML

Combining output prefix with malicious reasoning yields up to 99% attack success

Injecting a trivial output prefix together with malicious reasoning causes attacks to succeed at rates up to 99% on some models

AI/ML arXiv 24 Sep 2026 Attack Simulation evidence Threat model

Published as “Prefilling the Reasoning Channel: Output-Prefix Attacks on Reasoning LLMs”

Why it matters

Deployers should treat assistant prefill fields (output prefix and reasoning_content) as untrusted inputs and consider disabling or sanitizing them to prevent cheap jailbreaks.

Summary

Combining a malicious reasoning scratchpad with a trivial output prefix can drive attack success rates up to 99% on vulnerable models, while reasoning alone is essentially inert (≈0% success). Contextual prefixes outperform static ones, and susceptibility varies widely: Gemini 3 Flash reaches ~99% ASR, DeepSeek V4 Flash up to 76%, but Claude Haiku 4.5 stays near-immune at ≤1% ASR. The evidence comes from a controlled 1,800-case factorial experiment on three frontier models using AdvBench prompts, with an automatic LLM judge validated against manual ratings.

What they found 4

  1. Malicious reasoning alone yields essentially zero attack success.

    “injecting malicious reasoning alone is essentially inert (≈0% attack success)”

  2. Adding a trivial output prefix to the same reasoning raises success to as high as 99% on some models.

    “injecting the same reasoning together with a trivial output prefix raises the attack success rate to as high as 99% for some models”

  3. Contextual prefixes outperform static prefixes.

    “Prefix strength: contextual beats static (R1)”

  4. Claude Haiku 4.5 remains near-immune, never exceeding 1% ASR.

    “Claude Haiku 4.5 never exceeds 1% ASR in any tactic”

Caveats 4

  • Reasoning-only attacks are inert, contradicting any claim that the reasoning channel alone is a high-leverage vulnerability.
  • Claude Haiku 4.5 shows that output-prefix attacks can be effectively mitigated, limiting the generality of the high-success claim.
  • A limitation of this study is that only three models and one dataset (AdvBench) are explored; results may not generalize across the diversity of alignment strategies and reasoning implementations.
  • This study also rely on a single automatic judge (validated on one tactic/model); broader manual validation would strengthen the findings.

What’s new here 4

  • Isolates the scratchpad reasoning channel as a distinct output-prefix attack vector.
  • Compares reasoning-only, output-prefix-only, and combined attacks across both exposed- and hidden-reasoning model harnesses.
  • Introduces a 3×2 factorial design (prefix type × reasoning injection) evaluated on 1,800 AdvBench cases.
  • Shows that contextual prefixes are more effective than static ones and that model-specific defenses can render the attack ineffective.

Threat model stated by the source

Adversaryblack-box attacker with API access and knowledge of the model's request template
Capabilitycan place arbitrary text in the assistant-role content field and, for exposed-reasoning APIs, in the reasoning_content field
Assumescannot access model weights or gradients; goal is to jailbreak the model into producing harmful content