Observatory defense blueprint · ATO.M0001

Instruction Hierarchy & Untrusted Context Delimiting

Enforce strict structural role separation (system > developer > user > retrieved data) using spotlighting markers and instruction-hierarchy models so untrusted RAG/tool chunks are parsed as inert data.

Control blueprint overview

Control ID
ATO.M0001
Framework
Observatory defense blueprint
Stack layers
System-Prompt / Context · Fine-Tuning
Techniques addressed
0
OWASP LLM Top 10
NIST AI RMF
Reference URI
https://observatory.silvauren.com/catalog/mitigations/ato-m0001/

Open ATO.M0001 in Interactive Defense Workbench

Control mechanism

Combines structural context engineering—wrapping retrieved documents, emails, and tool outputs inside explicit XML/Spotlighting data delimiters with encoding or datamarking—with base models fine-tuned under explicit Instruction Hierarchy objectives (e.g., OpenAI 2404.13208). Prevents untrusted retrieved payloads from masquerading as privileged developer instructions.

Implementation steps

  1. Never concatenate raw user text or retrieved RAG/tool strings directly into the `system` or `developer` prompt message array.
  2. Wrap every untrusted chunk in unambiguous structured tags (`<untrusted_document id="...">`) paired with Spotlighting encoding/datamarking where utility allows.
  3. Strip or escape delimiter lookalike tokens (`<|im_start|>`, `[INST]`, `</untrusted_document>`) from untrusted inputs before prompt assembly.
  4. Prefer models evaluated with high Prompt-Boundary Integrity on indirect-injection suites (AgentDojo, Refract `rag_indirect_injection`).

What this control stops

Known bypass conditions & residual risk

Latency, usability & false-refusal trade-offs

Latency: +1-4 ms deterministic input escaping and delimiting. | False-Refusal Risk: Very low (<0.5%); improves clarity without refusing benign questions. | Operational Cost: Low; implemented once in shared prompt-builder libraries.