For Heads-of · Practitioner

Guardrails

Also known as: AI guardrails · LLM guardrails

Runtime checks on an AI system's inputs and outputs, such as classifiers, filters and policy rules, that block, modify or flag content before it reaches the model or after it leaves. They reduce risk, but they are probabilistic: a guardrail is a layer of defence, not a security boundary.

  • guardrails
  • LLM firewall
  • AI gateway
  • content filtering
  • output validation

What they do

Input guardrails screen what reaches the model: injection attempts, prohibited topics, personal data that should not be sent to a provider. Output guardrails screen what comes back: harmful content, leaked data, malformed output, claims that fail a check. Many guardrails are themselves models, which is why they share the weaknesses of the models they protect.

What they do not do

A guardrail that catches 99% of attacks still lets the rest through, and an attacker can try as often as they like. Where an output could cause irreversible harm, the protection has to be deterministic: least privilege on what the system can do, structural validation of what it produces, and human confirmation before it acts. Guardrails are also sold under names such as LLM firewall and AI gateway; the function is the same.

Where it sits in the register

The control is output validation and guardrails, which pairs probabilistic filtering with deterministic checks. It addresses improper output handling and reduces, without eliminating, prompt injection.

Sources

Related Terms

Related risks and controls

← Back to Glossary