MITRE ATLAS 2026.10 · AML.T0069.002 · Elevated severity
Discover LLM System Information: System Prompt
System prompt extraction coerces an application into revealing its hidden developer instructions verbatim or structurally. While leaking generic persona text carries limited direct risk, exposing embedded proprietary logic, internal endpoints, or hardcoded credentials creates severe downstream exposure.
Technique dossier overview
- Category
- Inference privacy
- Severity
- Elevated
- Attack surface
- LLM / Prompt Layer · Inference API & Hosting
- Framework maturity
- Demonstrated
- Platforms
- Generative AI, Agentic AI
- Tactics
- Discovery
- Aliases
- System prompt leakage
- Catalog entry modified
- Earliest cited research
- · Ignore Previous Prompt: Attack Techniques For Language Models · arXiv (author preprint; peer-review status not inferred)
How the mechanism works
- An attacker crafts direct or indirect requests asking the model to summarize, translate, encode, or repeat preceding context tokens.
- Without strict instruction hierarchy or output reflection filtering, the model treats its own system prompt as text available for user inspection.
- Extracted instructions reveal internal tool definitions, business thresholds, or misplaced secrets.
Detection & telemetry signals
- Input classifiers flagging extraction requests targeting preceding instructions or formatting rules.
- Output DLP or n-gram overlap detectors matching generated completions against stored production system-prompt hashes.
- Canary token alerts triggered when hidden instructional markers from system preambles appear in client responses.
Architectural defensive countermeasures
- Treat system prompts as non-secret configuration: never store API keys, authorization logic, or private user PII inside prompt text.
- Implement output overlap and canary checks comparing model responses against deployed system-prompt fingerprints.
- Use instruction-hierarchy trained models that prioritize developer directives over user requests to print prior context.
- Classify impact accurately based on what sensitive data actually resides in the prompt rather than treating all prompt disclosure identically.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Direct disclosure of hidden developer instructions defines LLM07 and escalates to Sensitive Information Disclosure (LLM02) whenever secrets or internal data inhabit the prompt.
- NIST AI RMF functions
- NIST AI RMF guidance
- MAP every system prompt for misplaced secrets or privileged endpoints, and MANAGE extraction risk with instruction-hierarchy models and output n-gram overlap guards.
Mapped defensive controls
- Control Access to AI Models and Data at Rest AML.M0005
Lock down stored model weights, LoRA adapters, training corpora, vector indexes, and backups with strict least-privilege IAM, private networking, and zero public bucket ACLs.
- Control Access to AI Models and Data in Production AML.M0019
Enforce deterministic runtime authentication, tenant isolation, and per-document RAG authorization outside the LLM context window for every inference and retrieval request.
- 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.
Model attack surface
461 of 563 catalogued model records map to AML.T0069.002 through the surface vectors below. Profiles are derived from model metadata (modalities, tool calling, reasoning, context window, and weight access). They show where techniques apply, not measured weaknesses.
Test with Refract
Refract is Silvauren's Apache-2.0 defensive LLM evaluation harness. Its 2x2 Detect-vs-Complete matrix crosses whether a detector flagged each probe with whether the model complied, so silent breaches are counted with Wilson 95% confidence intervals. Replace <model-id> with an OpenRouter route ID; each model page lists a ready-to-run command for its own route.
refract scan \
--target "openai_compat:<model-id>" \
--base-url https://openrouter.ai/api/v1 \
--api-key "$OPENROUTER_API_KEY" \
--battery system_prompt_extraction,reasoning_trace_leak
refract reportsystem_prompt_extractiondirect, translated, serialized, and diagnostic system-prompt extractionreasoning_trace_leakhidden instructions or secrets surfacing in reasoning traces
Export OPENROUTER_API_KEY first. Passing --api-key keeps Refract from using an unrelated OPENAI_API_KEY, which it would otherwise read first. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.
Published empirical measurements (12)
- Mitigation effectiveness · 32.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 · 95.9%
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 · 67.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 · 4.1%
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
- Benign pass rate · 81.7%
Defenses are crowdsourced natural-language system prompts rather than trained instruction hierarchy or runtime classifiers. Earlier catalog numerator 817/1000 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- GPT-4 (0613)
- Evaluation
- Tensor Trust Prompt Hijacking & Extraction Benchmark (1,000-sample eval)
- Defense
- System-prompt hierarchy
- Reported
- Sample
- 1,000
- Source and location
- Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game · arXiv (author preprint; peer-review status not inferred) · Section 5: Hijacking Resistance Rate (HRR), Extraction Resistance Rate (ERR) & Defense Validity (DV)
- Evidence provenance
- Primary-source checked
- Benign pass rate · 89.2%
Defenses are crowdsourced natural-language system prompts rather than trained instruction hierarchy or runtime classifiers. Earlier catalog numerator 892/1000 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- GPT-3.5-Turbo (0613)
- Evaluation
- Tensor Trust Prompt Hijacking & Extraction Benchmark (1,000-sample eval)
- Defense
- System-prompt hierarchy
- Reported
- Sample
- 1,000
- Source and location
- Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game · arXiv (author preprint; peer-review status not inferred) · Section 5: Hijacking Resistance Rate (HRR), Extraction Resistance Rate (ERR) & Defense Validity (DV)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 27%
Defenses are crowdsourced natural-language system prompts rather than trained instruction hierarchy or runtime classifiers. Earlier catalog numerator 27/100 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- GPT-3.5-Turbo (Role Ablation — Weakest)
- Evaluation
- Tensor Trust Message-Role Arrangement Ablation (100 samples)
- Defense
- System-prompt hierarchy
- Reported
- Sample
- 100
- Source and location
- Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game · arXiv (author preprint; peer-review status not inferred) · Section 5: Hijacking Resistance Rate (HRR), Extraction Resistance Rate (ERR) & Defense Validity (DV)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 35%
Defenses are crowdsourced natural-language system prompts rather than trained instruction hierarchy or runtime classifiers. Earlier catalog numerator 35/100 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- GPT-3.5-Turbo (Role Ablation — Strongest)
- Evaluation
- Tensor Trust Message-Role Arrangement Ablation (100 samples)
- Defense
- System-prompt hierarchy
- Reported
- Sample
- 100
- Source and location
- Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game · arXiv (author preprint; peer-review status not inferred) · Section 5: Hijacking Resistance Rate (HRR), Extraction Resistance Rate (ERR) & Defense Validity (DV)
- Evidence provenance
- Primary-source checked
- Leakage rate · 68%
Evaluated on real-world Poe-hosted apps as of 2024; 100-app evaluation denominator used for conservative CI calculation over the reported 68% proportion. Earlier catalog numerator 68/100 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Production Poe LLM Applications (PLeak audit)
- Evaluation
- PLeak Real-World Poe Confidential System-Prompt Extraction
- Defense
- Baseline model
- Reported
- Sample
- 100
- Source and location
- PLeak: Prompt Leaking Attacks against Large Language Model Applications · arXiv (author preprint; peer-review status not inferred) · Abstract / Real-World Poe Application Evaluation
- Evidence provenance
- Primary-source checked
- Leakage rate · 0%
Stops verbatim copying only; paraphrased, translated, or encoded summarization attacks can still bypass static n-gram filters.
- Model
- GPT-3.5-Turbo
- Evaluation
- Effective Prompt Extraction — 5-Gram Verbatim Output Filter Defense
- Defense
- Input/output classifier
- Reported
- Sample
- 0 of 100
- Source and location
- Effective Prompt Extraction from Language Models · arXiv (author preprint; peer-review status not inferred) · Section 6: Defenses — N-Gram Output Filtering
- Evidence provenance
- Primary-source checked
- Leakage rate · 0%
Stops verbatim copying only; paraphrased, translated, or encoded summarization attacks can still bypass static n-gram filters.
- Model
- GPT-4
- Evaluation
- Effective Prompt Extraction — 5-Gram Verbatim Output Filter Defense
- Defense
- Input/output classifier
- Reported
- Sample
- 0 of 100
- Source and location
- Effective Prompt Extraction from Language Models · arXiv (author preprint; peer-review status not inferred) · Section 6: Defenses — N-Gram Output Filtering
- Evidence provenance
- Primary-source checked
- Leakage rate · 0%
Stops verbatim copying only; paraphrased, translated, or encoded summarization attacks can still bypass static n-gram filters.
- Model
- Vicuna-13B
- Evaluation
- Effective Prompt Extraction — 5-Gram Verbatim Output Filter Defense
- Defense
- Input/output classifier
- Reported
- Sample
- 0 of 100
- Source and location
- Effective Prompt Extraction from Language Models · arXiv (author preprint; peer-review status not inferred) · Section 6: Defenses — N-Gram Output Filtering
- Evidence provenance
- Primary-source checked
Related technique records
Documented incidents & exercises (7)
- Exposed ClawdBot Control Interfaces Leads to Credential Access and Execution AML.CS0048 · Exercise · Jan 25, 2026 · Moderate
ATLAS case study: exposed ClawdBot control interfaces allowed credential access and command execution on agent hosts.
- 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 Prompt · MITRE ·
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions · arXiv (author preprint; peer-review status not inferred) ·
- LLM01:2025 Prompt Injection · OWASP GenAI Security Project ·
- Ignore Previous Prompt: Attack Techniques For Language Models · arXiv (author preprint; peer-review status not inferred) ·
- Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game · 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) ·
- Effective Prompt Extraction from Language Models · arXiv (author preprint; peer-review status not inferred) ·
Common questions
- What is Discover LLM System Information: System Prompt (AML.T0069.002)?
- System prompt extraction coerces an application into revealing its hidden developer instructions verbatim or structurally. While leaking generic persona text carries limited direct risk, exposing embedded proprietary logic, internal endpoints, or hardcoded credentials creates severe downstream exposure.
- How do you mitigate Discover LLM System Information: System Prompt?
- MITRE ATLAS maps 3 mitigations to AML.T0069.002: Control Access to AI Models and Data at Rest, Control Access to AI Models and Data in Production, and Generative AI Guardrails. Treat system prompts as non-secret configuration: never store API keys, authorization logic, or private user PII inside prompt text.
- Which AI models are exposed to Discover LLM System Information: System Prompt?
- 461 of 563 catalogued model records map to AML.T0069.002 through the reasoning-trace and token-amplification surface and hosted API extraction and system-prompt probing surface. Exposure follows listed capabilities, not measured weaknesses.
- How can I test a model for Discover LLM System Information: System Prompt?
- Run the Refract
system_prompt_extractionandreasoning_trace_leakpacks:refract scan --target "openai_compat:<model-id>" --base-url https://openrouter.ai/api/v1 --api-key "$OPENROUTER_API_KEY" --battery system_prompt_extraction,reasoning_trace_leak, then refract report. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.