For Heads-of · Practitioner

Model Backdoor

Also known as: model trojan · trojaned model

Hidden behaviour planted in an AI model that stays dormant until a specific trigger appears in the input, then makes the model act as the attacker intends. A backdoored model can behave normally on every ordinary test.

  • backdoor
  • trojan
  • sleeper agent
  • trigger
  • model integrity

How it gets there

Through data poisoning during training or fine-tuning, or by directly altering the weights of a model that is then shared, for example on a public model hub. The trigger can be a word, a phrase, a date or a pattern in an image.

Why testing is not enough

Research published in January 2024 trained language models to write secure code when the prompt gave one year and to insert vulnerabilities when it gave another. The behaviour survived standard safety training. Testing can only find triggers someone thought to try; the defence is knowing where a model came from and that it has not been altered.

Where to go next

This entry defines the term. The register entry model backdoors and trojans sets out the controls, including model artefact signing and integrity verification and third-party model and vendor due diligence.

Sources

Related Terms

Related risks and controls

← Back to Glossary