{"course":{"slug":"ai-and-you","title":"AI, Safety and What Goes Wrong","url":"https://addaly.com/learn/ai-and-you","level":"beginner","track":"start"},"lesson":{"slug":"jailbreaks-and-why-they-persist","title":"Why safety training is a surface, not a wall","url":"https://addaly.com/learn/ai-and-you/jailbreaks-and-why-they-persist","position":45,"of":73,"minutes":8,"answer":"Refusal is a trained behaviour with a distribution rather than a rule, so capability survives inputs that are far enough from the training examples.","keyIdea":"Refusal is a trained behaviour with a distribution rather than a rule, so capability survives inputs that are far enough from the training examples, which means a product's real boundaries must live in tool permissions and data scoping, never in the prompt."},"body":{"format":"markdown","text":"## Refusal is a behaviour, not a rule\n\nWhen a model declines a request, no rule fired. There is no list of forbidden topics consulted before answering. The refusal is a learned behaviour: during alignment training the model was shown many examples of harmful requests being declined, and it generalised a pattern that produces refusals for inputs resembling those examples.\n\nA learned behaviour has a *distribution*. It is strong near the examples it was trained on and weaker further away. A jailbreak is any input far enough from the training distribution that the refusal behaviour does not fire, while the underlying capability still does.\n\nThe capability was never removed. Alignment training does not delete knowledge; it adjusts the propensity to express it.\n\n## The families of technique\n\nWithout supplying a manual, the categories are publicly documented and worth understanding structurally.\n\n**Reframing.** Fiction, roleplay, a hypothetical, a historical account, a translation exercise, a security research framing. The request is transformed into a genre in which the refusal examples were sparse.\n\n**Encoding.** Base64, unusual scripts, low-resource languages, leetspeak, split across turns. This works because the safety training was concentrated in a few languages and formats while the model's capability generalises far beyond them: a genuine asymmetry between how the model was trained to behave and how broadly it can understand.\n\n**Context flooding.** Long inputs, many examples, gradual escalation. Research on many-shot attacks has shown that filling a long context window with examples of a model complying with harmful requests increases the chance it complies with the next one, and that the effect gets stronger as context windows get longer, which is an uncomfortable trend.\n\n**Optimisation.** Automated search for input strings that suppress refusal. Adversarial suffixes found against open models have been shown to transfer to closed ones, which tells you the vulnerability is at least partly a property of the training approach rather than of one model.\n\n## What follows for a builder\n\nThe practical conclusion is not that safety training is useless. It substantially raises the effort required, which stops casual misuse, and casual misuse is most misuse.\n\nThe conclusion is that **you cannot use the model's refusal as a security control.** If your product must not do something, that must be enforced outside the model: in the permissions of the tools it can call, in the API keys it holds, in the database rows it can read, in an output filter. A model instructed not to reveal other customers' records is a request. A model whose database query is scoped to one customer is a control.\n\nThis is the same lesson as the trifecta, arriving from a different direction: **put the boundary in the plumbing, not in the prompt.**\n\n## The system prompt is not a secret\n\nThe instructions a product gives its model (its persona, its rules, sometimes its business logic) are recoverable. Users extract them routinely, and they end up published in collections.\n\nSo do not put anything in a system prompt you would mind being read: no API keys, no internal pricing rules, no unreleased product names, no exclusionary criteria you would not defend in public.\n\n## And for a user\n\nFirst, if a model gives you something after resistance, note that you have moved it away from its trained behaviour, which is also where its reliability is lowest. Jailbroken output tends to be worse output (more confabulation, less calibration) because you have deliberately taken the model somewhere unusual.\n\nSecond, the same techniques used to extract harmful content are used by attackers to get a *system* to misbehave against you. Understanding that refusals are soft is useful defensively: any product whose safety story is \"we told the model not to\" has told you how much protection you have."},"check":{"question":"A company builds a customer service bot on a general model and instructs it in the system prompt never to reveal information about other customers. What is the flaw?","options":[{"text":"The instruction is too vague and should list the exact fields it must not reveal","correct":false,"tempting":"Precise wording makes the rule easier to follow, but it is still an instruction, not an access control."},{"text":"Users could extract the system prompt and so expose the company's internal rules","correct":false,"tempting":"True and worth avoiding, but the serious flaw is that other customers' data is reachable at all."},{"text":"General models do not suit this, and a fine-tuned one would follow the rule reliably","correct":false,"tempting":"Fine-tuning strengthens a behaviour without making it a guarantee, and the same kind of input can still move it."},{"text":"Obeying it is a trained habit, not a control, so limit what data the bot can reach","correct":true}],"why":"The fix is to scope retrieval to the current customer, so there is nothing else for a jailbreak to reveal."},"prev":{"slug":"when-the-assistant-can-act","title":"The three ingredients of a disaster","url":"https://addaly.com/learn/ai-and-you/when-the-assistant-can-act"},"next":{"slug":"poisoning-the-well","title":"Attacks on the model itself","url":"https://addaly.com/learn/ai-and-you/poisoning-the-well"},"authorship":"Founder and series editor: Dr Mustafa Mun. Written by AI models to a written standard. Source and assessment review continues. Academic review invited.","review":{"status":"Draft, open for academic review"},"cite":"Addaly (2026) 'Why safety training is a surface, not a wall', in AI, Safety and What Goes Wrong. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/ai-and-you/jailbreaks-and-why-they-persist (Accessed: 29 November 2026).","licence":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"reader":{"schema":1,"title":"Why safety training is a surface, not a wall","courseTitle":"AI, Safety and What Goes Wrong","module":{"index":6,"slug":"manipulation-and-security","title":"Manipulation, attack and abuse"},"answer":null,"keyIdea":"Refusal is a trained behaviour with a distribution rather than a rule, so capability survives inputs that are far enough from the training examples, which means a product’s real boundaries must live in tool permissions and data scoping, never in the prompt.","hero":{"kind":"plate","image":null,"alt":null,"caption":null},"blocks":[{"t":"h2","id":"refusal-is-a-behaviour-not-a-rule","runs":[{"text":"Refusal is a behaviour, not a rule"}]},{"t":"p","runs":[{"text":"When a model declines a request, no rule fired. There is no list of forbidden topics consulted before answering. The refusal is a learned behaviour: during alignment training the model was shown many examples of harmful requests being declined, and it generalised a pattern that produces refusals for inputs resembling those examples."}]},{"t":"p","runs":[{"text":"A learned behaviour has a "},{"text":"distribution","i":true},{"text":". It is strong near the examples it was trained on and weaker further away. A jailbreak is any input far enough from the training distribution that the refusal behaviour does not fire, while the underlying capability still does."}]},{"t":"p","runs":[{"text":"The capability was never removed. Alignment training does not delete knowledge; it adjusts the propensity to express it."}]},{"t":"h2","id":"the-families-of-technique","runs":[{"text":"The families of technique"}]},{"t":"p","runs":[{"text":"Without supplying a manual, the categories are publicly documented and worth understanding structurally."}]},{"t":"p","runs":[{"text":"Reframing.","b":true},{"text":" Fiction, roleplay, a hypothetical, a historical account, a translation exercise, a security research framing. The request is transformed into a genre in which the refusal examples were sparse."}]},{"t":"p","runs":[{"text":"Encoding.","b":true},{"text":" Base64, unusual scripts, low-resource languages, leetspeak, split across turns. This works because the safety training was concentrated in a few languages and formats while the model’s capability generalises far beyond them: a genuine asymmetry between how the model was trained to behave and how broadly it can understand."}]},{"t":"p","runs":[{"text":"Context flooding.","b":true},{"text":" Long inputs, many examples, gradual escalation. Research on many-shot attacks has shown that filling a long context window with examples of a model complying with harmful requests increases the chance it complies with the next one, and that the effect gets stronger as context windows get longer, which is an uncomfortable trend."}]},{"t":"p","runs":[{"text":"Optimisation.","b":true},{"text":" Automated search for input strings that suppress refusal. Adversarial suffixes found against open models have been shown to transfer to closed ones, which tells you the vulnerability is at least partly a property of the training approach rather than of one model."}]},{"t":"h2","id":"what-follows-for-a-builder","runs":[{"text":"What follows for a builder"}]},{"t":"p","runs":[{"text":"The practical conclusion is not that safety training is useless. It substantially raises the effort required, which stops casual misuse, and casual misuse is most misuse."}]},{"t":"p","runs":[{"text":"The conclusion is that "},{"text":"you cannot use the model’s refusal as a security control.","b":true},{"text":" If your product must not do something, that must be enforced outside the model: in the permissions of the tools it can call, in the API keys it holds, in the database rows it can read, in an output filter. A model instructed not to reveal other customers’ records is a request. A model whose database query is scoped to one customer is a control."}]},{"t":"p","runs":[{"text":"This is the same lesson as the trifecta, arriving from a different direction: "},{"text":"put the boundary in the plumbing, not in the prompt.","b":true}]},{"t":"h2","id":"the-system-prompt-is-not-a-secret","runs":[{"text":"The system prompt is not a secret"}]},{"t":"p","runs":[{"text":"The instructions a product gives its model (its persona, its rules, sometimes its business logic) are recoverable. Users extract them routinely, and they end up published in collections."}]},{"t":"p","runs":[{"text":"So do not put anything in a system prompt you would mind being read: no API keys, no internal pricing rules, no unreleased product names, no exclusionary criteria you would not defend in public."}]},{"t":"h2","id":"and-for-a-user","runs":[{"text":"And for a user"}]},{"t":"p","runs":[{"text":"First, if a model gives you something after resistance, note that you have moved it away from its trained behaviour, which is also where its reliability is lowest. Jailbroken output tends to be worse output (more confabulation, less calibration) because you have deliberately taken the model somewhere unusual."}]},{"t":"p","runs":[{"text":"Second, the same techniques used to extract harmful content are used by attackers to get a "},{"text":"system","i":true},{"text":" to misbehave against you. Understanding that refusals are soft is useful defensively: any product whose safety story is “we told the model not to” has told you how much protection you have."}]}],"check":{"question":[{"text":"A company builds a customer service bot on a general model and instructs it in the system prompt never to reveal information about other customers. What is the flaw?"}],"options":[{"text":[{"text":"The instruction is too vague and should list the exact fields it must not reveal"}],"correct":false,"tempting":[{"text":"Precise wording makes the rule easier to follow, but it is still an instruction, not an access control."}]},{"text":[{"text":"Users could extract the system prompt and so expose the company’s internal rules"}],"correct":false,"tempting":[{"text":"True and worth avoiding, but the serious flaw is that other customers’ data is reachable at all."}]},{"text":[{"text":"General models do not suit this, and a fine-tuned one would follow the rule reliably"}],"correct":false,"tempting":[{"text":"Fine-tuning strengthens a behaviour without making it a guarantee, and the same kind of input can still move it."}]},{"text":[{"text":"Obeying it is a trained habit, not a control, so limit what data the bot can reach"}],"correct":true,"tempting":null}],"order":[1,0,3,2],"why":[{"text":"The fix is to scope retrieval to the current customer, so there is nothing else for a jailbreak to reveal."}]},"prev":{"slug":"when-the-assistant-can-act","title":"The three ingredients of a disaster","minutes":9},"next":{"slug":"poisoning-the-well","title":"Attacks on the model itself","minutes":9}}}