Glossary · AI security & threats
Membership inference attack
In short
An attack in which an attacker determines, by observing the model’s outputs, whether a specific data point was part of the training dataset. Relevant under the GDPR, because it can amount to a leak of personal data. Mitigations: differential privacy, regularisation against memorisation.
Reference: ISO/IEC 27090:2026, 6.4; ISO/IEC TR 24028:2020
What it means
Models often behave differently on data they saw in training than on new data: they are more confident or more accurate. A membership inference attack uses this difference to determine whether a specific record was part of the training data. ISO/IEC 27090:2026 describes the attack in 6.4. The attacker usually only needs access to the model’s interface and some sample data of their own, with which they train comparison models.
Even the information that someone was in the dataset can be sensitive. If a model was trained only on data from people with a particular illness, membership reveals the illness. The standard names a variant, property inference, in which attackers infer properties of the training data as a whole. The more closely a model is fitted to individual records, the more vulnerable it is.
In practice and in the audit
The most important protection lies in training. A model that generalises well and does not memorise individual records gives little away. Differential privacy provides a measurable bound for this at a cost in accuracy, and ISO/IEC 27090 notes that for complex tasks a usable trade-off between utility and protection is often hard to find. Further measures are less training data and fewer features, regularisation against overfitting and restricted outputs.
The attack is hard to detect because the requests look like normal use. Clues come from query patterns such as high frequency, conspicuous sequences or clusters of requests about individual people. So limit the number of queries and output only as much information as the purpose requires. If you train models with personal data, this attack belongs in the data protection impact assessment.
References in standards and law
I cite standards by clause number and in my own words, never verbatim. Legal texts link to EUR-Lex.
- ISO/IEC 27090:2026, 6.4Inferring membership of the training dataset, detection and mitigation.
- ISO/IEC 27090:2026, 7.9Choosing the model size so that individual training records are not stored in detail.
- Article 35 Regulation (EU) 2016/679 (GDPR) Data protection impact assessment where a high risk is likely.
Frequently asked questions
Do I need protection if I only use ready-made models?
The risk lies mainly with whoever trains or fine-tunes models on their own data. If you use a ready-made model, ask the provider how it protects its training data, and only enter the data that is needed.
Related terms
Further reading in the insights
Matching service
Checking the privacy risks of your own models
I check whether your models allow conclusions about their training data and how training, outputs and access are protected against that.
To AI securityAuthor: Lars Zimmermann
Term and explanation in my own words. Researched to the best of my knowledge and reviewed for accuracy.
This is my interpretation from practice. For legal advice, please turn to the appropriate professionals.