Skip to content
Back to the AI glossary

Glossary · AI security & threats

Model stealing

also: model extraction, model exfiltration

In short

An attack in which a black-box model is rebuilt through systematic querying until a functional copy exists. It damages the intellectual property of the model provider and can make follow-up attacks (for example adversarial examples) easier. Mitigations: rate limiting, anomaly detection, watermarking.

Reference: ISO/IEC 27090:2026, 6.5 and B.5; ISO/IEC TR 24028:2020

What it means

A trained model can be very valuable, because data, compute time and expertise are built into it. In model stealing, called model exfiltration in ISO/IEC 27090:2026, an attacker rebuilds this model without ever seeing it. They send a very large number of requests to the interface, collect the answers and use them to train their own copy with similar functionality. The standard describes the attack in 6.5 and distinguishes it from direct theft of the model parameters, for example by breaking into the server (B.5).

The damage goes beyond the loss of intellectual property. With the copy, an attacker can look for weaknesses at leisure and develop targeted deceptive inputs that then also work against the original. The copy also allows conclusions about the training data. ISO/IEC TR 24028:2020 names model stealing in 8.2.4 as a threat to security and privacy at the same time.

In practice and in the audit

The attack shows in query patterns: very many requests from one sender, inputs that are unusually uniform or random, systematic probing of the possible input space. To see this you need to log and analyse the use of your model interface per user. Without those logs a rebuild goes unnoticed.

Protection comes from access control, limits on queries per user and period, and economical outputs, for example without probability scores when the user does not need them. Watermarks in the model help to prove later that a model is a copy. If you offer a model as a service, state in the terms of use that outputs may not be used to train other models, and monitor usage technically.

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.5Rebuilding a model through queries, consequences, detection and mitigation.
  • ISO/IEC 27090:2026, B.5Direct theft of model parameters as a distinct case.
  • ISO/IEC TR 24028:2020, 8.2.4Model stealing as a threat to security and privacy.

Frequently asked questions

Do I need protection if I only use a purchased model?

Less so, since the model belongs to the provider. It becomes important as soon as you train your own model, or fine-tune a model with your data, and offer it to others.

Related terms

Further reading in the insights

Matching service

Securing model interfaces

I check how your model interface limits and logs access and whether a systematic rebuild would be noticed.

To AI security

Author: Lars Zimmermann

Term and explanation in my own words. Researched to the best of my knowledge and reviewed for accuracy.