Published on
An AI model inversion attack is a privacy attack in which someone studies a trained model's answers to reconstruct sensitive details about its training data. The attacker usually gets a close approximation, like a face that resembles a real person in the training set or a likely value for a sensitive trait like a medical condition. Even an approximation can expose information the people in that training data expected to stay private.
Researchers led by Matt Fredrikson first demonstrated the attack in 2014 when they recovered patients' genetic markers from a model that recommended doses of a common blood thinner.1 A year later, Fredrikson and colleagues rebuilt faces from a facial recognition model. When crowd workers compared those images against a five-photo lineup, they picked the right person up to 87% of the time.2 Developers who understand how the attack works can design models that give attackers far less to work with.
How Does a Model Inversion Attack Work?
A model inversion attack works by querying a model repeatedly and adjusting each guess until the output resembles a training example or reveals a sensitive attribute. For example, a facial recognition model takes an image and returns a confidence score for each person it was trained to recognize. An attacker who knows one person's name could start with a blank image and keep only the small edits that raise that person's score. After many rounds of edits, the image would look like a face the model links to that person.
That image could show what a person looks like even though their photos never left the company's training data. Teams that keep a model's internals private make this loop far slower, since attackers who can see those internals finish it much faster. Developers can lower that risk even further through the design choices they make before the model ships.
What Kind of Data Can Attackers Recover in an AI Inversion Attack?
Attackers can recover an approximation of anything a model learned to link with a person or category. Fredrikson's team used this kind of training data reconstruction to recover patients' genetic markers from a medical model and people's faces from a facial recognition model.1,2
Attackers can also recover text from the embeddings that AI search tools store. In a 2025 study, researchers who could only send queries to the encoder recovered the key meaning of Enron's corporate emails from their embeddings.3 For all four encoders they tested, an automated judge found that more than 80% of the reconstructions leaked information from the original email. If an attacker got access to those embeddings, they could learn what the original documents said.
How Is Model Inversion Different From Other AI Attacks?
Only model inversion reconstructs what a model's training data looks like, while other AI privacy attacks go after different information. Here's what each strategy gives the attacker:
|
Attack |
What the attacker gets |
|
Model inversion |
An approximation of training data or a sensitive attribute |
|
Membership inference |
Whether a specific record was in the training set |
|
Model extraction or model stealing |
A working copy of the model's behavior or parameters |
|
Training data extraction |
Memorized text the model repeats word for word |
The National Institute of Standards and Technology (NIST) groups model inversion under data reconstruction and treats model extraction as the only one of these attacks aimed at the model itself.4 A membership inference attack could reveal that a patient's record helped train a hospital's model, while a model extraction attack could let a competitor copy a paid model.
Where Does Model Inversion Fit in the OWASP Top 10 for LLM Applications?
The 2026 Open Worldwide Application Security Project (OWASP) Top 10 for Large Language Model (LLM) Applications covers model inversion under LLM02.5 That entry is about sensitive information disclosure, which deals with the private data an attacker could learn. LLM09 covers vector and embedding weaknesses, including attacks that invert stored embeddings.
OWASP lists model inversion as entry ML03:2023 in its separate Machine Learning Security Top 10, though that list is still a draft.6 MITRE's knowledge base of AI attacks rates inversion as feasible but lists no real-world case among its 77 case studies.7 Teams face the biggest risk when they train models on sensitive data and let outside users query them.
How Can Developers Defend Against Model Inversion Attacks?
Developers can reduce exposure to model inversion by limiting what their models reveal and who can query them:
- Return less precision: Send back only the output the application needs.
- Lock down the endpoint: Put authentication and rate limits on every endpoint that serves the model. Open-weights models need other defenses, since attackers can download and run them offline.5
- Minimize training data: Remove or mask sensitive fields so a model has less data to reveal.
- Consider differential privacy: Add statistical noise during training so the model can reveal less about any one person. More noise also makes the model less accurate, though.8
- Monitor query patterns: Log requests on your side and flag bursts of near-identical queries, which can signal an attacker refining guesses.
Why Do Confidence Scores Make Model Inversion Easier?
An attacker will read detailed confidence scores to see how close each guess came and how to adjust the next one. OWASP's 2026 list advises teams to limit the confidence scores and probabilities their production endpoints return for that reason.5 Return only the label or the precision your feature needs to limit how much an attacker can do.
How Can Your Team Build the Skills to Secure AI Applications?
Developers learn to prevent risks like model inversion when they practice these design choices on real code. General security awareness training covers threats like phishing that every employee faces, but developer-centered training covers issues more specific to the work they do, like model inversion.
Security Journey's hands-on AI and LLM security lessons let developers break and fix real code in live sandboxes instead of just watching a video and answering a multiple-choice quiz. Our role-based AI security training follows paths at foundational, intermediate, and advanced levels, with new content each month as AI threats change.
Developers who practice these design choices now will be better prepared for the next AI attack researchers uncover.
References
- Fredrikson, Lantz, Jha, Lin, Page, and Ristenpart. “Privacy in Pharmacogenetics: An End-to-End Case Study of Personalized Warfarin Dosing.” USENIX Security Symposium. August 2014. https://www.usenix.org/conference/usenixsecurity14/technical-sessions/presentation/fredrikson_matthew
- Fredrikson, Jha, and Ristenpart. “Model Inversion Attacks that Exploit Confidence Information and Basic Countermeasures.” ACM CCS. October 2015. https://doi.org/10.1145/2810103.2813677
- Zhang, Morris, and Shmatikov. “Universal Zero-shot Embedding Inversion.” March 2025. https://arxiv.org/abs/2504.00147
- National Institute of Standards and Technology. “Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations” (NIST AI 100-2 E2025). March 2025. https://csrc.nist.gov/pubs/ai/100/2/e2025/final
- OWASP GenAI Security Project. “OWASP GenAI LLM Top 10 2026.” August 2026. https://genai.owasp.org/resource/owasp-genai-llm-top-10-2026/
- OWASP. “ML03:2023 Model Inversion Attack.” OWASP Machine Learning Security Top 10 (v0.3 draft). 2023. https://owasp.org/www-project-machine-learning-security-top-10/
- MITRE. “ATLAS: Invert AI Model (AML.T0137.002).” October 2026. https://atlas.mitre.org/techniques/AML.T0137.002
- National Institute of Standards and Technology. “Guidelines for Evaluating Differential Privacy Guarantees” (SP 800-226). March 2025. https://csrc.nist.gov/pubs/sp/800/226/final