# What are AI Guardrails?

> Artificial intelligence (AI) guardrails are controls around an AI application that check or constrain inputs, outputs, and proposed actions against defined rules.

- Canonical URL: https://yellowcube.eu/glossary/ai-guardrails/
- Publisher: Yellow Cube
- Language: en
- Contact: hello@yellowcube.eu

## Content

In large language model (LLM) applications, the industry term commonly describes runtime screening of prompts, retrieved content, generated responses, and tool calls. Implementations may combine fixed rules, schema checks, sensitive-data detection, classifiers, and separate models that evaluate content.

A guardrail can reject, redact, block, or route a request for review. Its usefulness depends on where it operates, what information it receives, and whether the application actually enforces the result. A policy written only in a system prompt remains an instruction to the model.

### Key points

- **Input controls:** Screening can identify suspicious instructions, prohibited content, and sensitive information before processing. Retrieved documents and tool results need coverage alongside direct user messages.
- **Output controls:** Content checks and destination-specific validation reduce disclosure and unsafe downstream use. A response that satisfies a structural schema can still contain false or unauthorized content.
- **Operational evidence:** Tests should measure missed attacks, blocked legitimate requests, language coverage, latency, and behavior after changes. Decision logs need proportionate handling of sensitive content.
- **Important limitation:** Filters and model-based checks can be bypassed, and a reviewing model can itself follow hostile instructions. Guardrails alone do not establish an authorization or data-isolation boundary.

### Related terms

[Prompt injection](<https://yellowcube.eu/glossary/prompt-injection/>) · [AI red teaming](<https://yellowcube.eu/glossary/ai-red-teaming/>) · [Defense in depth](<https://yellowcube.eu/glossary/defense-in-depth/>) · [Least privilege](<https://yellowcube.eu/glossary/least-privilege/>)

### Sources

[OWASP LLM Prompt Injection Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/LLM_Prompt_Injection_Prevention_Cheat_Sheet.html) · [OWASP LLM08:2026 Hidden Context Exposure](https://genai.owasp.org/llm2026/llm082026-hidden-context-exposure/)

## Let’s Build Smarter Cyber Defenses Together

Partnerships are the foundation of everything we do — built on trust, expertise, and shared success. Whether you’re looking to grow your business, strengthen your cybersecurity offerings, or bring innovative solutions to new markets, Yellow Cube is ready to be your committed, long-term ally.

[Get in touch with Yellow Cube](<mailto:hello@yellowcube.eu?subject=Partnership>)

## Attribution and scope

This Markdown representation is generated from the same approved content records as the canonical HTML page. Cite the canonical URL above when referencing this material. Product and service descriptions are informational; confirm project-specific requirements with Yellow Cube.

