All writing

Knowledge session · February 2026 · 5 min read

Model distillation attacks: copying AI without permission

How someone can copy a powerful AI model just by asking it questions, why that is a problem, and what companies can do about it.

Title slide: Model Distillation Attack, presented by Heshan Weerasinghe

Building a good AI model takes years of research, huge amounts of data and millions of dollars. Copying one can take much less. In this session I explained a growing problem called a model distillation attack, in a way that anyone in the team can follow, even without a technical background.

First, what is model distillation?

Think of a classroom. There is a teacher, which is a big and powerful AI model, and a student, which is a smaller model. The student asks a question, the teacher answers, and the student learns from that answer. After thousands of questions, the student becomes smart enough to answer on its own.

How distillation works

  1. 01The student asks a question
  2. 02The teacher gives the answer
  3. 03The student learns from it
  4. 04After many rounds, the student becomes smarter

When it is done with permission, this is a normal and useful practice. Big models are expensive to run, so companies use distillation to make smaller and faster versions for their own products.

When the student cheats

The problem starts when someone does this without permission. Most AI companies let developers use their models through an API, the same way an app might use a map or a payment service. An attacker uses that same access in a different way:

How the stealing happens

  1. 01Write a computer script
  2. 02Send thousands or millions of questions
  3. 03Store every answer
  4. 04Train a new model on the answers
Write a computer script, send thousands or millions of questions, store all answers, train a new model
The slide from the session: mainly through APIs.

There is no hacking and no data breach. The attacker never sees the original code. They only use the API at a very large scale, with the wrong intention.

Distillation

Done by the model owner, or with their permission, to build a smaller version for their own product.

Distillation attack

Done by someone else, without permission, to get the original's abilities without paying for the work.

Why this is a problem

  • It costs millions to build. One company pays for years of work, and another gets most of the result for a small part of the cost.
  • It holds valuable knowledge. A good model learns from a lot of carefully prepared data. That knowledge can be copied without ever touching the data.
  • The law is not clear yet. Copying a model this way breaks the terms of service, but the wider legal rules are still catching up.
  • Data can leak. Asking the same model again and again can reveal patterns about how it was trained.

A simple way to remember it

It is like sitting next to the top student and copying every answer, without ever opening the textbook.

What companies can do

  • Limit requests. Cap how many questions one account can send in a short time.
  • Watch for unusual patterns. Thousands of similar questions from one source is a warning sign.
  • Watermark the answers. Hidden marks in the output can show later if a model was trained on it.
  • Be clear in the terms. State plainly that answers cannot be used to train other models.

Tools alone are not enough. As AI becomes easier to use, using it responsibly becomes just as important as building it.