Skip to content← Home
← All sections

Section 14 · Questions 276–293

Robustness, misuse and safeguards

Jailbreaks and prompt injection

  1. An adversarial example is an input altered slightly, often invisibly, so that a model gets it confidently wrong. Szegedy et al. (2013) found that tiny pixel changes could make image classifiers mislabel almost any picture.

    Goodfellow et al. (2014) argued the main cause is that networks behave nearly linearly on very high-dimensional inputs. Nudging each of thousands of pixels a hair in the direction that favors a wrong class adds up to a large change in the output. Their one-step method turned a photo the model called a panda (57.7% confident) into a “gibbon” at 99.3%.

    Ilyas et al. (2019) explained them differently, as “features, not bugs.” Images contain faint pixel-level regularities that genuinely predict the label but that people cannot see, and a model rewarded only for accuracy uses them. A network trained only on such cues still scored 63.3% on ordinary test photos, though commentaries collected by Engstrom et al. (2019) questioned parts of the result.

    Text is discrete, so attacks on language models swap whole tokensToken: A word or piece of a word, the unit of text a language model reads and writes. Q37 → rather than nudging pixels.

    Sources Szegedy et al., Intriguing properties of neural networks (2013); Goodfellow et al., Explaining and Harnessing Adversarial Examples (2014); Ilyas et al., Adversarial Examples Are Not Bugs, They Are Features (2019); Engstrom et al., A Discussion of ‘Adversarial Examples Are Not Bugs, They Are Features’ (2019).

  2. A jailbreak is a prompt or other input that gets an AI model to do something its developer trained it to refuse, such as giving detailed help with a weapon. No software is broken into. The weakness is in the behavior the model learned in training.

    Some jailbreaks are hand-written tricks that exploit the ways safety training failsWhy do jailbreaks get past safety training? Q278 →. One tells the model to open its reply with an eager “Absolutely!” Another writes the request in Base64, a text encoding that capable models can decode. Wei et al. (2023b) cataloged many kinds and found combinations that worked against GPT-4 and Claude v1.3.

    Others are found automaticallyHow do automated attacks find jailbreaks? Q279 →. Zou et al. (2023b) had an algorithm search for strings of gibberish-looking text that, added to the end of a request, make a model start complying.

    Sources Wei et al., Jailbroken: How Does LLM Safety Training Fail? (2023b); Zou et al., Universal and Transferable Adversarial Attacks on Aligned Language Models (2023b).

  3. Two reasons have been proposed. Safety training has to compete with the model’s other goals, being helpful and following instructions, and it does not reach everything the model learned to do. Both come from Wei et al. (2023b), and the common hand-written jailbreaksJailbreak: A prompt or other input that gets an AI model to do something its developer trained it to refuse. Q277 → each exploit one of them.

    1. Competing objectives. A prompt can set helpfulness and instruction-following against refusing harm. Role-play wraps a request in fiction or a persona, such as a character who has no rules, so complying looks like playing a part. Of 1,405 jailbreak prompts shared online, many of them personas such as “Do Anything Now,” Shen et al. (2023) found five that reached 95% attack success on GPT-3.5 and GPT-4.
    2. Mismatched generalization. Pretraining gives abilities that safety training never covered. Encodings hide the request in Base64, a cipher or Morse code, which capable models can decode. Low-resource languages work the same way: harmful requests translated into languages such as Zulu got GPT-4 to engage 79% of the time, counting any of four languages that worked, against under 1% in English (Yong et al., 2023).

    Both reasons are a way of sorting attacks; neither has been measured as a mechanism inside the model.

    Sources Wei et al., Jailbroken: How Does LLM Safety Training Fail? (2023b); Shen et al., “Do Anything Now”: Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models (2023); Yong et al., Low-Resource Languages Jailbreak GPT-4 (2023).

  4. Many search for text that makes the model begin its reply affirmatively, after which it tends to carry on. Greedy Coordinate Gradient (GCG) looks for a string of tokens to append to a harmful request; at each step it uses gradients to shortlist promising token swaps, tests a batch and keeps the best (Zou et al., 2023b).

    Suffixes optimized on open models such as Vicuna also worked on ChatGPT and Bard, though barely at all on Claude 2.

    Attacks built for each model do better. Andriushchenko et al. (2024b) combined a carefully written prompt template with random search, keeping any change to a suffix that made a reply starting with “Sure” more likely. Tailored this way, the attacks reached 100% success, judged by GPT-4, against GPT-4o, open Llama and Gemma models and all the Claude models tested. No single attack worked on every model, so the authors argue that robustness must be tested with attacks adapted to each one.

    Sources Zou et al., Universal and Transferable Adversarial Attacks on Aligned Language Models (2023b); Andriushchenko et al., Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks (2024b).

  5. Many-shot jailbreaking packs one very long prompt with hundreds of fake dialogues in which an assistant answers harmful questions, then asks the real one. Anil et al. (2024) found that the negative log-probability of a harmful reply, a measure of how unlikely the model was to give one, fell as a power law in the number of fake dialogues, up to the 256 they tested. Ordinary in-context learningIn-context learning: A model picking up a task from examples or instructions in its prompt, with no change to its weights. Q46 → improves with more examples along the same kind of curve, and the authors suggest, without showing a mechanism, that the attack is in-context learning.

    Within one model family, larger models learned faster in context, and the attack was often more effective on them. Fine-tuningFine-tuning: Further training of an already trained model on a smaller, chosen set of examples. Q51 → against the attack only delayed it. Wrapping the prompt in a warning before it reached the model cut one attack’s success from 61% to 2%.

    Source Anil et al., Many-shot Jailbreaking (2024).

  6. Best-of-N jailbreaking sends a harmful request over and over, each time with random changes such as shuffled letters and random capitals, or altered audio and images, until one version gets through. Hughes et al. (2024) reached 89% success on GPT-4o and 78% on Claude 3.5 Sonnet with 10,000 attempts per request; the whole run against GPT-4o cost about $866.

    Success rose predictably with the number of attempts, close to a power law in N, so an attacker can forecast what more queries will buy. For defenders, a safeguard that fails rarely on each try still fails often against a patient attacker. Per-request robustness must be very high, or the provider has to notice many near-duplicate queries from one account.

    Source Hughes et al., Best-of-N Jailbreaking (2024).

  7. Prompt injection is an attack that plants instructions in text an AI application reads from an untrusted source, so that the model follows the attacker instead of the developer or user. Say you ask an AI assistant to summarize a web page, and an attacker has hidden instructions in the page. The assistant may follow them and act against you.

    The application joins trusted instructions and untrusted data into one text, and the model has no reliable way to tell them apart.

    A jailbreakJailbreak: A prompt or other input that gets an AI model to do something its developer trained it to refuse. Q277 → targets the model’s safety training and is usually sent by the user, who wants the forbidden output. In an injection the user is often the victim, and the attacker is whoever wrote the injected text. Indirect prompt injection, the kind in the web-page example, plants that text in content a model will read later, such as a web page, an email or a tool’s output; Greshake et al. (2023) showed such text could take over applications built on language models, Bing Chat among them.

    AgentsWhat is a language-model agent? Q50 → raise the stakes because they act. An agent that reads email can usually also send it, so a hidden line telling it to forward an invoice can become an action.

    The name comes from SQL injection, a classic attack that slips database commands into ordinary input.

    Source Greshake et al., Not what you’ve signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection (2023).

  8. One injected instruction can tell the agent to gather private data and send it to the attacker. Willison (2025) calls this combination the lethal trifecta. Private data gives an attacker something to steal. Untrusted content gives them a way to issue instructions, through prompt injectionPrompt injection: An attack in which text from an untrusted source, such as a web page or email, carries instructions that override the developer’s or user’s. Q282 →. A way to communicate outward, such as sending email, making a web request or even loading an image from a link, gives the stolen data a route out.

    Remove any one and that attack has no path, which makes the trifecta a practical design rule. Beurer-Kellner et al. (2025) describe similar design patterns, such as preventing an agent from taking consequential actions once it has read untrusted text.

    Sources Willison, The lethal trifecta for AI agents: private data, untrusted content, and external communication (2025); Beurer-Kellner et al., Design Patterns for Securing LLM Agents against Prompt Injections (2025).

  9. A model reads instructions and data through the same channel, and no training method yet makes it reliably ignore instructions hidden in data. Adaptive attacks bypassed all 12 recent defenses one study tested (Nasr et al., 2025).

    An instruction hierarchyWhose instructions should a model follow when they conflict? Q64 →, which trains a model to obey the developer over the user and the user over text arriving through tools, helps without stopping injections (Wallace et al., 2024). On the IHEval benchmark, even hierarchy-trained GPT-4o’s average score fell from 91.0 to 70.0 when instructions conflicted (Zhang et al., 2025b).

    System-level designs instead limit what injected text can do even when the model is fooled. In CaMeL, a privileged model writes a plan from the user’s request alone. A quarantined model reads untrusted data but can only fill in values, and tags on those values restrict which tool calls may use them (Debenedetti et al., 2025). It completed 77% of the tasks in AgentDojo, a benchmark of agent tasks with planted injections, with security guarantees, against 84% undefended.

    Sources Nasr et al., The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against LLM Jailbreaks and Prompt Injections (2025); Wallace et al., The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions (2024); Zhang et al., IHEval: Evaluating Language Models on Following the Instruction Hierarchy (2025b); Debenedetti et al., Defeating Prompt Injections by Design (2025).

Defenses

  1. Safety training alone has been broken by jailbreakJailbreak: A prompt or other input that gets an AI model to do something its developer trained it to refuse. Q277 → after jailbreak, so developers add separate checks around the model. A classifier here is a separate model trained to flag harmful text. An input classifier screens the prompt before it reaches the main model and an output classifier screens the response, so an attacker must beat every layer at once. Classifiers can also be retrained without retraining the model, and tuned to block narrow, high-risk topics such as weapons synthesis (Sharma et al., 2025; Anthropic, 2025).

    Layers are not a guarantee. McKenzie et al. (2025a) built an open pipeline of this kind that stopped every baseline attack on their most harmful test set, then broke it with a staged attack that defeated each layer in turn, reaching 71% success.

    Every classifier also blocks some harmless requests and takes extra computing power to run. Anthropic’s improved first-generation constitutional classifiersConstitutional classifiers: Classifiers that screen a model’s inputs and outputs for harmful requests, trained on examples generated from written rules about what is allowed. Q286 → raised refusals on real user traffic by 0.38 percentage points, a change it reports was not statistically significant, and added 23.7% to the computing cost of running the model (Sharma et al., 2025; Anthropic, 2025).

    Sources Sharma et al., Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teaming (2025); Anthropic, Building safeguards for Claude (2025); McKenzie et al., STACK: Adversarial Attacks on LLM Safeguard Pipelines (2025a); Anthropic, Constitutional Classifiers: Defending against universal jailbreaks (2025).

  2. Constitutional classifiers are filters placed around a model. An input classifier screens each prompt and an output classifier screens the reply. Both are trained to block what a written set of rules, the “constitution,” disallows. They are built to resist universal jailbreaks: single prompting strategies that unlock harmful answers to many or all forbidden questions, and that anyone can reuse once shared.

    They are trained on synthetic data generated from the constitution, natural-language rules on which content is allowed, here aimed at chemical, biological, radiological and nuclear weapons. A model uses the rules to write example prompts and responses on both sides. The output classifier scores the response as it streams, so it can stop a harmful answer partway (Sharma et al., 2025).

    In a bug bounty on the first prototype, 183 active participants spent over 3,000 hours seeking a jailbreak that answered all 10 forbidden questions, and none succeeded (Sharma et al., 2025). An improved version cut synthetic jailbreaks’ success on Claude 3.5 Sonnet from 86% to 4.4%, though in a 2025 public demo 4 of 339 participants passed all 8 levels, one with a universal jailbreak (Anthropic, 2025). A second generation, which judges whole exchanges, withstood over 1,700 hours of red teamingRed teaming: Adversarial testing in which people or models deliberately try to make a system fail. Q250 → with no universal jailbreak (Cunningham et al., 2026). The UK AI Security InstituteAI safety and security institutes: Government bodies that build technical capacity to understand and test frontier AI. Q340 → later found universal jailbreaks against the classifiers guarding Claude Sonnet 4.5 with an automated attack (Davies et al., 2026).

    Sources Sharma et al., Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teaming (2025); Anthropic, Constitutional Classifiers: Defending against universal jailbreaks (2025); Cunningham et al., Constitutional Classifiers++: Efficient Production-Grade Defenses against Universal Jailbreaks (2026); Davies et al., Boundary Point Jailbreaking of Black-Box LLMs (2026).

  3. A probeProbe: A small classifier trained to test whether a property, such as whether a statement is true, can be read from a model’s internal activations. Q167 → is a small classifier that reads activationsActivation: One of the numbers a network computes for a particular input as it runs; its weights, by contrast, stay fixed once training ends. Q33 →, the internal numbers the model has already computed, so it costs almost nothing extra; a separate classifier is another model reading the text. Cunningham et al. (2025) found that linear probes on the model being guarded beat a small dedicated classifier at negligible cost. Probes for high-stakes interactions matched mid-sized LLM monitors at about a millionth of the compute (McKenzie et al., 2025b). Probes can be fooled, though: Bailey et al. (2024) optimized inputs that kept a jailbreak working while driving the share of harmful cases latent-space monitors caught to near zero.

    Deployed systems can combine them. Anthropic’s production system uses a probe as a cheap first filter and passes flagged traffic to a costlier classifier (Cunningham et al., 2026). Goodfire built a similar cascade for cyber misuse into the engine serving the open-weightOpen-weight model: A model whose weights, the learned numbers that make it up, are published, so anyone can run, study and modify it. Q290 → Kimi K3: interrupting 5.5% of benign sessions, it caught about 93% of harmful ones, though its users were mostly simulated (Lubana et al., 2026).

    Sources Cunningham et al., Cost-Effective Constitutional Classifiers via Representation Re-use (2025); McKenzie et al., Detecting High-Stakes Interactions with Activation Probes (2025b); Bailey et al., Obfuscated Activations Bypass LLM Latent-Space Defenses (2024); Cunningham et al., Constitutional Classifiers++: Efficient Production-Grade Defenses against Universal Jailbreaks (2026); Lubana et al., Training and Deploying Production Cyber Monitors on Kimi K3 (2026).

  4. Adversarial training finds inputs that make a model fail and adds them, correctly labeled, to its training data, so the next version handles them. For images it means training on worst-case perturbations (Madry et al., 2017). For language models the attacks come from human red-teamers or optimizers such as GCG.

    Redwood Research tried to build a filter that would almost never let an injurious story completion through (Ziegler et al., 2022). Training on red-teamers’ attacks doubled the time contractors with tools needed to find a failure, from 13 to 26 minutes, without hurting ordinary performance. Failures were still found, so the very high reliability it aimed for was not shown.

    The protection mostly covers attacks like those in the training data. HarmBench’s R2D2 adversarial training improved robustness to GCG but helped less against unlike attacks (Mazeika et al., 2024), and simple adaptive attacks later broke it every time (Andriushchenko et al., 2024b). Latent adversarial training, which perturbs the model’s activations instead of its inputs, aims for broader coverage (Sheshadri et al., 2024).

    Sources Madry et al., Towards Deep Learning Models Resistant to Adversarial Attacks (2017); Ziegler et al., Adversarial Training for High-Stakes Reliability (2022); Mazeika et al., HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal (2024); Andriushchenko et al., Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks (2024b); Sheshadri et al., Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMs (2024).

  5. There is no consensus, and the answer depends on what the defender may do. On the attacker’s side, Howe et al. (2024) found extra attack compute raised success more cheaply than extra adversarial training lowered it, at every model size they studied. Best-of-NWhat is Best-of-N jailbreaking? Q281 → success rises predictably with attempts, adaptive attacks have bypassed recent defensesWhy is prompt injection considered unsolved? Q284 →, and an automated attack beat production classifiersWhat are constitutional classifiers? Q286 →.

    A developer, though, controls the whole system. It can monitor accounts, patch a new jailbreakHow do developers detect and respond to misuse after deployment? Q292 → from a single example and layer cheap screens before costly onesHow do probes on a model’s own activations compare with separate classifiers as safeguards? Q287 →. Howe et al. also read their trends as hinting that defense could win at much larger scale.

    Scale and reasoning help defenders only in part. Larger models were not reliably more robust without safety training (Howe et al., 2024). Letting o1 models reason for longer cut the success of many attacks, often toward zero (Zaremba et al., 2025), but when attackers could see the reasoning, more of it made open reasoning modelsReasoning model: A language model trained to write out a long chain of thought before it answers. Q49 → less robust (Wu et al., 2025b).

    Sources Howe et al., Scaling Trends in Language Model Robustness (2024); Zaremba et al., Trading Inference-Time Compute for Adversarial Robustness (2025); Wu et al., Does More Inference-Time Compute Really Help Robustness? (2025b).

Open weights and misuse

  1. An open-weight model’s weightsWeights: The numbers inside a model that training sets; they stay fixed afterward and are the same for every input. Q33 →, the learned numbers that make up the model, are published, so anyone can run, study and modify it. A closed model is available only through an interface its developer controls.

    For safety research, open weights allow work that needs a model’s internals: interpretability tools such as Gemma Scope (Lieberum et al., 2024), studies of training on fully documented models such as Pythia (Biderman et al., 2023), and independent replication. They also remove the developer’s ability to monitor use or withdraw the model, and safety training can be fine-tuned away (Seger et al., 2023). Kapoor et al. (2024b) argue the useful question is the marginal riskWhat are the arguments for and against releasing the weights of frontier models? Q344 → an open model adds over existing technology.

    Sources Lieberum et al., Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2 (2024); Biderman et al., Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling (2023); Seger et al., Open-Sourcing Highly Capable Foundation Models: An evaluation of risks, benefits, and alternative methods for pursuing open-source objectives (2023); Kapoor et al., On the Societal Impact of Open Foundation Models (2024b).

  2. Safety training changes how a model behaves without removing what it knows, and an open-weight model’s weights, the learned numbers that make it up, are published. Whoever holds them can simply train the model again. Lermen et al. (2023) used LoRADoes safety training remove harmful knowledge from a model? Q74 →, a cheap form of fine-tuning (further training), on one GPU, for under $200, to cut Llama 2-Chat 70B’s refusals of harmful requests from 95% to 0.6% while keeping its general abilities.

    Training is not even needed. Arditi et al. (2024) found that in 13 open chat models, refusal is controlled by one pattern of internal activity that acts as a gate, a single directionWhat is the refusal direction? Q196 → in the residual streamResidual stream: Where a transformer keeps its work in progress: a running list of numbers for each token, which every layer reads from and adds to. Q41 →, and deleting that direction from the weights switches refusal off.

    The same holds near the frontier, the most capable models of the day. The US Center for AI Standards and InnovationWhat are AI safety and security institutes? Q340 → (CAISI, 2026) judged Z.ai’s GLM-5.3 the most cyber-capable open-weight model released so far. Anthropic researchers removed its refusals by deleting the refusal direction, for about $4,400 of compute; refusal of harmful requests fell from over 90% to about 3% on JailbreakBench (Fasano et al., 2026).

    Safeguards built to survive fine-tuning have not changed this yet: the best tamper resistance confirmed by outside red teams lasts only several hundred steps of fine-tuning (Casper et al., 2025). Removing a whole dangerous subject, such as biothreats, from the pretraining data, the text a model learns from first, has held up better (O’Brien et al., 2025).

    Sources Lermen et al., LoRA Fine-tuning Efficiently Undoes Safety Training in Llama 2-Chat 70B (2023); Arditi et al., Refusal in Language Models Is Mediated by a Single Direction (2024); Center for AI Standards and Innovation (NIST), CAISI’s assessment of Z.ai’s GLM-5.3 cyber capabilities (2026); Fasano et al., GLM-5.3 and the spread of advanced cyber capabilities (2026); Casper et al., Open Technical Problems in Open-Weight AI Model Risk Management (2025); O’Brien et al., Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMs (2025).

  3. Developers layer several kinds of monitoring after release. Real-time classifiers score prompts and responses. Account-level enforcement acts on patterns of abuse. Aggregate analysis looks for patterns across many conversations, and threat-intelligence teams watch outside channels such as hacker forums (Anthropic, 2025). Anthropic’s Clio tool, which has a model summarize conversations and shows analysts only clusters above a minimum size, found a coordinated network producing search-engine spam that no single conversation revealed (Tamkin et al., 2024).

    Responses range from steering a model’s replies to banning accounts, notifying affected parties and authorities, and retraining classifiers on the new attack. That last step can be quick. Peng et al. (2024) generated variants of each newly seen jailbreak and fine-tuned an input classifier on them; with one example per attack strategy, success fell more than 240-fold on similar attacks and more than 15-fold on unlike variants. Anthropic disrupted a state-linked espionage campaign using Claude Code with bans and notifications, then reported it publicly (Anthropic, 2025).

    Sources Anthropic, Building safeguards for Claude (2025); Tamkin et al., Clio: Privacy-Preserving Insights into Real-World AI Use (2024); Peng et al., Rapid Response: Mitigating LLM Jailbreaks with a Few Examples (2024); Anthropic, Disrupting the first reported AI-orchestrated cyber espionage campaign (2025).

  4. Mostly that AI speeds up familiar kinds of attack, and that more of the work is being handed to AI agents. Google’s threat intelligence group found government-backed actors from more than 20 countries using Gemini for research, coding, translation and phishing, without gaining new capabilities; a later report described malware that queries a model while it runs (GTIG, 2025). OpenAI’s October 2025 report counted over 40 networks disrupted since early 2024 and found actors adding AI to old playbooks to move faster.

    Anthropic described a data-extortion operation that used Claude Code against at least 17 organizations (Anthropic, 2025), then a campaign it attributed to a Chinese state-sponsored group in which AI did an estimated 80–90% of the work against about 30 targets.

    By 2026 the pattern had spread. In most of the cyber operations Anthropic disrupted between December 2025 and August 2026, AI carried out or orchestrated the attack, sometimes as teams of agents running for hours or days with little supervision, for lone criminals as well as states. The techniques were familiar, but AI had cut the skill and labor they need (Anthropic, 2026). Google saw a shift from prompting to agentic workflows and, from late August 2026, attackers running large parts of real intrusions with open-source agentic hacking frameworks such as ARTEX, though in early, noisy ways and not yet with no human in the loop (GTIG, 2026). Each report is one provider’s view of its own platform.

    Sources Google Threat Intelligence Group, Adversarial Misuse of Generative AI (2025); Google Threat Intelligence Group, GTIG AI Threat Tracker: Advances in Threat Actor Usage of AI Tools (2025); Nimmo et al., Disrupting malicious uses of AI: October 2025 (2025); Anthropic, Detecting and countering misuse of AI: August 2025 (2025); Anthropic, Disrupting the first reported AI-orchestrated cyber espionage campaign (2025); Anthropic, Detecting and countering misuse of AI: September 2026 (2026); Google Threat Intelligence Group, GTIG AI Threat Tracker: From Prompting to Autonomy – The Evolution of Adversarial AI (2026); Blum et al., ARTEX and Friends: Enter Agentic Offensive Frameworks (2026).