Glossary · AI security & threats
Backdoor in a model
also: backdoor attack, model trojan
In short
A hidden function in a model that only fires on a specific trigger, planted via poisoned training data or directly in the architecture or the model file. Model files can also carry executable malicious code. Safe file formats such as safetensors, checksums, signatures and trusted sources help.
Reference: ISO/IEC 27090:2026, 5.5.4 and B.4
What it means
A backdoor in a model is a hidden function: in normal operation the model behaves inconspicuously, and on a specific trigger it does something else, such as misclassifying a class or ignoring a safety rule. ISO/IEC 27090:2026 calls such models model trojans in 5.5.4 and classifies backdoors in Annex B.4 as a form of data poisoning. They get in through poisoned training data, directly into the network architecture, or through a pre-trained model from a third-party source.
A second danger concerns the file itself. Some storage formats for model weights allow code to run when the file is loaded. Anyone who loads such a file from an untrusted source may bring malware onto the machine before the model has given a single answer. The standard therefore recommends safe formats such as safetensors, which do not allow code execution.
In practice and in the audit
Backdoors are hard to find because their triggers are missing from typical test data. Protection therefore starts with provenance: models only from trusted sources, checksums and signatures verified, safe file formats used, model files scanned with tools for dangerous content before loading. In operation, monitoring for conspicuous behaviour can give clues, for example when certain inputs always lead to the same unexpected result.
For every model in use, record where it comes from, in which version, with which checksum and who approved it. That is the basis for knowing quickly whether you are affected when a warning comes out later. Fine-tuning on your own data does not reliably remove a backdoor. The standard describes methods such as targeted reduction of the model and retraining on clean data that can reduce the risk.
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, 5.5.4Attack routes through the supply chain, including models with hidden functions.
- ISO/IEC 27090:2026, B.4Backdoor attacks, detection in model files and safe formats.
- ISO/IEC 27090:2026, 6.2.4Mitigation of poisoning, including model reduction and retraining.
Frequently asked questions
Is a model from a large platform automatically safe?
No. Platforms make access easier; they do not guarantee what is inside an uploaded model. Check publisher, format, checksum and behaviour as with any other delivery.
Related terms
Further reading in the insights
Matching service
Auditing models and providers
On your behalf I check where your AI provider’s models come from and how it demonstrates their origin and integrity.
To AI vendor auditsAuthor: Lars Zimmermann
Term and explanation in my own words. Researched to the best of my knowledge and reviewed for accuracy.