AI Security Atlas › All entries › LLM Application & Output Security

GuardrailFixes medium risks

Prompt Hygiene & Canary Detection

System prompts carry no secrets, include canary tokens, and outputs are scanned for prompt echoes.

Open in the interactive atlas →

Impact

Turns prompt leakage into a detectable, low-impact event.

Why this severity

Guardrails take the highest severity of the risks they mitigate: Secrets & Policy in System Prompt (Medium), System Prompt Extraction (Medium).

Method: OWASP Risk Rating Methodology

Related

Mitigates

Builds on

Remediation

  1. Insert a unique canary string per deployment.
  2. Block or flag completions with high overlap to the system prompt.
  3. Review prompt templates in code review like source code.

How to verify

Pattern

if (completion.includes(CANARY) || overlap(completion, SYSTEM) > 0.6) return block();

Framework mapping

OWASP Top 10 for LLM Applications 2025

MITRE ATLAS

NIST AI RMF 1.0