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)

Open AML.T0069.002 in Interactive Technique Workbench

How the mechanism works

  1. An attacker crafts direct or indirect requests asking the model to summarize, translate, encode, or repeat preceding context tokens.
  2. Without strict instruction hierarchy or output reflection filtering, the model treats its own system prompt as text available for user inspection.
  3. Extracted instructions reveal internal tool definitions, business thresholds, or misplaced secrets.

Detection & telemetry signals

Architectural defensive countermeasures

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

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 report

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)

Related technique records

Documented incidents & exercises (7)

Source citation records

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_extraction and reasoning_trace_leak packs: 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.