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/
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
- Never concatenate raw user text or retrieved RAG/tool strings directly into the `system` or `developer` prompt message array.
- Wrap every untrusted chunk in unambiguous structured tags (`<untrusted_document id="...">`) paired with Spotlighting encoding/datamarking where utility allows.
- Strip or escape delimiter lookalike tokens (`<|im_start|>`, `[INST]`, `</untrusted_document>`) from untrusted inputs before prompt assembly.
- Prefer models evaluated with high Prompt-Boundary Integrity on indirect-injection suites (AgentDojo, Refract `rag_indirect_injection`).
What this control stops
- Chat-template delimiter breakouts (`<|im_start|>system`, special-token injection) in user or RAG text (AML.T0069.000).
- Naive indirect prompt injections embedded inside tickets, wikis, or web scrapes attempting to override system policy.
- Accidental developer-prompt pollution from unsanitized template interpolation (AML.T0018.003).
Known bypass conditions & residual risk
- Persuasive semantic instructions inside delimited data that still trick models with weak instruction-hierarchy adherence.
- Direct user-role jailbreaks targeting models whose user-vs-system boundary degrades under multi-turn Crescendo escalation.
- Tool invocations executed without external deterministic authorization if the model still yields to delimited data.
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.