Abstract

What does an AI guardrail actually stop? The word covers four different mechanisms: safety training and system-prompt instructions inside the model, rule and pattern filters, separate classifier models that screen inputs and outputs, and controls outside the model on what an agent may do. In October 2025, Nasr, Carlini and colleagues bypassed all twelve jailbreak and prompt-injection defences they evaluated with adaptive attacks, mostly at success rates above 90%, although most had originally reported near-zero attack success. Other studies, under different conditions, found layers that held better. In Anthropic’s paid bounty against a prototype of its constitutional classifiers, the authors report no qualifying universal jailbreak of the classifiers; a separate public demo of an improved system produced one. In a Google CTF, no attempt against an agent behind a separate, tool-less filter leaked the full secret, although two extracted a single fact about it. Content filters can raise the cost of attacks and supply evidence for detection. Consequential actions need downstream enforcement, in code, against trusted identity, provenance and policy, with least privilege and, where the risk calls for it, human approval.

One word, four mechanisms

On 3 December 2026 Google’s Bug Hunters blog published the results of a capture-the-flag exercise run at DEF CON 34’s AI Village, at Google’s 0x0G event and with internal security teams. Participants sent 848 attack emails to an email assistant that could read a secret and send replies. The authors’ summary was that “system prompts are not a security boundary, but even lightweight, decoupled pre-execution guardrails dramatically raise the bar for attackers”.1 Both halves of that sentence use the word guardrail, and they mean different things. The first half is about instructions written into the model’s prompt. The second is about a separate model that inspects untrusted text before the agent sees it.

The word is used for at least four mechanisms.

  1. Behaviour trained into the model, and instructions in its prompt. Refusal training, preference optimisation, constitutional methods and instruction-hierarchy training change what the model tends to do. A system prompt that says “never reveal the secret” is a request to the same model.
  2. Rule and pattern filters. Keyword lists, regular expressions, PII detectors and topic restrictions run before or after the model.
  3. Classifier models on input and output. A second model, often small, labels a prompt or a response as safe or unsafe, or as an attempted injection. Llama Guard, Prompt Guard, Azure Prompt Shields and Anthropic’s constitutional classifiers are in this group.
  4. Controls outside the model on actions. Tool permissions, data-flow policies, capability systems and approval steps decide whether a proposed action happens, whatever text produced it.

Two questions separate these layers better than the product labels do. The first is how a verdict is produced: by an exact match (a word list or a regular expression), by a learned judgement (a trained model’s score), by a formal check (a schema or a logical rule), or by an authorisation decision against a policy. The second is how the verdict is enforced: whether it blocks, redacts, logs or merely annotates, and whether the model’s output can influence that step. Exact matches are deterministic but match representations rather than meaning. Learned judgements generalise but can be wrong in ways an attacker can search for. An authorisation check in code is not persuaded by text, but it is only as good as the identity, provenance and policy information it is given. Facts are as of 5 December 2026.

Prompt injection itself, the confused-deputy framing and the record of real incidents are covered in The confused deputy at scale.

Inside the model: training and the system prompt

The first layer is the model’s own disposition. Anthropic’s Constitutional AI, described by Bai and colleagues in December 2022, kept human feedback labels for helpfulness but replaced human labels for harmlessness with model judgements guided by “a list of rules or principles”: the model critiques and revises its own outputs, and a preference model trained on AI judgements supplies the reward signal for reinforcement learning (“RL from AI Feedback”).2 Methods of this kind shape a distribution of behaviour. None gives a guarantee about any particular input.

Instruction-hierarchy training targets prompt injection more directly. Wallace and colleagues at OpenAI argued in April 2024 that “one of the primary vulnerabilities” behind injections and jailbreaks is that models often treat system prompts as “the same priority as text from untrusted users and third parties”. They generated training data in which lower-priority instructions that conflict with higher ones are to be ignored, fine-tuned GPT-3.5 Turbo on it, and reported that defence against system-prompt extraction improved by 63%, and that jailbreak robustness, an attack type held out of training, rose by over 30%. They also reported “some regressions in ‘over-refusals’”: the trained model sometimes ignored or refused benign queries.3 These are improvements in measured rates on the authors’ evaluation sets. The adaptive-attack literature discussed below is mostly about what happens to such rates when the attacker optimises against the defence.

Google’s CTF measured system-prompt rules directly. The agent ran on Gemma 4 26B-A4B and had two tools, get_secret() and send_response(). Participants were told the architecture and could see the model’s reasoning traces, tool calls and outputs after every attempt. At Level 1, with no security rules in the prompt, 33 of 217 attempts leaked the secret (15.2%); the post describes the remaining 84.8% as the model refusing “out of the box”, although its table counts breaches rather than refusal responses. A negative rule in the system prompt was followed by a breach rate of 3.2% (7 of 222), and adding anti-override instructions by 2.1% (3 of 142).1 Each level drew its own pool of attempts, so these are observed rates for different attack sets, not a controlled comparison.

The authors call this “nearly 80% reduction” precisely what “fools developers during pre-launch testing”. Against attackers who kept trying, the rules failed in four ways. Plain-English prohibitions were read literally, so a rule about “the sender” did not cover a different recipient. Puzzle-like tasks such as decoding a cipher absorbed the model’s effort, after which it carried out the decoded instruction without rechecking its rules. Text formatted to look like the harness’s own control annotations was treated as authoritative. And once the secret was in context, attackers extracted facts about it through yes-or-no questions, which the model did not regard as revealing anything. Nine of the 45 breaches across the exercise (20.0%) used disguised output or this kind of side-channel oracle.1 In each case the rule and the attack were both text in one context window, interpreted by one model.

Rules, patterns and the managed products

The second layer is ordinary code that looks for forbidden strings or patterns. A short word list or a simple regular expression is quick to run and easy to read, although large rule sets and complex expressions lose both properties. The weakness is structural. A pattern matches a representation, and the model reads meaning. Anything that changes the representation without changing the meaning, such as an encoding, a synonym, a translation or a split across turns, can pass a pattern filter and still be understood by the model downstream.

Commercial “guardrail” products bundle this layer with others, and their own documentation is the best guide to what they check.

Amazon Bedrock Guardrails offers content filters for the categories Hate, Insults, Sexual, Violence, Misconduct and Prompt Attack, each with a configurable strength; denied topics; word filters that use “case-insensitive whole-word and whole-phrase matching”; sensitive-information filters that combine “probabilistic detection” of entities such as social security numbers with custom regular expressions; contextual grounding checks for retrieval answers; and Automated Reasoning checks that validate responses against a set of logical rules. A guardrail can be attached to a model invocation or called on its own through the ApplyGuardrail API.4 The prompt-attack filter covers jailbreaks, prompt injection and (in the Standard tier only) prompt leakage. Two details matter for anyone deploying it in an agent. When calling InvokeModel or InvokeModelWithResponseStream, the developer must wrap user input in guardrail tags: “If there are no tags, prompt attacks for those use cases will not be filtered.” And “the prompt attack filter does not evaluate tool results”, nor tool definitions.5 Content an agent fetches through tools, one route for indirect injection, is therefore outside that particular filter unless the developer passes it through some other check.

Azure AI Content Safety Prompt Shields distinguishes user prompt attacks from document attacks, meaning instructions hidden in documents, emails, web pages or tool results. Microsoft’s documentation is explicit about scope. Prompt Shields “don’t determine whether content is harmful, factually accurate, grounded in source material, compliant with policy, or aligned with the application’s task”. A negative result “doesn’t establish that the request is benign”. Document attack detection is “off by default” in Foundry and must be enabled. In the standalone API, “the API doesn’t itself block or route content”; the application decides what to do. The models are “primarily trained and evaluated on English content”, and developers are told not to send their own system prompt to the shield because its rules and examples look like attacks and cause false positives.6

Google Model Armor screens prompts and responses for prompt injection and jailbreaks, responsible-AI categories, child sexual abuse material, sensitive data and malicious URLs. Templates set confidence thresholds for the filters that support them, including prompt injection and jailbreak detection and CSAM. The lowest threshold, “Low and above”, flags content with a low, medium or high likelihood of violation; Google describes it as “potentially suitable for high-stakes categories like prompt injection and jailbreak detection, where preventing false negatives is critical, even at the risk of accepting false positives”, and tells administrators to “always test your filter configurations against a representative dataset”.7

NVIDIA NeMo Guardrails is an open-source library rather than a hosted service. The 2023 paper describing it defined rails as “user-defined, independent of the underlying LLM, and interpretable”, in contrast with behaviour embedded at training time.8 The current documentation describes rails configured in YAML and in a dialogue language called Colang, with jailbreak detection by self-checking with the LLM, by heuristics, or by a dedicated NemoGuard model, and with tool-call checks that “validate declared tool names, argument schemas, and configured per-tool rules before execution”.9 Guardrails AI, another open-source framework, runs “Input/Output Guards” built from validators that “detect, quantify and mitigate” specific risks, and also enforces structured output formats.10

These products mix verdict types. Word filters and regular expressions are exact matches; prompt-attack and content filters are learned judgements with customer-set thresholds; Bedrock’s Automated Reasoning checks and NeMo’s tool-schema and per-tool rules are formal checks. What each one evaluates depends on what the integration sends it and on where its verdict is enforced. A filter that never sees tool output cannot catch an injection in tool output, and a filter tuned mainly on English cannot be assumed to work in other languages. Neither limitation is hidden in the documentation, but both are easy to miss when a product page says it “blocks prompt injection”.

Classifiers on the way in and out

Llama Guard and the taxonomy problem

One early and widely cited example is Llama Guard, released by Inan and colleagues at Meta in December 2023: a Llama 2 7B model instruction-tuned to classify both prompts and responses against a written safety taxonomy. The first version had six categories (violence and hate, sexual content, criminal planning, guns and illegal weapons, regulated substances, suicide and self-harm) and was trained on 13,997 annotated prompts and responses. Because the taxonomy is given to the model in its instructions, users can substitute their own categories zero-shot or few-shot. Measured by area under the precision-recall curve (PR-AUC), it scored 0.945 for prompt classification and 0.953 for response classification on Meta’s own test set, 0.847 on the OpenAI Moderation Evaluation set and 0.626 on ToxicChat, against 0.764, 0.856 and 0.588 for the OpenAI Moderation API.11

Those numbers describe classification performance on labelled datasets of ordinary harmful content, not on inputs crafted to evade the classifier. The paper’s limitations section says the training data is in English, that Meta does not “claim that we have perfect coverage of our policy”, and that Llama Guard can be prompted as a chat model rather than used as a classifier.11 A later model, Llama Guard 4 12B, uses the MLCommons hazard taxonomy with fourteen categories, including “Code Interpreter Abuse” for tool calls, and its model card states that “as an LLM, Llama Guard 4 may be susceptible to adversarial attacks or prompt injection attacks that could bypass or alter its intended use”.12 A classifier built from a language model inherits the language model’s attack surface.

Prompt-injection detectors

A second family of classifiers looks for the shape of an injection rather than for harmful content. Meta’s Llama Prompt Guard 2 is a small encoder model (86 million or 22 million parameters) that labels a prompt “malicious” if it “explicitly attempts to override prior instructions”, “regardless of whether the prompt is potentially harmful or the attack is likely to succeed”. The card says both models “focus on detecting explicit, known attack patterns”. In Meta’s direct jailbreak detection evaluation, on a private benchmark built from datasets distinct from the training data to test unseen attack types, recall at a 1% false-positive rate on English prompts rose from 21.2% for Prompt Guard 1 to 97.5% for the 86M model; these recall figures do not cover indirect injection or other languages. Meta attributes the gain to a loss function under which “prompts similar to known injection payloads” reliably receive the highest scores. In a separate AgentDojo evaluation, reported as “APR @ 3% utility reduction” (the card does not define the abbreviation), the 86M model scored 81.2% against 22.2% for a ProtectAI detector. The card lists “Vulnerability to Adaptive Attacks” first among its limitations: “adversaries may develop sophisticated attacks specifically to bypass detection”.13

Constitutional classifiers

Anthropic has published several rounds of adversarial testing of its classifier layer. Sharma and colleagues’ paper on constitutional classifiers (January 2025) describes input and output classifiers trained on synthetic data generated from a natural-language constitution that lists permitted and restricted content. The output classifier works on a stream: it assesses the output “at each token”, so generation can be halted mid-answer.14 The target was universal jailbreaks, strategies that reliably extract detailed answers to many dangerous chemical, biological, radiological or nuclear questions, which the authors worry “could allow non-experts to execute complex scientific processes that they otherwise could not have”.14

The evidence comes from three separate tests, which are easy to run together.

The bug bounty, against a prototype. From 800 applicants Anthropic invited 405 participants through HackerOne and offered up to $15,000 for universal jailbreaks against a prototype guarding Claude 3.5 Sonnet, with ten target questions. Red teamers spent an estimated 4,720 hours (90% interval 3,242 to 7,417), and the abstract reports that “no red teamer found a universal jailbreak that could extract information from an early classifier-guarded LLM at a similar level of detail to an unguarded model across most target queries”. Under the stricter criterion, “no red teamer answered more than six of the ten questions”. One report initially appeared to be a universal jailbreak; the authors traced it to an implementation error in the deployment, which let participants receive up to 128 tokens after the output classifier had flagged harmful content, and note the need to red-team “both classifiers and their deployment infrastructure”.14 The prototype prioritised robustness, “which led to a substantial false-positive rate, with approximately 44% of Claude.ai traffic being refused”; the authors call these refusal rates “impractically high”. They also report that red teamers “primarily exploited rubric grading rather than circumventing our defenses”.14

Automated evaluation, of an improved system. Classifiers fine-tuned from Claude 3.5 Haiku, guarding Claude 3.5 Sonnet against chemical-weapons content, reduced the jailbreak success rate in automated evaluations “from 86% against a HHH model” (one trained to be helpful, honest and harmless, with no classifiers) “to less than 5%”. They increased refusals by 0.38 percentage points on a random sample of 5,000 Claude.ai conversations and added 23.7% inference overhead.14 These figures belong to a different system and a different test from the bounty.

A public demo. Anthropic put a classifier-guarded Claude 3.5 Sonnet in front of the public from 3 to 10 February 2025, with eight chemical-weapons questions. Counting only participants who passed at least one question, 339 people made more than 300,000 chat interactions over about 3,700 collective hours; across all users, 13,960 people made more than 800,000 chats. The system “resisted jailbreaking attempts for five of the planned seven days”. On the sixth and seventh days four participants cleared all eight levels; Anthropic judged one of them to have found a universal jailbreak and another a borderline-universal one, and said it would pay $55,000 in prizes.15

In January 2026 Anthropic described a successor, Constitutional Classifiers++. It names the two attack families that had remained effective: reconstruction attacks, which split harmful content into benign-looking fragments and reassemble them, and output obfuscation, which disguises harmful outputs so that a classifier looking only at the output sees something innocuous. Some jailbreaks degraded the model’s own capability, with performance on the GPQA Diamond science benchmark falling “from 74% to as low as 32%”. The new design replaces separate input and output classifiers with an “exchange” classifier that judges outputs in the context of their inputs, which “cut successful jailbreaking attempts by more than half” in human red teaming at a 50% increase in compute, and adds a cascade in which a cheap linear probe on the model’s internal activations screens traffic before a more expensive classifier. Anthropic reports a refusal rate of 0.05% on harmless queries over one month of Claude Sonnet 4.5 traffic, an estimated overhead of roughly 1% “if applied to Claude Opus 4.0 traffic”, and, in over 1,700 hours of red teaming across 198,000 attempts, one high-risk vulnerability and “no universal jailbreak yet discovered”.16

These figures come from a large, incentivised adversarial test, and they have boundaries. The threat model is universal jailbreaks in specified CBRN domains, not every harmful output and not prompt injection against an agent. The bounty and the demo each ran for a bounded period with fixed prizes, and the figures are reported by the vendor. The record is three findings, not one: no qualifying universal jailbreak of the classifiers in the prototype bounty (with one apparent success traced to a deployment flaw), one universal jailbreak in the public demo of the improved system, and a successor designed around the attacks that had worked.

How guardrails are scored

In the evaluations cited here, the headline number is usually an attack success rate (ASR): the fraction of attempts in which an attack achieves its goal against the defended system. A useful ASR needs four things specified: which attacks, which goals, who judges success, and at what cost to legitimate use.

Which attacks. A static benchmark is a fixed set of prompts or attack templates. HarmBench (February 2024) defines 510 harmful behaviours and compared 18 red-teaming methods across 33 target models and defences. JailbreakBench (March 2024) maintains 100 behaviours, a repository of attack prompts and a leaderboard.1718 Both exist because earlier papers were hard to compare. HarmBench found that the number of tokens the target model was allowed to generate could change ASR measured by substring matching so much that cross-paper comparisons were “effectively meaningless”, and JailbreakBench’s authors note that earlier works “compute costs and success rates in incomparable ways”.1718 HarmBench’s comparison also found that “no current attack or defense is uniformly effective”, and, for non-copyright behaviours, no correlation between robustness and model size within the model families it tested; for copyright behaviours it observed rising ASR at the largest sizes, which the authors attribute to smaller models being unable to carry out those behaviours.17

Who judges. In many of these evaluations, success is decided by another model. StrongREJECT (February 2024) found that existing automated evaluators “significantly overstate jailbreak effectiveness” relative to human judgement, in part because jailbreaks that get past safety training often reduce the quality of the answer.19 Nasr and colleagues list unreliable auto-raters among their lessons: the classifiers used to score attacks are themselves models, “susceptible to adversarial examples and reward-hacking behaviors”.20 A guardrail evaluation in which one classifier grades whether another was evaded carries two models’ error rates.

Agentic settings. AgentDojo (June 2024) measures prompt injection against tool-using agents with 97 user tasks and 629 security test cases in email, banking, travel and workspace environments.21 Its GPT-4o defence comparison (Table 5) shows why utility belongs next to ASR. With no defence, targeted attacks succeeded 57.69% of the time and the agent completed 69.0% of benign tasks. A BERT-based prompt-injection detector brought targeted ASR down to 7.95% but cut benign utility to 41.49%; the authors judged that it “has too many false positives”. A simple tool filter, in which the model chooses the tools it needs before seeing any untrusted data, brought targeted ASR to 6.84% while benign utility stayed at 73.13%.21

Cost to legitimate use. Over-refusal has its own benchmarks. XSTest (August 2023) contains 250 safe prompts that well-calibrated models should answer and a contrasting set of 200 unsafe prompts; OR-Bench (May 2024) contains 80,000 prompts likely to be wrongly refused, with a hard subset of about 1,000.2223 For a deployed guardrail, though, the false-positive rate that matters is the one on the deployer’s own traffic, which is why Anthropic measured refusals on sampled Claude.ai conversations and why Microsoft and Google tell customers to test on representative data.1467

An ASR tells you how often a specified attack succeeded against a specified configuration, as judged by a specified evaluator. It does not tell you how often a motivated attacker will succeed, because a motivated attacker does not use the benchmark’s attacks.

Four studies, four sets of conditions

These four studies measure different things, and their numbers cannot be ranked against one another.

StudyGoalUnit of successAttacker accessUtility or false-positive measureScope
Google CTF (2026)1Compare prompt rules with a separate filterSecret leaked by email (full flag or partial fact)Open-box: architecture, reasoning traces, tool calls and outputs visibleNone for benign emailOne email agent, five levels, human attackers; Levels 4 and 5 counted in a post-event re-run
Nasr et al. (2025)20Test published defences against adaptive attacksAttack goal reached on each defence’s benchmarkWhite-box or black-box per defence; detector scores fed back in the search attack; human competitionBenign utility on AgentDojo (Table 7)Twelve defences in four families, each in its tested setup
Anthropic (2025, 2026)141516Prevent universal CBRN jailbreaksDetailed answers to a fixed question setPaid human red teams through the product; automated attack setsRefusals on sampled production trafficOne vendor’s classifiers in specified domains
AgentDojo (2024)21Benchmark injection against agentsAttacker’s injected task executedFixed attack templatesBenign task completion with and without attack97 tasks, 629 security cases

The attacker moves second

The lesson from image classifiers

Adversarial machine learning learned this in the image domain. In 2018 Athalye, Carlini and Wagner examined nine defences accepted at ICLR that claimed white-box robustness and found that seven relied on “obfuscated gradients”, a side effect that frustrated the standard attacks without making the model robust. Their adapted attacks circumvented six completely and one partially.24 In 2020 Tramèr, Carlini, Brendel and Madry showed that thirteen further defences could be circumvented even though their authors had attempted adaptive evaluations, and set out a method for designing attacks against a specific defence.25 The history is covered in Small changes, wrong answers. NIST’s adversarial machine learning taxonomy (March 2025) states that mitigations need to be “evaluated against strong adaptive attacks”.26

For language models, Jain and colleagues found in 2023 that perplexity filters and paraphrasing gave some protection against the optimisation attacks of the time, and attributed this partly to “the weakness of existing discrete optimizers for text, combined with the relatively high costs of optimization”.27 Zou and colleagues’ GCG attack had already shown in July 2023 that optimised suffixes could transfer from open models to commercial chat models.28 The open question was whether defences evaluated against weak or fixed attacks would survive stronger ones.

Twelve defences

Nasr, Carlini, Sitawarin, Schulhoff, Hayes, Ilie and colleagues addressed it in October 2025. Their paper argues that defences “are typically evaluated either against a static set of harmful attack strings, or against computationally weak optimization methods that were not designed with the defense in mind”.20 They selected twelve recent defences across four approaches and attacked each with methods tuned to it: gradient-based optimisation where they had white-box access, reinforcement learning in which an attacker model learns from the target’s responses, a search procedure in which an LLM mutates candidate attacks and keeps the best-scoring ones, and a human red-teaming competition with more than 500 participants and $20,000 in prizes. They assumed attackers with large compute budgets. Their headline is that they bypassed all twelve, “with attack success rate above 90% for most”, whereas “the majority of defenses originally reported near-zero attack success rates”.20 The figures below separate numbers the original defence papers reported from the authors’ own matched runs.

  • Prompting defences. For Spotlighting, which marks untrusted text, and Prompt Sandwiching, which repeats the user’s instruction after untrusted input, Table 7 pairs Gemini 2.5 Pro with a static ASR of 28% and a search-attack ASR of 99% for Spotlighting, and 21% and 95% for Prompt Sandwiching; the paper’s prose notes static ASRs as low as 1% in other configurations (with GPT-5 Mini, Table 7 shows 0% static). Human participants produced 265 successful attacks on Spotlighting and 178 on Prompt Sandwiching. Against RPO, an optimised defensive prompt for jailbreaks, the RL attack reached 98% and the gradient attack 96% on HarmBench.20
  • Training against known attacks. Circuit Breakers, a jailbreak defence, fell to the RL attack at 100% on HarmBench. The RL attack against StruQ “succeeds in every case we tested”. MetaSecAlign’s own paper reported 2% ASR on static AgentDojo; in the authors’ matched run, its static baseline was 5% and the search attack reached 96% (Table 7). The authors draw the analogy to adversarial training on images: training against fixed or weak perturbations “does not generalize”.20
  • Filter models. Protect AI’s detector, Meta’s PromptGuard, PIGuard and Google’s Model Armor were placed in front of the agent, with the detector’s confidence score and verdict fed back to the search attack. With Gemini 2.5 Pro as the base model, Table 7 gives search-attack ASRs of 90% for Protect AI, 94% for PromptGuard, 90% for Model Armor and 71% for PIGuard. Human red teamers produced 123 successful injections under the strictest setting.20
  • Secret-knowledge defences. Data Sentinel and MELON try to detect injection using information the attacker lacks, such as a hidden canary task or a masked re-execution of the agent. The RL attack redirected Data Sentinel’s model to the attacker’s task with over 80% accuracy. Against MELON on Llama 3.3 70B, the search attack reached 76% without knowledge of the defence and 95% when simulated with full knowledge.20

Several observations bear on how guardrails are bought. Many successful injections against the detectors “are not obviously harmful or show clear intention to overwrite the user instruction”, so a detector cannot flag them out of context without raising its false-positive rate. In the authors’ Gemini 2.5 Pro runs on AgentDojo, benign utility fell from 74.23% with no defence to 39.18% with the Protect AI or PIGuard detector in place (Table 7).20 On stacking, they write that “simply adding more filters or stacking additional detectors does not resolve the underlying robustness problem”. They do not dismiss filters: detectors “are relatively easy to deploy and can still provide practical value by blocking some unsophisticated or opportunistic attacks, making them a useful–but limited–component of a broader defense strategy.”20

Two methodological points complete the picture. In Appendix F, across the 29 scenarios where the human challenge overlapped with the search attack, one search run per scenario succeeded in 69%, while humans succeeded in every scenario, counting a scenario as broken if any participant succeeded. And the authors excluded “plan-then-execute” designs such as a tool filter or CaMeL, “because the attack is guaranteed to fail in most of the selected scenarios as the planning phase is done independently of the triggers”. They add that such defences “are, however, not a panacea”, since they fit a limited set of tasks and reduce utility.20 The paper’s results therefore apply to the twelve defences in their tested setups. Within that set, the defences that fell all relied on a model or a prompt to judge or resist text.

The paper’s summary of what an evaluation can show: “empirical evaluations cannot prove that a defense is robust; all it can (and should) do is fail to prove that the defense is broken!”20

Character tricks and transferred rankings

Simpler evasion also works against several deployed detectors. Hackett and colleagues at Mindgard and Lancaster University (April 2025) tested six protection systems: Azure Prompt Shield, Meta’s Prompt Guard, two Protect AI detectors, NVIDIA’s NeMo Guard jailbreak detector and Vijil’s injection classifier. They applied two kinds of evasion: character-level transformations that use Unicode and similar tricks, and word-level adversarial perturbations borrowed from the text-classification literature.29 Their measure is whether the detector missed the attack. The most effective character technique evaded detection in 100% of their prompt-injection and jailbreak samples. Averaged across character techniques, Azure Prompt Shield missed 71.98% of injections and 60.15% of jailbreaks, and Meta Prompt Guard 70.44% and 73.08%. Results under the word-level attacks varied widely; Prompt Guard was the most robust against injection evasion, at 2.76%. Word-importance rankings computed on an open white-box model improved attacks on the black-box Azure service.29

The mechanism they identify is general. A guardrail model “can be trained on entirely different datasets than the underlying LLM”, so it may fail to read transformations that the protected model can still interpret, and “inputs that bypass the guardrails may still be properly interpreted by the LLM”.29 A detector miss is not the same as a successful end-to-end attack, which also depends on the downstream model acting on the text; but the guardrail and the model are two readers of the same input, and an attacker gains whenever the cheaper one misreads it. Meta’s Prompt Guard 2 card describes tokenisation changes to resist “whitespace manipulations and fragmented tokens”, which addresses part of this gap for one product.13 The researchers report disclosing to all parties between February 2024 and April 2025.29

Many turns and many samples

A check that judges one message at a time can be weakened by spreading intent across several. Russinovich, Salem and Eldan’s Crescendo attack (April 2024) starts with a general, harmless question and escalates gradually, referring back to the model’s own earlier answers. Because individual turns look benign, the authors argue it “poses a significantly greater challenge for detection and mitigation” than single-shot jailbreaks. Their automated version reached an average ASR of 56.2% against GPT-4 and 82.6% against Gemini Pro on 50 AdvBench tasks, succeeding at least once on 49 of 50 tasks against GPT-4 and on all 50 against Gemini Pro. In their manual tests, two successes against the Gemini web service triggered a post-output filter, which the authors confirmed by comparison with the Gemini Pro API.30 They suggest input and output content filters as a mitigation and qualify it at once: “it can be difficult to comprehensively filter out every potential issue”.30

Repetition is another dimension. Hughes and colleagues’ Best-of-N jailbreaking (December 2024) resamples random augmentations of a prompt, such as shuffled characters or altered capitalisation, until one succeeds. With 10,000 samples it reached 89% on GPT-4o and 78% on Claude 3.5 Sonnet, circumvented the open-source Circuit Breakers defence, and its success rose with the number of samples following power-law-like behaviour across many orders of magnitude.31 For a guardrail, the implication is that a per-attempt miss rate understates exposure when an attacker can retry cheaply; whether repeated attempts are noticed and limited becomes part of the defence.

Prompt rules against a separate filter

Google’s CTF shows what a filter achieved against human attackers working against a deployed agent. Levels 4 and 5 put a separate, tool-less LLM in front of the email agent. The filter read the raw email and forwarded it only if its answer ended with a safe verdict. Level 5 used a more defensively worded filter prompt and replaced the fixed word “SAFE” with a random per-request token, so that attackers could not simply write the verdict into their email.1 Attempts at Levels 4 and 5 were tested against the released filter in a re-run after the events.

Of 260 attempts against Level 4, the filter stopped 126 (48.5%) before the agent ran: 106 received a malicious verdict, and 20 exhausted the filter’s 1,024-token reasoning budget and were blocked by default. The 134 that passed were reconnaissance or business pretexts without explicit instructions for the AI; the agent called get_secret() for five of them and never sent the flag. Two Level 4 attempts extracted a single yes-or-no fact about the secret. Across Levels 4 and 5, “none of the 267 attempts were successful in leaking the flag”.1 These counts come from different attempt pools from the earlier levels. The post’s matched comparison is a separate replay: the 464 distinct emails written for Levels 1 to 3, of which 34 had leaked the full flag at their original level, were stopped 97.0% of the time by the Level 4 filter and 95.9% by Level 5, and none of them got the agent to call the secret tool.1

The authors’ explanation is architectural. The filter has no tools and no competing task, so “its entire attention budget is dedicated to a single binary question”. And an attacker faces what they call a “dual-constraint dilemma”: one email must look benign to the filter and be forceful enough to override the agent. In practice, payloads overt enough to hijack the agent were caught by the filter, and the subtler ones that passed lacked the leverage to make the agent leak.1

The post also lists what the exercise did not show. The CTF “only measured how well the filter blocked adversarial inputs, not how often it would falsely block normal email”; failing closed when the filter exhausts its reasoning budget has “a real false-positive and usability tradeoff”. The random token “does not eliminate prompt injection against the filter itself”, since a persuaded filter can still choose the safe branch. Participants spent nearly all their time on Level 4, so Level 5 saw only seven attempts, “too small to measure a gain over Level 4”, and because Level 5 also changed the filter prompt, those attempts could not isolate the token’s effect in any case. The authors conclude that “no probabilistic filter is a silver bullet, and strong results in a conference CTF do not mean LLM classifiers are unbreakable”, and that “the strongest guarantees live in deterministic code outside the LLM”.1

The CTF and the Nasr paper differ in design rather than contradicting each other. CTF participants saw the filter’s reasoning and the agent’s traces and wrote emails by hand against one scenario. In the Nasr paper, an automated search ran up to 800 queries per scenario with the detector’s confidence score fed back as an optimisation signal, alongside a separate human competition. The two results measure similar components under different tasks, feedback channels and budgets, and neither supports a single number for how robust a filter is.

Controls outside the model

The fourth layer does not try to recognise attacks. It limits what a successful attack can achieve.

Simon Willison’s dual-LLM pattern (April 2023) separates a Privileged LLM, which receives instructions only from the trusted user and may call tools, from a Quarantined LLM, which handles untrusted content, has no tools and “is expected to have the potential to go rogue at any moment”. A Controller, “regular software, not a language model”, passes references to tainted content between them without letting the quarantined model’s free text reach the privileged one.32 Debenedetti and colleagues’ CaMeL (March 2025) develops the idea. A privileged model writes a program from the user’s trusted request, so that untrusted data “can never impact the program flow”; a quarantined model extracts values from untrusted data; an interpreter tracks where every value came from and enforces security policies at each tool call, using capabilities attached to data. In the paper’s AgentDojo utility comparison with o3 (high reasoning effort) as the backbone, CaMeL completed 77.3% of tasks against 84.5% with native tool calling (Table 2); the abstract’s description of this as solving tasks “with provable security” holds within the policies supplied and the paper’s threat model. In a separate cost measurement, for the median task, under attack with Claude 3.5 Sonnet, it used about 2.82 times the input tokens and 2.73 times the output tokens of native tool calling, counted with a GPT-4o tokeniser as a proxy.33

CaMeL’s authors are as specific about limits as about guarantees. It does not defend against “text-to-text attacks which have no consequences on the data flow”, such as a falsified email summary or injection-induced phishing shown to the user. Policies must be written and maintained, and in a real deployment a policy violation would prompt the user for confirmation, which brings the problems of approval fatigue. Side channels can leak information, for example one bit at a time through whether an exception is raised. Their own answer to whether prompt injection is solved is “No”.33

Simpler versions of the idea also do well in measurement. In AgentDojo’s GPT-4o defence comparison, the tool filter, which commits to a set of tools before reading untrusted data, had the lowest targeted ASR. Its authors note that it fails when the needed tools cannot be planned in advance, or when the tools the task needs are also enough for the attack, which was true in 17% of their test cases.21 Google’s CTF post recommends “contextual tool scoping”, so that high-privilege tools are unavailable on turns triggered by untrusted input, and a policy engine that tracks session state; in the CTF scenario, a rule that send_response() can never be called after get_secret() would make both verbatim leaks and yes-or-no oracles “much harder to pull off”.1 OWASP’s 2025 entry on excessive agency states the principle: “Implement authorization in downstream systems rather than relying on an LLM to decide if an action is allowed or not.”34

These controls are not exposed to the filter-evasion attacks above, because they do not depend on recognising the attack. They have their own failure modes: a wrong policy, a mislabelled data source, a side channel, a tool that is itself sufficient for the attack, or an approval step that people click through. How to build them, including sandboxing, scoped credentials, delegation and the approval step, is the subject of Containing the agent, On whose authority? and Approve, approve, approve.

When the guardrail is the attack surface

A guardrail is software, and its own bugs count. In April 2026 X41 D-Sec disclosed that LiteLLM, an open-source proxy that gives a single OpenAI-compatible interface to many model providers, exposed an endpoint, /guardrails/test_custom_code, that let authenticated callers submit Python code to test a custom guardrail. The code ran in a restricted environment that used “regex-based source code filtering” to block dangerous operations. X41 showed that the filter could be bypassed, giving arbitrary command execution “as the user the LiteLLM process runs as (root in the default Docker image)”. X41 identified the issue on 13 February 2026 and published on 8 April 2026, after the coordinated embargo expired without a vendor patch.35

The vulnerability is CVE-2026-40217. The NVD record describes it as allowing “remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI”, lists affected versions from 1.81.8 up to but excluding 1.83.10, and shows a CVSS 3.1 score of 8.8, with low privileges required, supplied by the CVE program’s record rather than scored by NVD itself. CISA added it to the Known Exploited Vulnerabilities catalogue on 18 November 2026, with a federal remediation date of 2 December 2026.36 LiteLLM’s advisory calls the old environment a “hand-rolled sandbox” and says that “reaching the endpoint requires a proxy-admin credential in default configurations”. Its text says the fix, which replaced the sandbox with RestrictedPython, is in 1.83.11, while its version metadata lists 1.83.10 as patched; upgrading to 1.83.11 or later satisfies both.37 Zenity Labs reported that its honeypot sensors recorded 569 POST requests to the endpoint between 15 April and 24 May 2026, carrying payloads from capability probes to exploit attempts; the requests used 47 distinct guessed default keys, and 64 carried an empty authorisation header.38 Honeypot traffic shows attempts, not successful compromises.

The affected component was not a classifier that misjudged a prompt. It was administrative machinery for writing guardrails, protected by a pattern filter over source code, the same approach that fails against prompts. A guardrail product adds code, endpoints, credentials and often a privileged position in the request path, and belongs in the threat model like any other gateway.

Where experts disagree

How much weight should a filter carry? Nasr and colleagues show every filter they tested falling to adaptive attacks and conclude that detectors are “useful–but limited”, with value against “unsophisticated or opportunistic attacks”.20 In Google’s open-box CTF, no attempt against the two-stage system (filter plus agent) leaked the full flag; some emails passed the filter and the agent still withheld the flag. The authors warn against reading that as unbreakability.1 Anthropic reports no universal jailbreak in the red teaming of its successor system, within its CBRN threat model.16 The three findings come from different threat models and designs; taken together, in this article’s reading, they argue against treating a filter as the primary defence against a capable, persistent adversary.

Does stacking help? NIST notes that detection systems “may provide supplementary assurance through a defense-in-depth philosophy”, but “may have correlated failures to the main models that they are monitoring”; correlated failures reduce what an extra layer adds without removing it entirely.26 In Nasr’s setting, stacking the detectors they tested did not resolve the robustness problem against their adaptive attacks.20 In Anthropic’s setting, its internal probes appear “complementary” to its external classifiers, seeing “things the external classifier can’t, and vice versa”.16 The two observations concern different components and threat models and do not contradict each other. Where layers share failures, each adds less assurance, so the combined system has to be measured as a whole.

Is training the model enough? Instruction-hierarchy training and constitutional methods improve measured robustness, and the CTF’s base model resisted most attempts unaided.31 But the training-based defences in the Nasr study were broken by adaptive attacks.20 OWASP states that “it is unclear if there are fool-proof methods of prevention for prompt injection”, and NIST says designers may build systems “with the assumption that prompt injection attacks are possible if a model is exposed to untrusted input sources”.3926

Do architectural defences generalise? CaMeL-style designs give guarantees for the flows they cover and cost utility, tokens and policy-writing effort, and they leave text-only manipulation untouched.33 Nasr and colleagues skipped them because their attacks could not succeed in most selected scenarios, while noting that they apply to a limited set of tasks.20 As a synthesis of those two sources: the more an agent’s next action must depend on what it reads, the less of its work a plan-then-execute design can cover.

What to check before buying or building a guardrail

  1. What is the threat model? Harmful content produced for a user who asks for it, injection by a third party into an agent, data leakage, or policy compliance? Constitutional classifiers target universal jailbreaks in specific domains; Prompt Guard flags explicit attempts to override instructions regardless of harm; Prompt Shields explicitly do not judge harm or accuracy.14136
  2. What does it see? User input only, or also retrieved documents, tool results, tool definitions and the model’s output? Bedrock’s prompt-attack filter does not evaluate tool results; Azure’s document-attack detection is off by default in Foundry.56 Consider whether detection needs conversation context: Crescendo shows how intent spread across turns can be missed by a check that sees each message in isolation.30
  3. Against what was it evaluated? A static benchmark, an automated adaptive attack with the detector’s scores visible, or a sustained human red team with knowledge of the defence? Ask for the attacker’s budget and access, and who judged success. Nasr and colleagues found that defences reporting near-zero ASR on public benchmarks “are often among the easiest to break once novel attacks are attempted”.20
  4. What is its false-positive rate on your traffic? Measure it in your languages, on your documents, and with your system prompt kept out of the input, as Microsoft advises.6 Check what happens when the guardrail cannot reach a verdict: the CTF filter blocked 20 emails that exhausted its 1,024-token reasoning budget. The post did not measure how those emails would have fared downstream, and failing closed this way may cost false blocks and availability on benign traffic.1
  5. What does it do with retries? Per-attempt miss rates understate exposure against an attacker who can resample many times.31 Ask whether verdicts can feed rate limits and account-level alerting.
  6. Where does it sit relative to tools? A filter in front of the model lowers the chance that the model proposes a harmful tool call; it does not decide whether the call executes. That decision should be made by code that checks the user’s permissions and the data’s provenance.341
  7. What does it log? Enough to correlate each decision with what followed: the policy and version applied, the verdict and score, a request identifier, and the tool calls that ran afterwards. Inspected prompts and documents may themselves be sensitive, so store content only where needed, with redaction, restricted access and a retention limit.
  8. What new attack surface does it add? Administrative endpoints, custom-code features, credentials and its position in the request path. The LiteLLM vulnerability was in a feature for testing guardrails.3536
  9. Is the classifier itself injectable? If it is an LLM, it can be prompted. Llama Guard 4’s model card says so; Google’s CTF hardened the verdict channel with a per-request token and still noted that a persuaded filter can pass an attack.121

Conclusion

The word guardrail covers four layers: the model’s own training and prompt, rule filters, classifier models, and controls on actions. The first three judge content, by exact matching, a learned model or a formal check, and their effect depends on whatever code consumes the verdict. On the evidence reviewed here, content filters can raise the cost of attacks. In Google’s CTF, no attempt against the agent behind a tool-less filter leaked the full secret, although two extracted a single fact about it. In Anthropic’s prototype bounty the authors report no qualifying universal jailbreak of the classifiers, and a later public demo of an improved system produced one.11415 Nasr and colleagues credit detectors with blocking “some unsophisticated or opportunistic attacks”.20 Verdicts and scores, once logged, can support detection, incident response and evidence that a content policy is applied. Against attackers who adapted with optimisation, score feedback or sustained human effort, all twelve defences Nasr and colleagues evaluated were bypassed in their tested setups, mostly at rates above 90%.20

The fourth layer carries what announcements tend to attribute to content filters: authorisation on every consequential action, checked by downstream systems against trusted identity, provenance and policy; least privilege for tools, including withholding sensitive tools on turns driven by untrusted input; data-flow rules that stop private data reaching untrusted destinations; human approval for steps whose risk and authorisation model call for it, designed so that people can judge what they approve; and treating every model output, including a guardrail’s verdict, as untrusted input to deterministic code.34331 A content filter is worth having as one layer, provided it is not the component that decides what the agent is allowed to do.

Footnotes

  1. Google Bug Hunters blog, “Defending the Confused Deputy: Why AI Agents Need More Than Just System-Prompt Guardrails”, 3 December 2026. https://bughunters.google.com/blog/defending-the-confused-deputy (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17
  2. Bai, Kadavath, Kundu, Askell et al., “Constitutional AI: Harmlessness from AI Feedback”, arXiv:2212.08073, 15 December 2022. https://arxiv.org/abs/2212.08073 (opens in a new tab) ↩
  3. Wallace, Xiao, Leike, Weng, Heidecke and Beutel, “The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions”, arXiv:2404.13208, 19 April 2024. https://arxiv.org/abs/2404.13208 (opens in a new tab) ↩1 ↩2
  4. Amazon Web Services, “Detect and filter harmful content by using Amazon Bedrock Guardrails”, Amazon Bedrock User Guide, accessed 5 December 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html (opens in a new tab) ↩
  5. Amazon Web Services, “Detect prompt attacks with Amazon Bedrock Guardrails”, Amazon Bedrock User Guide, accessed 5 December 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-prompt-attack.html (opens in a new tab) ↩1 ↩2
  6. Microsoft, “Prompt Shields in Azure AI Content Safety”, Microsoft Learn, accessed 5 December 2026. https://learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/jailbreak-detection (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  7. Google Cloud, “Model Armor overview”, Security Command Center documentation, accessed 5 December 2026. https://cloud.google.com/security-command-center/docs/model-armor-overview (opens in a new tab) ↩1 ↩2
  8. Rebedea, Dinu, Sreedhar, Parisien and Cohen, “NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Rails”, arXiv:2310.10501, 16 October 2023. https://arxiv.org/abs/2310.10501 (opens in a new tab) ↩
  9. NVIDIA, “Overview”, NeMo Guardrails Library Developer Guide, accessed 5 December 2026. https://docs.nvidia.com/nemo/guardrails/latest/index.html (opens in a new tab) ↩
  10. Guardrails AI, “guardrails” repository README, GitHub, accessed 5 December 2026. https://github.com/guardrails-ai/guardrails (opens in a new tab) ↩
  11. Inan, Upasani, Chi, Rungta, Iyer, Mao et al., “Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations”, arXiv:2312.06674, 7 December 2023. https://arxiv.org/abs/2312.06674 (opens in a new tab) ↩1 ↩2
  12. Meta, “Llama Guard 4 12B” model card, Hugging Face, accessed 5 December 2026. https://huggingface.co/meta-llama/Llama-Guard-4-12B (opens in a new tab) ↩1 ↩2
  13. Meta, “Llama Prompt Guard 2 86M” model card, Hugging Face, accessed 5 December 2026. https://huggingface.co/meta-llama/Llama-Prompt-Guard-2-86M (opens in a new tab) ↩1 ↩2 ↩3
  14. Sharma, Tong, Mu, Wei, Kruthoff, Goodfriend et al., “Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teaming”, arXiv:2501.18837, 31 January 2025. https://arxiv.org/abs/2501.18837 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
  15. Anthropic, “Constitutional Classifiers: Defending against universal jailbreaks”, 3 February 2025, with live demo results update of 13 February 2025. https://www.anthropic.com/research/constitutional-classifiers (opens in a new tab) ↩1 ↩2 ↩3
  16. Anthropic, “Next-generation Constitutional Classifiers: More efficient protection against universal jailbreaks”, 9 January 2026. https://www.anthropic.com/research/next-generation-constitutional-classifiers (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  17. Mazeika, Phan, Yin, Zou, Wang, Mu et al., “HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal”, arXiv:2402.04249, February 2024. https://arxiv.org/abs/2402.04249 (opens in a new tab) ↩1 ↩2 ↩3
  18. Chao, Debenedetti, Robey, Andriushchenko, Croce, Sehwag et al., “JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models”, arXiv:2404.01318, March 2024 (v5 October 2024). https://arxiv.org/abs/2404.01318 (opens in a new tab) ↩1 ↩2
  19. Souly, Lu, Bowen, Trinh, Hsieh et al., “A StrongREJECT for Empty Jailbreaks”, arXiv:2402.10260, 15 February 2024. https://arxiv.org/abs/2402.10260 (opens in a new tab) ↩
  20. Nasr, Carlini, Sitawarin, Schulhoff, Hayes, Ilie et al., “The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against LLM Jailbreaks and Prompt Injections”, arXiv:2510.09023, 10 October 2025. https://arxiv.org/abs/2510.09023 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17 ↩18 ↩19
  21. Debenedetti, Zhang, Balunović, Beurer-Kellner, Fischer and Tramèr, “AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents”, arXiv:2406.13352, June 2024 (v3 November 2024). https://arxiv.org/abs/2406.13352 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  22. Röttger, Kirk, Vidgen, Attanasio, Bianchi et al., “XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models”, arXiv:2308.01263, 2 August 2023. https://arxiv.org/abs/2308.01263 (opens in a new tab) ↩
  23. Cui, Chiang, Stoica and Hsieh, “OR-Bench: An Over-Refusal Benchmark for Large Language Models”, arXiv:2405.20947, 31 May 2024. https://arxiv.org/abs/2405.20947 (opens in a new tab) ↩
  24. Athalye, Carlini and Wagner, “Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examples”, arXiv:1802.00420, 1 February 2018. https://arxiv.org/abs/1802.00420 (opens in a new tab) ↩
  25. Tramèr, Carlini, Brendel and Madry, “On Adaptive Attacks to Adversarial Example Defenses”, arXiv:2002.08347, 19 February 2020. https://arxiv.org/abs/2002.08347 (opens in a new tab) ↩
  26. Vassilev, Oprea, Fordyce, Anderson, Davies and Hamin, “Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations”, NIST AI 100-2e2025, National Institute of Standards and Technology, March 2025. https://doi.org/10.6028/NIST.AI.100-2e2025 (opens in a new tab) ↩1 ↩2 ↩3
  27. Jain, Schwarzschild, Wen, Somepalli, Kirchenbauer et al., “Baseline Defenses for Adversarial Attacks Against Aligned Language Models”, arXiv:2309.00614, 1 September 2023. https://arxiv.org/abs/2309.00614 (opens in a new tab) ↩
  28. Zou, Wang, Carlini, Nasr, Kolter and Fredrikson, “Universal and Transferable Adversarial Attacks on Aligned Language Models”, arXiv:2307.15043, 27 July 2023. https://arxiv.org/abs/2307.15043 (opens in a new tab) ↩
  29. Hackett, Birch, Trawicki, Suri and Garraghan, “Bypassing LLM Guardrails: An Empirical Analysis of Evasion Attacks against Prompt Injection and Jailbreak Detection Systems”, arXiv:2504.11168, 15 April 2025 (v3 July 2025). https://arxiv.org/abs/2504.11168 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  30. Russinovich, Salem and Eldan, “Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attack”, arXiv:2404.01833, 2 April 2024 (v3 February 2025). https://arxiv.org/abs/2404.01833 (opens in a new tab) ↩1 ↩2 ↩3
  31. Hughes, Price, Lynch, Schaeffer, Barez, Koyejo et al., “Best-of-N Jailbreaking”, arXiv:2412.03556, 4 December 2024. https://arxiv.org/abs/2412.03556 (opens in a new tab) ↩1 ↩2
  32. Simon Willison, “The Dual LLM pattern for building AI assistants that can resist prompt injection”, simonwillison.net, 25 April 2023. https://simonwillison.net/2023/Apr/25/dual-llm-pattern/ (opens in a new tab) ↩
  33. Debenedetti, Shumailov, Fan, Hayes, Carlini, Fabian et al., “Defeating Prompt Injections by Design”, arXiv:2503.18813, 24 March 2025 (v2 June 2025). https://arxiv.org/abs/2503.18813 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  34. OWASP GenAI Security Project, “LLM06:2025 Excessive Agency”, OWASP Top 10 for LLM Applications 2025. https://genai.owasp.org/llmrisk/llm062025-excessive-agency/ (opens in a new tab) ↩1 ↩2 ↩3
  35. X41 D-Sec, “Advisory X41-2026-001: Guardrail Sandbox Escape in LiteLLM”, 8 April 2026. https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ (opens in a new tab) ↩1 ↩2
  36. NIST National Vulnerability Database, “CVE-2026-40217”, published 10 April 2026, last modified 19 November 2026 (includes CISA KEV entry). https://nvd.nist.gov/vuln/detail/CVE-2026-40217 (opens in a new tab) ↩1 ↩2
  37. BerriAI, “Sandbox escape in custom-code guardrail”, GitHub security advisory GHSA-wxxx-gvqv-xp7p, published 7 May 2026. https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p (opens in a new tab) ↩
  38. Avishai Efrat and Ayush RoyChowdhury, “Threat Actors Are Trying to use LiteLLM’s Guardrail Tester to Run Code as Root”, Zenity Labs, 30 June 2026. https://labs.zenity.io/post/threat-actors-are-trying-to-use-litellm-s-guardrail-tester-to-run-code-as-root (opens in a new tab) ↩
  39. OWASP GenAI Security Project, “LLM01:2025 Prompt Injection”, OWASP Top 10 for LLM Applications 2025. https://genai.owasp.org/llmrisk/llm01-prompt-injection/ (opens in a new tab) ↩