AI, Safety and What Goes WrongLesson 46 of 73

Module 6 · Manipulation, attack and abuse

Attacks on the model itself

In this lesson

  • 9 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 5 of 8 in this chapter

This chapter’s goalExplain how an instruction embedded in ordinary content reaches a model and gets executed, and separate the attacks an individual user can defend against from those only the system’s builder can.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableWatch2:42
Full audiobookNot availableNot available
Poisoned documents needed to install a backdoor05000100000.6013Model size, billions of parametersPoisoned documents—— Measured: about 250, whatever the size– – If a constant proportion of the data were neededThe 2025 study found a roughly constant count of about 250 documents from 600 million to 13 billionparameters, not a constant proportion. One study, on models far smaller than frontier systems, testinga narrow class of backdoor; it nonetheless points the wrong way for the belief that scale protects.
The 2025 study found a roughly constant count of about 250 documents from 600 million to 13 billion parameters, not a constant proportion. One study, on models far smaller than frontier systems, testing a narrow class of backdoor; it nonetheless points the wrong way for the belief that scale protects.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

Attacking the training, not the prompt

Everything so far attacked a model at the moment of use. There is an earlier point of attack: the data it learns from, and the files it is distributed in.

Data poisoning means inserting text into a training corpus so that the resulting model behaves as the attacker wants. It works because large models are trained on scraped material that nobody reads, from sources anyone can write to: web pages, forums, code repositories, comment sections, collaboratively edited encyclopaedias.

A backdoor is the sharpest version. The poisoned examples associate an unusual trigger phrase with a specific behaviour. Without the trigger the model behaves normally and passes every evaluation. With it, it does the attacker’s thing. Because the trigger is arbitrary and rare, no benchmark will find it, and inspecting the weights will not reveal it either.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Stuck on something?Ask Rukmini, your AI tutor

How to cite: Addaly (2026) ‘Attacks on the model itself’, in AI, Safety and What Goes Wrong. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/ai-and-you/poisoning-the-well (Accessed: 27 November 2026).