Cybersecurity · September 2026

Guardrails that work: classifiers, policies and moderation in production

No single filter holds on its own. Guardrails that work are a stack of layers, each measured on your data and in your languages. This is the stack we recommend, with the guard models available in September 2026.

86% → 4.4% jailbreak success without and with classifiers (Anthropic)0.05% over-refusal in the 2026 version7 layers in a complete stack
In short

A guardrail is not one filter but a stack of seven layers, from input screening to logging and monitoring. Open guard models now cover most of these layers, and some read your policy as plain-language input, which helps when it is written in Spanish or French.

Jailbreak research shows why layers matter: long-context, repeated-sampling and multi-turn attacks each beat a single model or filter. Measure every layer on your own labeled set, in each language: false positives, false negatives, latency and cost.

Seven layers, not one filter

Each layer catches a different failure; together they cover what no single model can.

Reference stack recommended by Slash. Not every product needs every layer at full strength.
LayerWhat it doesTypical toolsWhat it catches
1. Input screeningClassifies the request and retrieved content before the modelPrompt Guard 2, Prompt Shields, Qwen3GuardJailbreaks, injection, out-of-policy requests
2. System policyStates what the product does and declinesSystem prompt, versioned like codeScope drift
3. Model choiceA well-aligned, well-calibrated model for the jobYour evaluation suiteOver- and under-refusal at the source
4. Output classificationChecks each answer against the policyLlama Guard 4, gpt-oss-safeguard, ShieldstralHarmful output that got through
5. Tool permissionsLimits what an agent can do, whatever the model decidesLeast privilege, allowlists, confirmationsDamage from a successful injection
6. Human reviewSends flagged or high-impact cases to a personReview queueAmbiguous cases, irreversible actions
7. Logging and monitoringRecords inputs, outputs and verdictsTraces, dashboards, alertsSlow multi-turn attacks, drift, abuse

Layers 5 and 7 do not depend on any model being right, which is why they hold when the others fail. The UK's NCSC says the same about prompt injection: treat it as a residual risk and limit its impact with deterministic, non-LLM controls.

The guard models available in September 2026

Model cards and vendor documentation, checked in September 2026.
ModelVendor, dateLicense, deploymentLanguagesScope and notes
Llama Guard 4 (12B)Meta, Apr 2025Llama 4 Community; self-hostedEnglish + 7, incl. Spanish and FrenchPrompts and responses, text and images, 14 categories
Prompt Guard 2 (86M, 22M)Meta, Apr 2025Llama 4 Community; self-hostedMultilingual; bigger gaps in 22MInput attacks only; vulnerable to adaptive attacks
ShieldGemma 2 (4B)Google, Apr 2025Gemma Terms; self-hostedEnglish training dataImages only, three policies
Granite Guardian 4.1 (8B)IBM, Apr 2026Apache 2.0; self-hostedEnglishHarm, jailbreak, RAG groundedness, agent tool calls; custom criteria
Qwen3Guard-Gen (0.6B to 8B)Alibaba, Oct 2025Apache 2.0; self-hosted119 languages and dialectsSafe, controversial or unsafe
gpt-oss-safeguard (20B, 120B)OpenAI, Oct 2025Apache 2.0; self-hostedTest on your dataReads your policy; reasoned verdicts
Shieldstral 1.0 (3B)Mistral, Aug 2026Apache 2.0; one 16 GB GPU12, incl. Spanish and FrenchReads your policy; text and images
Moderation APIMistralManaged APITest on your dataAbout 10 categories, inputs and outputs
NeMo Guardrails + NemoGuardNVIDIAApache 2.0 toolkit; self-hostedDepends on the modelsRails at input, retrieval, dialog, execution and output
Prompt ShieldsMicrosoftManaged Azure serviceTest on your dataDirect and indirect (document) attacks
Constitutional ClassifiersAnthropic, 2025 and 2026Proprietary; only inside ClaudeNot applicableTwo-stage cascade

Note that “guard model” covers different jobs. Prompt Guard 2 and Prompt Shields look for attacks in inputs, ShieldGemma 2 moderates images, NeMo Guardrails orchestrates other models and the rest judge content against a policy. Every card also lists limits, from English-only evaluation to weaker reliability on obfuscated inputs.

Policy-as-prompt classifiers help in Spanish and French

Classic guard models bake a fixed taxonomy into their weights, such as Llama Guard 4's 14 hazard categories. Policy-as-prompt classifiers (gpt-oss-safeguard, Shieldstral and Granite Guardian's “bring your own criteria” mode) read your policy as plain-language input at inference time, next to the content being judged. Changing the policy means editing text, not collecting labeled data and retraining.

The legal or compliance team that owns the policy can write it in the language of the business, with its own examples: what counts as financial advice for a Colombian bank, or as a medical claim for a French insurer. One model applies it across products, and every change is versioned and reviewable.

Two cautions. Accuracy depends on wording: Google warns that ShieldGemma 2 is “highly sensitive” to how safety principles are described. And reasoning costs money: gpt-oss-safeguard offers low, medium and high effort, and Granite Guardian 4.1 a thinking and a non-thinking mode, so the usual design is a cascade: a fast single-pass classifier first, the reasoning judge only for flagged or ambiguous content.

Rule of thumb

Treat the policy like code: a short document with definitions and examples per language, an owner, a version and tests on your labeled set before every deployment.

Measure on your own labeled set

Vendor numbers say a model is plausible; only your data says it works.

Build the set from real traffic, in each language: clearly allowed requests, clearly disallowed ones and, above all, the borderline cases where over-refusal lives. Public benchmarks help seed it (XSTest and OR-Bench for over-refusal, SORRY-Bench for unsafe requests), but they are mostly in English and do not know your policy.

What to measure for each layer.
MetricWhy it mattersHow to read it
False positives (over-blocking)Legitimate users get refused and leave or work around youPer language and per category, not only overall
False negatives (missed harm)Harmful content or actions get throughWeighted by severity: a miss on self-harm outweighs many on profanity
LatencyEach layer adds at least one call95th percentile, end to end, streaming included
CostGuard calls are billed like any otherPer 1,000 conversations, cascade included

Vendor figures show the trade-offs. Meta reports 97.5% recall at a 1% false-positive rate for Prompt Guard 2 86M. Anthropic's first Constitutional Classifiers cut jailbreak success from 86% to 4.4% in its tests, at 23.7% more compute and 0.38 points more refusals; the 2026 cascade brought over-refusal to about 0.05% and overhead to roughly 1%. Useful references, but none measures your policy in your languages: that is the job of your own evals.

What jailbreak research shows

Four results, described at the conceptual level only.

  • Many-shot jailbreaking (Anthropic, 2024) fills a long context with fake dialogues in which an assistant complies. Harmful answers rise with the number of examples, and larger models proved more susceptible. Training the model to resist only delayed the effect; classifying and rewriting the prompt first cut attack success from 61% to 2% in one internal test.
  • Best-of-N (2024) resends a request with random surface variations until one gets through, with no access to the model's internals. With enough attempts, the authors report 89% success on GPT-4o and 78% on Claude 3.5 Sonnet, and it also got past defenses such as circuit breakers.
  • Crescendo (Microsoft, 2024) escalates over several turns, each harmless on its own: 98% success against GPT-4 and 100% against Gemini Pro in its authors' tests.
  • Bug bounties show what layering buys. In Anthropic's February 2025 challenge, 339 researchers sent over 300,000 messages and one found a universal jailbreak. Against the 2026 system, some 198,000 attempts had found none by January 2026, with rewards of up to $35,000.

The lesson: long context beats a single safety-trained model, repeated sampling beats a single static classifier, and multi-turn escalation beats per-message filtering. Classify whole conversations, rate-limit, watch for bursts of near-identical retries and keep layers that do not depend on any model.

Warning

A guard model is also a model. Meta's cards say Llama Guard 4 “may be susceptible to adversarial or prompt injection attacks” and Prompt Guard 2 is “vulnerable to adaptive attacks”. Treat each verdict as one signal among several, never as proof of safety.

Two reference architectures

A customer chatbot mostly risks bad answers; an internal agent mostly risks bad actions.

Reference designs recommended by Slash. Set thresholds from your own measurements.
StageCustomer-facing chatbotInternal agent with tools
InputLight injection and jailbreak classifier, plus a content checkSame, plus every retrieved document, email or tool result treated as untrusted
PolicyShort product policy; AI disclosure at the first interactionTask scope and allowed tools and data, in the system prompt
ModelWell-calibrated, measured for over-refusal in your languagesThe strongest model your evaluation justifies
OutputPolicy-as-prompt classifier: allow, rewrite, block or hand offOutput classifier, plus a check that each tool call matches the user's request
ActionsNone beyond answering; account changes go to a humanLeast privilege, egress allowlists, confirmation before sending, paying or deleting
OversightWeekly sample review of refusals and blocksHuman approval for high-impact actions; full traces

For agents, no classifier replaces capability limits: an agent that cannot send email cannot be tricked into leaking data by email. More patterns in prompt injection and agent security and AI agents in production.

What it means for companies in Colombia and Europe

Languages. Check each guard model's coverage against your real traffic: Llama Guard 4 and Shieldstral list Spanish and French, Qwen3Guard claims 119 languages, and Granite Guardian 4.1 and ShieldGemma 2 were trained on English data. Measure in Colombian Spanish and in French, with slang, typos and mixed languages, not on translated benchmarks.

Data residency. Most open guard models ship under Apache 2.0 and run on your own infrastructure, so screened content never leaves it. Their logs hold the most sensitive text in your system: in Colombia they fall under Ley 1581 de 2012, in the EU under the GDPR, with retention and access rules to match.

Regulation. In the EU, Article 50 of the AI Act has required since August 2, 2026 that people be told they are interacting with an AI system. From December 2, 2026, an image or video generator that can foreseeably and reproducibly produce non-consensual intimate images or child abuse material needs safeguards that reliably prevent it, or falls under the new prohibitions: there, guardrails become a legal requirement. Details in our 2026 regulatory map.

Launch checklist

  1. Write the policy: scope, definitions, allowed and disallowed examples per language, owner and version.
  2. Build a labeled set from real traffic, borderline cases included, in every language you serve.
  3. Choose guard models on measured errors, latency and cost, not on vendor tables.
  4. Put a light input classifier first and treat all retrieved content as untrusted.
  5. Classify outputs against the same policy, with a defined action per verdict: allow, rewrite, block or hand off.
  6. Give agent tools least privilege and require confirmation for irreversible actions.
  7. Log inputs, outputs, verdicts and model versions under a retention policy; alert on retry bursts and escalating conversations.
  8. Red-team before launch, multi-turn and many-attempt attacks included, and again after every model or policy change.
  9. Review refusals and blocks weekly and feed the errors back into the labeled set.

Key takeaways

  • Guardrails are a stack of seven layers; tool permissions and logging still hold when every model fails.
  • Open guard models cover most needs in 2026, several under Apache 2.0; check language coverage, since some were trained on English only.
  • Policy-as-prompt classifiers let your legal or compliance team write and version the policy in Spanish or French without retraining.
  • Measure false positives, false negatives, latency and cost on your own labeled set; vendor figures are only a starting point.
  • Many-shot, Best-of-N and multi-turn attacks each beat a single filter: classify whole conversations and watch for bursts of retries.

Sources

  1. Llama Guard 4 12B: model card · Meta (Hugging Face), 2025-04-05
  2. Llama Prompt Guard 2 86M: model card · Meta (Hugging Face), 2025-04-05
  3. Qwen3Guard-Gen-8B: model card · Alibaba Qwen (Hugging Face), 2025-10-16
  4. Introducing gpt-oss-safeguard · OpenAI, 2025-10-29
  5. Granite Guardian 4.1 8B: model card · IBM (Hugging Face), 2026-04
  6. Shieldstral 1.0 3B: model card · Mistral AI (Hugging Face), 2026-08
  7. Prompt Shields in Azure AI Content Safety · Microsoft Learn, 2026-09-18
  8. NeMo Guardrails · NVIDIA (GitHub), 2026-09
  9. Next-generation Constitutional Classifiers: More efficient protection against universal jailbreaks · Anthropic, 2026-01-09
  10. Many-shot jailbreaking · Anthropic, 2024-04-02
  11. Best-of-N Jailbreaking · Hughes et al. (arXiv), 2024-12-04
  12. Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attack · Russinovich, Salem and Eldan, Microsoft (arXiv), 2024-04-02

Editorial note: this analysis reflects the public information available on the review date. Models, prices and rules change fast; every third-party figure links to its source, and our opinions are labeled as such. Spotted an error? Write to contact@slash-digital.io.

Frequently asked questions

The questions we hear often

What is a guard model?

A model trained or prompted to classify prompts, responses or images against a safety policy, such as Llama Guard 4, Qwen3Guard or gpt-oss-safeguard. It sits around your main model and returns a verdict, not an answer for the user.

Which guard model should we test first?

For self-hosting in Spanish and French, compare Llama Guard 4, Qwen3Guard and Shieldstral on your labeled set, and consider gpt-oss-safeguard as a reasoning judge for flagged cases. Keep the one whose errors are most acceptable on your data.

Do guardrails slow the chatbot down?

Every layer adds at least one model call. Keep the input check light, escalate to heavier judges only for flagged content and measure 95th-percentile latency end to end.

Can a guard model be fooled?

Yes. Meta's own cards warn that Llama Guard 4 may be susceptible to adversarial attacks and Prompt Guard 2 to adaptive attacks. That is why classifiers are one layer among several, with permissions, monitoring and human review behind them.

Is a good system prompt enough?

No. It states the policy, but many-shot, repeated-sampling and multi-turn attacks are designed to get around exactly that. Pair it with input and output classifiers, tool limits and logging.

Talk to Slash

Let's put it in production

Tell us your challenge. We reply within 24 business hours with an honest first read: if we can help, we'll say how; if not, we'll say who can.

I reply personally. No endless forms, no canned replies.

Message Esteban