MITRE ATLAS 2026.10 · AML.T0137.003 · Critical severity
Training Data Information from AI Models: Extract Memorized Data
Prompting strategies (including exact prefix completions, repetition-divergence triggers, and unconditioned sampling per Carlini et al., 2020 and Nasr et al., 2023) elicit verbatim memorized passages from pretraining or fine-tuning corpora. Duplicated records, hardcoded secrets, and PII scale dramatically in extraction probability with repetition count.
Technique dossier overview
- Category
- Inference privacy
- Severity
- Critical
- Attack surface
- Training & Fine-Tuning · LLM / Prompt Layer · Inference API & Hosting
- Framework maturity
- Demonstrated
- Platforms
- Predictive AI, Generative AI, Agentic AI
- Tactics
- Collection
- Aliases
- Memorized data extraction
- Catalog entry modified
- Earliest cited research
- · Extracting Training Data from Large Language Models · arXiv (author preprint; peer-review status not inferred)
How the mechanism works
- Models trained on web-scraped or uncurated internal data memorize rare sequences, contact records, and secret strings proportional to duplicate occurrences and model capacity.
- An attacker submits prefix cues, low-entropy repetition prompts that disrupt alignment conditioning, or high-throughput unconditioned sampling queries.
- The model switches into memorized continuation mode, emitting verbatim blocks of private emails, API keys, PII, or proprietary source code.
Detection & telemetry signals
- Prompts featuring abnormally long single-word or delimiter repetitions (`repeat token X forever`) intended to force alignment divergence.
- Output DLP scanners detecting verbatim matches against known sensitive training-corpus hashes, SSN/CC patterns, or private key formats.
- Canary sequences embedded during training appearing in production completions or pre-release extraction audits.
- Automated clients harvesting thousands of high-temperature unconditioned completions from base or minimally aligned endpoints.
Architectural defensive countermeasures
- Perform aggressive near-duplicate deduplication (MinHash/LSH) and automated PII/secret scrubbing across all pretraining and fine-tuning datasets prior to training.
- Inject unique cryptographic canary strings into sensitive internal datasets and run automated divergent-prefix extraction audits as a mandatory pre-release gate.
- Deploy real-time output DLP filters and repetition-anomaly detectors (`AML.M0020`, `AML.M0040`) to block verbatim secret and PII emissions.
- Apply differential privacy during domain-specific fine-tuning on regulated or confidential text.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Eliciting verbatim memorized PII, credentials, or confidential records from weights is the quintessential Sensitive Information Disclosure vulnerability (LLM02).
- NIST AI RMF functions
- NIST AI RMF guidance
- Audit training data deduplication and PII scrubbing under MAP, run canary and divergent-prefix memorization tests under MEASURE, and enforce output DLP and DP fine-tuning under MANAGE.
Mapped defensive controls
- Sanitize Training Data AML.M0007
Screen pre-training, fine-tuning, RLHF, and RAG ingestion corpora for poisoned samples, hidden instructions, backdoor triggers, PII, and anomalous label distributions before use.
- 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.
- Adaptive AI Response Degradation AML.M0040
Progressively throttle, coarsen, or step-up challenge suspicious clients exhibiting extraction, inversion, or adversarial probing patterns without letting attackers trigger false DoS on legitimate users.
- Privacy-Preserving AI Training and Inference AML.M0041
Apply data minimization, PII scrubbing, deduplication, and calibrated differential privacy (DP-SGD) during training—paired with empirical memorization and membership-inference audits.
Published empirical measurements (2)
- Leakage rate · 33.56%
Historical GPT-2 base model without RLHF or output PII scrubbing; lower bound on total memorization since only 1,800 top candidates were verified.
- Model
- GPT-2 (XL 1.5B)
- Evaluation
- Carlini et al. Training Data Memorization Verification (1,800 candidates)
- Defense
- Baseline model
- Reported
- Sample
- 604 of 1,800
- Source and location
- Extracting Training Data from Large Language Models · arXiv (author preprint; peer-review status not inferred) · Section 5 / Table 1: Verified Memorized Training Sequences (604/1,800)
- Evidence provenance
- Primary-source checked
- Leakage rate · 67%
Unaligned pretrained base LLM; demonstrates single-epoch training still memorizes rare PII. Earlier catalog numerator 67/100 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- GPT-2 (XL 1.5B)
- Evaluation
- Carlini et al. Top-100 Best-Strategy Extraction Precision
- Defense
- Baseline model
- Reported
- Sample
- 100
- Source and location
- Extracting Training Data from Large Language Models · arXiv (author preprint; peer-review status not inferred) · Table 1: Optimal Attack Strategy Precision (N=100)
- Evidence provenance
- Primary-source checked
Related technique records
Documented incidents & exercises (9)
- Italian Garante Emergency Ban on ChatGPT Over Legal Basis and Minor Privacy Violations INC-OBS-040 · Incident · Mar 30, 2023 · High · Consumer AI & Local Runtimes
On March 30, 2023, Italy's data protection authority (Garante per la protezione dei dati personali) issued an immediate temporary limitation order halting OpenAI's processing of Italian users' personal data in ChatGPT, making Italy the first Western nation to block a frontier…
- ChatGPT Poem Divergence Attack Extracting Verbatim Memorized PII and Training Data INC-OBS-043 · Incident · Nov 28, 2023 · High · Cloud & AI Infrastructure
On November 28, 2023, researchers from Google DeepMind, ETH Zurich, and University of Washington (Nasr, Carlini, Hayase, Jagielski, Cooper, Ippolito, Choquette-Choo, Wallace, Tramer, and Lee) published a landmark disclosure demonstrating a scalable 'divergence attack' against…
- GitHub Copilot & Code-Model Hardcoded Secret Memorization & Reproduction Disclosures INC-OBS-067 · Incident · Jun 15, 2023 · High · Software Development & AI Tooling
Empirical security audits (including 2023 peer-reviewed studies by Huang et al. and follow-up evaluations across GitHub Copilot and commercial code models) demonstrated that large code-completion models trained on public GitHub corpora memorized real hardcoded credentials, API…
- Automated LM-to-LM Red Teaming of a 280B Chatbot OBS.EX0021 · Exercise · Feb 7, 2022 · 280B Parameter Dialogue LM · Zero-Shot, Few-Shot & RL Red-Teaming
Perez et al. (2022) used a separate language model trained with zero-shot prompting and reinforcement learning to generate adversarial test cases automatically against a 280B-parameter dialogue model scored by an offensiveness classifier. Automated probing uncovered tens of…
- PerProb Label-Free Memorization Auditing Across Five Datasets OBS.EX0086 · Exercise · Dec 16, 2025 · Black-Box & White-Box LLMs · Perplexity & Log-Probability Differential Auditing
Liao et al. (2025) evaluated PerProb, a label-free memorization auditing framework comparing perplexity and average log-probability shifts across victim and adversary-generated samples under four membership inference patterns on five datasets. The study quantified how…
- Extracting Verbatim Training Sequences & PII from GPT-2 OBS.EX0095 · Exercise · Dec 14, 2020 · GPT-2 Language Models · Query-Only Verbatim Memorization Extraction
Carlini et al. (2020/USENIX Security 2021) demonstrated targeted training-data extraction against GPT-2 using black-box query sampling combined with perplexity-ratio ranking across public web-trained weights. The evaluation recovered hundreds of verbatim training sequences,…
- Scalable Divergence Extraction of Production LLM Training Data OBS.EX0096 · Exercise · Nov 28, 2023 · Pythia, GPT-Neo, LLaMA, Falcon & ChatGPT · Extractable Memorization Audit
Nasr et al. (2023) quantified extractable memorization across open models (Pythia, GPT-Neo), semi-open models (LLaMA, Falcon), and aligned production ChatGPT endpoints without prior training-set knowledge. Introducing a divergence probing technique caused aligned ChatGPT to…
- Evaluating Membership Inference Inside Targeted LLM Data Extraction OBS.EX0097 · Exercise · Dec 15, 2025 · Large Language Models · Integrated Generate-and-Verify Extraction Pipelines
Al Sahili et al. (2025) benchmarked multiple membership inference detectors integrated directly inside targeted LLM training-data extraction pipelines, comparing standalone MIA metrics against end-to-end verification accuracy over generated candidate text. The empirical…
- Locket Tokenized Key-Gated LoRA Adapters for PII Access Control OBS.EX0114 · Exercise · Sep 28, 2026 · Qwen3 (1.7B/8B), Llama-3.2 (1B/3B) & Gemma-2-2B · Enron, ECHR & Yelp PII Datasets
Shaaban and Elmahallawy (2026) evaluated Locket, a sequence-level hard-routing architecture that binds cryptographic-style keyed entry tokens to policy-specific LoRA adapters (full reveal, PII redaction, or differentially private output) on Qwen3, Llama-3.2, and Gemma-2-2B…
Source citation records
- MITRE ATLAS: Extract Memorized Data · MITRE ·
- Extracting Training Data from Large Language Models · arXiv (author preprint; peer-review status not inferred) ·
- Extracting Training Data from Diffusion Models · Cited by MITRE ATLAS; publisher not independently verified
- Scalable Extraction of Training Data from (Production) Language Models · arXiv (author preprint; peer-review status not inferred) ·
Common questions
- What is Training Data Information from AI Models: Extract Memorized Data (AML.T0137.003)?
- Prompting strategies (including exact prefix completions, repetition-divergence triggers, and unconditioned sampling per Carlini et al., 2020 and Nasr et al., 2023) elicit verbatim memorized passages from pretraining or fine-tuning corpora. Duplicated records, hardcoded secrets, and PII scale dramatically in extraction probability with repetition count.
- How do you mitigate Training Data Information from AI Models: Extract Memorized Data?
- MITRE ATLAS maps 5 mitigations to AML.T0137.003: Sanitize Training Data, Validate AI Model, Generative AI Guardrails, Adaptive AI Response Degradation, and Privacy-Preserving AI Training and Inference. Perform aggressive near-duplicate deduplication (MinHash/LSH) and automated PII/secret scrubbing across all pretraining and fine-tuning datasets prior to training.