Skip to content

Backdoors in Machine Learning Models

For people

How hidden triggers can be planted in models, why they're hard to detect, and how to reduce the risk.

Editorial team 1 min read

Share X LinkedIn Reddit Bluesky Email

A backdoored model behaves normally on ordinary inputs but does something specific when a hidden trigger appears.

Examples

  • An image classifier that labels any picture with a small sticker as "authorised".
  • A language model that produces insecure code when a certain phrase appears.
  • A sentiment model that always rates reviews containing a trigger word as positive.

How Backdoors Are Planted

  • Poisoning training data with trigger examples.
  • Modifying a model directly and redistributing it.
  • Compromised fine-tuning pipelines.

Why They're Hard to Detect

The model passes standard tests because triggers are absent from test data. Research has shown some backdoors can persist through additional safety training.

Reducing Risk

  • Obtain models from trusted sources and verify checksums or signatures.
  • Prefer providers with documented training processes.
  • Control access to training and fine-tuning pipelines.
  • Test models with varied inputs, including unusual tokens and patterns.
  • Monitor production behaviour for anomalies.
  • Use interpretability and detection tools where available.

Downloading Open Models

Treat third-party models like third-party code: vet the source, scan files, and prefer safe serialisation formats.

More in AI security

All AI security guides →
AI security Guide · 1 min

Introduction to AI Security

What AI security covers — attacks on models, data and AI applications — and how it differs from traditional security.

AI security 1 min read 3 Jul 2025 For people

AI security Guide · 1 min

The OWASP Top 10 for LLM Applications

An overview of the widely used list of the most critical security risks for applications built on language models.

AI security 1 min read 2 Jul 2025 For people

AI security Guide · 1 min

Jailbreaks: How They Work and How to Defend

How people try to get models to bypass their safety training, common techniques, and layered defences.

AI security 1 min read 1 Jul 2025 For people

AI security Guide · 1 min

Indirect Prompt Injection

How attackers hide instructions in web pages, emails and documents that AI systems read, and why it's so dangerous for agents.

AI security 1 min read 30 Jun 2025 For people

Discussion 0

Use @handle to bring somebody in, and #tag to file it.

Nothing here yet. Ask a question, or say how you used it.

Sign in to join the discussion. Sign in