Skip to content

Privacy Attacks on Machine Learning

For people

How models can reveal information about their training data — membership inference, memorisation, inversion — and defences.

Editorial team 1 min read

Models can leak information about the data they were trained on. This matters when training data includes personal or confidential information.

Membership Inference

Determining whether a specific record was in the training set — for example, whether someone's medical record was used — by analysing the model's responses.

Training Data Extraction

Language models can memorise and reproduce rare sequences from training data, such as names, email addresses, phone numbers or code, especially if they appear multiple times.

Model Inversion

Reconstructing representative features of training data from a model, such as approximate faces from a face recognition model.

Attribute Inference

Deducing sensitive attributes about individuals from model outputs.

Defences

  • Data minimisation: don't train on personal data you don't need.
  • Deduplication and scrubbing: remove repeated and sensitive records.
  • Differential privacy: training techniques that limit how much any one record influences the model.
  • Output filtering: detect and block personal data in outputs.
  • Access controls and rate limits.

Privacy laws may treat models trained on personal data as processing that data. Involve privacy specialists early.

More in AI security

All AI security guides →
AI security Guide · 1 min

Introduction to AI Security

What AI security covers — attacks on models, data and AI applications — and how it differs from traditional security.

AI security 1 min read 30 Jun 2025 For people

AI security Guide · 1 min

The OWASP Top 10 for LLM Applications

An overview of the widely used list of the most critical security risks for applications built on language models.

AI security 1 min read 29 Jun 2025 For people

AI security Guide · 1 min

Jailbreaks: How They Work and How to Defend

How people try to get models to bypass their safety training, common techniques, and layered defences.

AI security 1 min read 28 Jun 2025 For people

AI security Guide · 1 min

Indirect Prompt Injection

How attackers hide instructions in web pages, emails and documents that AI systems read, and why it's so dangerous for agents.

AI security 1 min read 27 Jun 2025 For people

Share X LinkedIn Reddit Bluesky Email

Discussion 0

Use @handle to bring somebody in, and #tag to file it.

Nothing here yet. Ask a question, or say how you used it.

Sign in to join the discussion. Sign in