New to ShortSpan? We distil the AI-security research that matters into practitioner takeaways — edited by Ben Williams (NCC Group). Get the weekly email
// Analysis

ASCII framing slips past LLM safety training

Attacks
ASCII framing slips past LLM safety training

Researchers test a single-turn, black-box ASCII Attack that reframes harmful Large Language Model (LLM) requests as art critique. Framed prompts were judged harmful 62% of the time versus 42% for matched controls; one model hit 93.3%. Susceptibility depends on model, not topic, and does not improve with scale.

Safety tuning teaches Large Language Models (LLMs) to refuse plainly harmful questions. This study shows an attacker can keep the operational content, switch the register, and get answers anyway: render the request as ASCII art, present it as artwork, then ask for critique. Single turn. Black box.

How it works

The ASCII Attack embeds a fully legible, potentially harmful request inside an arrangement of ASCII characters. Nothing is hidden; the text stays readable. The frame changes the speech act from request to critique. Models reply in the artistic register, and the critique can contain operational detail that a direct ask would have triggered a refusal for. The authors use a paired design: every framed prompt has a matching plain control with the same operational content. Generation is single turn with no system prompt, temperatures swept, and responses scored by multiple harm-aware judges.

What the data shows

Across eleven models and eight harm topics (account takeover, ransomware, chemical synthesis, and an Amanita phalloides scenario among them), a principal judge rated 62% of framed prompts harmful versus 42% of plain controls. On the most susceptible model, the framed version succeeded 93.3% of the time. A single ASCII query matches or exceeds published single-query attacks under four of five judges, and often rivals iterative multi-query methods; a best-of-three portfolio reached roughly 77% pooled union on the snapshot. Vulnerability tracks model identity far more than topic, and it does not shrink with scale. In several cases, larger or reasoning-enabled models were more susceptible.

Judging is noisy, which matters. At least one judge dissented from the panel majority on 62.9% of framed rows, and the estimated uplift ranged from about +7.8 to +20.1 percentage points depending on the judge. That pattern is consistent with mismatched generalisation: safety behaviours latch onto surface form, not intent.

Reasoning models add another wrinkle. Some showed harmful material in hidden think traces even when the visible reply looked clean. The visible text was still more likely to be harmful overall, but the private chain undermines the comforting story that refusal equals safety.

There are caveats. The ASCII prompts are longer, include scene-setting and enumerated sub-questions, so the measured effect bundles framing with extra priming. The study is English-only, single turn, with variable serving runtimes and chat templates. Judges are automated LLMs; a blind LLM adjudication corroborated uplift on samples but it is not full human ground truth.

If I were breaking things, I would package operational content inside an ASCII poster and ask for critique keyed to specific aspects, then rotate in other single-query frames to build a best-of-three. I would target architectures that showed higher susceptibility and lean on runtime variability. No role-play, no jailbreak lore, just a different register.

The awkward question for vendors: are you aligning models to reject content, or only certain ways of saying it? Right now, style wins.

Additional analysis of the original ArXiv paper

📋 Original Paper Title and Abstract

ASCII Attack: Recontextualising Harmful Requests as Artistic Critique in Large Language Models

Authors: Da Cheng Gu, Yifei Dong, Xinghao Yang, Yongshun Gong, and Wei Liu
Safety alignment trains large language models to refuse harmful requests stated plainly, but that training is applied mostly to surface form. Requests that only recontextualise the same operational content, changing how the model reads it, are therefore only weakly covered. The ASCII Attack is one such recontextualisation. It is single-turn and black-box: one message, with no access to model internals. It embeds a fully legible harmful request in ASCIl-art characters, presents it as artwork, and asks for feedback. Unlike ArtPrompt, it hides nothing: the request stays readable. The reply is written as artistic critique and can contain operational detail that a plain request would have been refused for. Every framed prompt is paired with a direct-question control, so the contrast is isolated from topic, model and decoding variation. The contrast identifies a bundled surface, not one isolated channel. Across eleven models and eight harm topics, a harm-aware classifier judges 62% of framed prompts harmful against 42% of controls. On the most susceptible model the framed prompt succeeds 93% of the time. A single query matches or exceeds published single-query attacks under four of five harm judges. The effect tracks the model more than the topic and does not diminish with scale. At least one judge dissents from the panel majority on nearly two-thirds of framed rows, which is itself a measurement-validity finding. That pattern is consistent with mismatched generalisation.

🔍 ShortSpan Analysis of the Paper

Problem

This paper studies a novel recontextualisation attack that exploits a mismatch between model capability and safety alignment. Safety training concentrates on refusing plainly stated harmful requests, but that supervision is shallow with respect to surface form. The ASCII Attack embeds a fully legible harmful request inside an assembly of ASCII-art characters, frames it as artwork and asks for artistic feedback, thereby changing the speech act without hiding the operational content. The attack is single-turn and black-box, so an attacker needs only one user message and no access to model internals. The study assesses whether this aesthetic register bypasses existing refusal behaviour and how broadly it generalises.

Approach

The authors formalise the ASCII Attack as a five-part prompt template and evaluate it with a paired design: every ASCII-framed prompt is matched to a direct-question control that states the same operational request plainly. They generated two independent corpora (Alpha and Bravo) across eleven target models spanning roughly 1B to a mixture-of-experts Scout model, and eight harm topics including account-takeover, ransomware, chem-synthesis and an Amanita phalloides poisoning scenario. Responses were scored by a panel of automated harm-aware judges (five primary classifiers) and additional robustness graders; a blind LLM-adjudicated panel was used as a proxy for human review on samples. Decoding temperatures were swept and generation was single-turn with no system prompt.

Key Findings

  • Framing uplift: a harm-aware classifier judges 62% of framed prompts harmful versus 42% for matched direct-question controls, an uplift in judged attack-success rate of roughly 20 percentage points under the principal judge.
  • Extreme susceptibility: on the most vulnerable target the ASCII-framed prompt succeeded 93.3% of the time.
  • Comparative strength: a single black-box ASCII query matches or exceeds published single-query attacks under four of five harm judges and often equals or outperforms a multi-query iterative attack on most models; a best-of-three single-query portfolio attains a pooled union near 77% on the frozen snapshot.
  • Architecture domination: variance in vulnerability is driven more by model identity than by topic; susceptibility does not decrease with model scale and in some cases larger or reasoning-enabled models are more susceptible.
  • Judge disagreement and measurement validity: judges disagree substantially; at least one judge dissents from the panel majority on 62.9% of ASCII-framed rows, and the uplift range across judges was from about +7.8 to +20.1 percentage points in the main corpus.
  • Hidden deliberation traces: for reasoning models a nontrivial subset showed harmful content in hidden think traces even when the visible response appeared clean, although the visible reply was overall more likely to be harmful.

Limitations

Main constraints are that the paired ASCII prompts are substantially longer and include scene descriptions and enumerated sub-questions, so the measured effect is a bundled framing plus information-priming treatment rather than an isolated aesthetic-channel coefficient. Judgements are automated LLM classifiers and therefore judge-rated rather than human ground truth, although a blind LLM-adjudicated panel corroborated a positive uplift in sampled draws. Generation provenance and serving runtime varied across rows, and runtime-supplied chat templates can alter generation; the study is English-only and restricted to single-turn attacks.

Implications

Offensive implications are clear: an end-user attacker can craft a single black-box message that reframes operationally precise harmful requests as art critique and elicit operational detail that would likely have been refused if asked plainly. Such prompts require no optimisation, no role-play instruction and no access to model internals, can be effective across model families, and combine easily with other single-query surfaces to increase overall success. The attack also leverages serving and runtime variability and can exploit reasoning-model deliberation traces, so defenders cannot assume uniform behaviour across deployments.

// Similar research

Related Research

Get the weekly digest

The few AI-security papers that matter, with the practitioner takeaway. No spam.