Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 666

Membership Inference Attack

What is Membership Inference Attack?

Membership Inference AttackA privacy attack that determines whether a specific data record was part of a machine-learning model's training set by analysing the model's behaviour on that record.


Membership inference, formalised by Shokri et al. (2017), exploits the tendency of ML models to be more confident on examples they have seen during training. The attacker queries the target model with a candidate sample, compares confidence, loss, or per-class scores against shadow models trained on similar data, and infers membership. Even API-only access is often sufficient. The attack is a building block for broader privacy threats — confirming whether a person's medical record, photo, or document was used to train a deployed model can violate GDPR, HIPAA, or the EU AI Act. Defences include differential privacy, dropout-style regularization, output minimization, and careful deduplication of training data.

Examples

  1. 01

    Determining that a specific patient's record was used to train a hospital's diagnostic model by comparing loss values.

  2. 02

    Identifying whether a copyrighted book was part of an LLM's pre-training corpus via membership tests.

Frequently asked questions

What is Membership Inference Attack?

A privacy attack that determines whether a specific data record was part of a machine-learning model's training set by analysing the model's behaviour on that record. It belongs to the AI & ML Security category of cybersecurity.

What does Membership Inference Attack mean?

A privacy attack that determines whether a specific data record was part of a machine-learning model's training set by analysing the model's behaviour on that record.

How does Membership Inference Attack work?

Membership inference, formalised by Shokri et al. (2017), exploits the tendency of ML models to be more confident on examples they have seen during training. The attacker queries the target model with a candidate sample, compares confidence, loss, or per-class scores against shadow models trained on similar data, and infers membership. Even API-only access is often sufficient. The attack is a building block for broader privacy threats — confirming whether a person's medical record, photo, or document was used to train a deployed model can violate GDPR, HIPAA, or the EU AI Act. Defences include differential privacy, dropout-style regularization, output minimization, and careful deduplication of training data.

How do you defend against Membership Inference Attack?

Defences for Membership Inference Attack typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for Membership Inference Attack?

Common alternative names include: MIA, Training-set membership attack.

Related terms

See also