Guardrails are policy limits placed around an AI system to block unsafe prompts, outputs, or actions. They can stop a model from revealing sensitive data, following malicious instructions, or calling tools in ways that exceed its role. In practice, guardrails may check user input, filter model output, enforce approval steps, or restrict which APIs and files the system can access.
They matter because AI failures are often security failures. Attackers can try prompt injection, data exfiltration, or abuse of connected tools to make the model behave outside policy. Guardrails help create a trust boundary: untrusted content is inspected before it can influence trusted systems. Defenders use them alongside logging, redaction, permissioning, and least-privilege access to reduce harm when AI is used in production workflows.


