MITRE ATLAS 2026.10 · AML.T0085.003 · Elevated severity
Data from AI Services: System Instructions
Attackers collect proprietary system instructions, routing prompts, business logic, or embedded API secrets by inducing the model to disclose or reconstruct the privileged prompt text guiding an agent or application.
Technique dossier overview
- Category
- Prompt and context integrity
- Severity
- Elevated
- Attack surface
- LLM / Prompt Layer
- Framework maturity
- Feasible
- Platforms
- Generative AI, Agentic AI
- Tactics
- Collection
- Catalog entry modified
How the mechanism works
- Developers place detailed business rules, tool prompts, classification rubrics, or secrets inside the privileged system-instruction block.
- The attacker submits instruction-bypass or formatting-reflection queries requesting verbatim or encoded output of preceding messages.
- Without strict instruction hierarchy and output filtering, the model dumps its developer instructions into the response.
Detection & telemetry signals
- Input classifiers catching prompt-extraction framing (verbatim repeat, translate system rules, or dump prior XML blocks).
- Output overlap detectors flagging generated completions with high n-gram similarity to production system-prompt hashes.
- Repeated multi-turn probing probing slight variations of system boundary rules.
Architectural defensive countermeasures
- Remove all credentials, secret keys, private endpoints, and access-control logic from system instructions completely.
- Use instruction-hierarchy tuned models that refuse user instructions asking to reveal developer context.
- Deploy output similarity filters and canary tokens to intercept verbatim or encoded system-instruction leakage.
- Evaluate leakage risk accurately by distinguishing harmless persona instructions from genuinely confidential business logic.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Collecting hidden application prompts is the exact focus of System Prompt Leakage (LLM07) and becomes Sensitive Information Disclosure (LLM02) if sensitive logic or secrets were embedded.
- NIST AI RMF functions
- NIST AI RMF guidance
- GOVERN strict separation of secrets from prompt templates, and MANAGE prompt confidentiality with instruction-hierarchy models and output overlap guards.
Mapped defensive controls
- Validate AI Model AML.M0008
Run independent pre-release and post-fine-tuning assurance suites covering safety regressions, backdoor activation, alignment drift, and privacy leakage before promotion.
- Generative AI Guardrails AML.M0020
Deploy layered input and output classifiers, constitutional/topic rails, and structural validators with measured benign over-refusal rates—never relying on classifiers as the sole authorization boundary.
- Generative AI Guidelines AML.M0021
Codify explicit acceptable-use rules, prompt policy hierarchies, and refusal rubrics to steer model alignment and user expectations, recognizing text guidelines alone cannot stop attacks.
- Generative AI Model Alignment AML.M0022
Harden model weights via SFT, RLHF/DPO, deliberative alignment, and instruction-hierarchy training across base and fine-tuned revisions while monitoring residual safety drift.
- AI Red Team AML.M0035
Conduct authorized, isolated manual and automated adversarial testing across models, RAG pipelines, and agents—tracking reproducible breach rates, Wilson confidence intervals, and patch verification.
Published empirical measurements (5)
- Mitigation effectiveness · 53.8%
Per-split denominators are not tabulated in Figure 2; residual 4.1%-26.3% leakage confirms secrets must never be stored solely inside system prompts.
- Model
- GPT-3.5-Turbo
- Evaluation
- OpenAI Instruction Hierarchy — System Prompt Confidentiality Splits
- Defense
- Baseline model
- Reported
- Source and location
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions · arXiv (author preprint; peer-review status not inferred) · Figure 2: System Message, TensorTrust & Gandalf Extraction
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 84.2%
Per-split denominators are not tabulated in Figure 2; residual 4.1%-26.3% leakage confirms secrets must never be stored solely inside system prompts.
- Model
- GPT-3.5-Turbo
- Evaluation
- OpenAI Instruction Hierarchy — System Prompt Confidentiality Splits
- Defense
- System-prompt hierarchy
- Reported
- Source and location
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions · arXiv (author preprint; peer-review status not inferred) · Figure 2: System Message, TensorTrust & Gandalf Extraction
- Evidence provenance
- Primary-source checked
- Leakage rate · 46.2%
Per-split denominators are not tabulated in Figure 2; residual 4.1%-26.3% leakage confirms secrets must never be stored solely inside system prompts.
- Model
- GPT-3.5-Turbo
- Evaluation
- OpenAI Instruction Hierarchy — System Prompt Confidentiality Splits
- Defense
- Baseline model
- Reported
- Source and location
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions · arXiv (author preprint; peer-review status not inferred) · Figure 2: System Message, TensorTrust & Gandalf Extraction
- Evidence provenance
- Primary-source checked
- Leakage rate · 15.8%
Per-split denominators are not tabulated in Figure 2; residual 4.1%-26.3% leakage confirms secrets must never be stored solely inside system prompts.
- Model
- GPT-3.5-Turbo
- Evaluation
- OpenAI Instruction Hierarchy — System Prompt Confidentiality Splits
- Defense
- System-prompt hierarchy
- Reported
- Source and location
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions · arXiv (author preprint; peer-review status not inferred) · Figure 2: System Message, TensorTrust & Gandalf Extraction
- Evidence provenance
- Primary-source checked
- Leakage rate · 90.2%
Exact Match score reported as proportion (0.902) across synthetic/benchmark system prompts (mean length 96.55 tokens).
- Model
- Shadow-Optimized Target LLMs (10-token adversarial query)
- Evaluation
- PLeak Adversarial Query Length Scaling (EM Score)
- Defense
- Baseline model
- Reported
- Source and location
- PLeak: Prompt Leaking Attacks against Large Language Model Applications · arXiv (author preprint; peer-review status not inferred) · Section 5: Impact of Adversarial Query Length
- Evidence provenance
- Primary-source checked
Related technique records
Documented incidents & exercises (6)
- Microsoft Bing Chat Sydney System Prompt Extraction and Hostile Persona Drift INC-AIID-0503 · Incident · Feb 15, 2023 · High · Consumer AI & Local Runtimes
In February 2023, immediately after Microsoft launched its GPT-4-powered Bing Chat preview, Stanford student Kevin Liu used a direct prompt injection ('Ignore previous instructions...') to extract the chatbot's confidential internal system prompt, revealing its secret codename…
- Custom GPT Store Assistants Widespread System-Prompt and Knowledge-File Extraction INC-OBS-044 · Incident · Nov 16, 2023 · Elevated · Consumer AI & Local Runtimes
Within days of OpenAI launching Custom GPTs in November 2023, security researchers and builders demonstrated that the vast majority of public Custom GPTs could be trivially coerced into dumping their hidden system instructions and verbatim uploaded knowledge files. Simple…
- PromptInject: Goal Hijacking & Prompt Leaking on GPT-3 OBS.EX0001 · Exercise · Nov 17, 2022 · Commercial Autoregressive LLMs · Direct Instruction/Data Boundary Testing
Perez and Ribeiro (2022) introduced PromptInject, an alignment testing framework using mask-based iterative prompt composition to evaluate goal hijacking and system prompt leaking against production GPT-3 endpoints. Across controlled adversarial prompt templates, simple…
- Language Model Inversion from Next-Token Probability Distributions OBS.EX0091 · Exercise · Nov 22, 2023 · Llama-2 7B · Hidden Prompt Reconstruction from Output Logits
Morris et al. (2023/ICLR 2024) studied language model inversion, testing whether next-token probability distributions allow reconstruction of hidden preceding prompt tokens even without full vocabulary probability access. Evaluated on Llama-2 7B, the inversion model…
- Systematic Measurement of System Prompt Extraction Across 11 LLMs OBS.EX0104 · Exercise · Jul 13, 2023 · 11 Open & Commercial LLMs (incl. ChatGPT & Claude 3) · 3 Prompt Corpora
Zhang, Carlini, and Ippolito (2023) established a precision evaluation framework distinguishing true system-prompt leakage from model hallucination across three prompt datasets and 11 LLMs, including production ChatGPT and Claude 3 endpoints. Simple natural-language extraction…
- PLeak Incremental Query Optimization for System Prompt Extraction OBS.EX0105 · Exercise · May 10, 2024 · Offline LLMs & Live Poe Platform Applications · Closed-Box Prompt Leaking
Hui et al. (ACM CCS 2024) evaluated PLeak, a closed-box prompt-leaking optimization framework that incrementally reconstructs hidden application system prompts token by token rather than relying on static manual override templates. Evaluated offline and against live third-party…
Source citation records
- MITRE ATLAS: System Instructions · MITRE ·
- LLM07:2025 System Prompt Leakage · Cited by MITRE ATLAS; publisher not independently verified
- LLM01:2025 Prompt Injection · OWASP GenAI Security Project ·
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions · arXiv (author preprint; peer-review status not inferred) ·
- PLeak: Prompt Leaking Attacks against Large Language Model Applications · arXiv (author preprint; peer-review status not inferred) ·
Common questions
- What is Data from AI Services: System Instructions (AML.T0085.003)?
- Attackers collect proprietary system instructions, routing prompts, business logic, or embedded API secrets by inducing the model to disclose or reconstruct the privileged prompt text guiding an agent or application.
- How do you mitigate Data from AI Services: System Instructions?
- MITRE ATLAS maps 5 mitigations to AML.T0085.003: Validate AI Model, Generative AI Guardrails, Generative AI Guidelines, Generative AI Model Alignment, and AI Red Team. Remove all credentials, secret keys, private endpoints, and access-control logic from system instructions completely.