← Research/LLM Strategy

AI guardrails in production: an engineering guide mapped to OWASP and NIST

Solnix MediaJul 3, 2026 · Updated Oct 19, 202612 min read

10

risk categories in the OWASP Top 10 for LLM applications

Source: OWASP GenAI Security Project

In 2024 a Canadian tribunal held Air Canada responsible for its website chatbot's wrong answer about bereavement fares [5]. The ruling made a simple point: what your AI says, you said. This post sets out the guardrails we put around production LLM systems, mapped to the OWASP Top 10 for LLM applications and NIST's generative AI profile.

LLM STRATEGY · GUARDRAILS10risk categories in the OWASP Top 10 for LLMsTop riskPrompt injectionYour chatbot's answersYour liabilityDefenceLayered guardrailsOWASP GenAI Security Project · NIST · Moffatt v. Air Canada
01

Know the risks you are guarding against

The OWASP Top 10 for LLM applications lists prompt injection first, followed by risks such as sensitive information disclosure, improper output handling and excessive agency [1]. NIST's generative AI profile (AI 600-1) maps similar risks, including confabulation and information security, to actions under its AI Risk Management Framework [2].

02

Prompt injection comes from data, too

Greshake and colleagues showed that instructions hidden in web pages, emails or documents that an LLM reads can take over its behaviour: indirect prompt injection [3]. Any system that retrieves content or reads email is exposed. Treat retrieved text as data, never as instructions, and limit what the model can do with it.

03

Layered controls

  • Input: classify requests for policy violations and injection attempts; classifiers such as Llama Guard are built for this [4].
  • Context: retrieve only from approved sources and strip instructions from retrieved content.
  • Tools: give each agent the minimum permissions; require approval for actions that send, pay or delete.
  • Output: check answers against sources, block sensitive data and validate structured output before it is used.
  • People: route low-confidence or high-impact responses to a person.
04

Grounding answers in policy

The Air Canada chatbot told a customer he could claim a bereavement fare after travel, contradicting the airline's own policy page; the tribunal ordered the airline to pay the difference [5]. A customer-facing assistant should answer policy questions only from the current policy text, cite it, and hand off when the policy does not cover the case.

05

Test and monitor

Before launch, run a red-team set: injection attempts, requests for other customers' data, policy edge cases and off-topic requests. After launch, log prompts, retrieved context, tool calls and outputs, review samples weekly, and add every incident to the test set.

Sources

  1. [1]OWASP Top 10 for LLM Applications · OWASP GenAI Security Project
  2. [2]Artificial Intelligence Risk Management Framework: Generative AI Profile (NIST AI 600-1) · NIST
  3. [3]Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection (Greshake et al., 2023) · arXiv
  4. [4]Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations (Inan et al., 2023) · arXiv
  5. [5]Moffatt v. Air Canada, 2024 BCCRT 149 · CanLII

Found this useful?

Share the key finding on X.

Post on X

Implement this

Ready to deploy this at your organisation?

Talk to our AI team →

More from Solnix