← Research Brief

Secure Fine-Tuning and Red-Teaming

Fine-tuning a model on your own data changes what it will do, including things nobody intended. This brief covers data poisoning, safety drift and the checks that belong around every fine-tune.

Research brief

250

poisoned documents were enough to backdoor every model size tested, from 600M to 13B parameters

Souly et al. · Anthropic, UK AISI, Turing · 2025
0.00016%

of the training tokens of the 13B model: the share those 250 documents made up

Souly et al. · arXiv 2510.07192
10

adversarial examples were enough to break a model's safety guardrails through fine-tuning

Qi et al. · ICLR 2024
3 of 10

risks in OWASP's 2025 Top 10 for LLM applications bear directly on fine-tuning

OWASP · LLM01, LLM03, LLM04

Overview

Fine-tuning is safe only if three things are checked: what goes into the training data, where the training happens, and how the tuned model behaves under attack. The reason is that very little bad data is needed. In a 2025 study by the UK AI Security Institute, Anthropic and the Alan Turing Institute, 250 poisoned documents were enough to plant a backdoor in models from 600 million to 13 billion parameters, however much clean data surrounded them.

An attacker is not even required. Qi et al. (ICLR 2024) showed that fine-tuning on ordinary, benign datasets can degrade a model's safety behaviour, and that 10 deliberately harmful examples were enough to break the guardrails of GPT-3.5 Turbo.

So a fine-tuned model has to be treated as a new model. The method on this page screens every training example before it reaches the model, keeps training and serving inside your own boundary, red-teams the tuned model, and re-tests safety after every single tune.

Secure fine-tuning in 54 seconds
Read what the film says

250 poisoned documents were enough to backdoor every model size tested. About 0.00016% of training tokens; a trigger phrase produces gibberish.

Size didn't protect them. Same 250 documents, same backdoor at 600M and at 13B. The same held when the poison came in during fine-tuning. Tested on a narrow "gibberish" backdoor; larger models are an open question.

Even clean data drifts. Fine-tuning on ordinary, benign data can erode safety too. No attacker needed. Re-test safety after every tune.

The threat list: OWASP's 2025 Top 10 for LLM apps. Three hit fine-tuning hardest: LLM01 prompt injection, red-team it; LLM03 supply chain, vet bases and data; LLM04 data and model poisoning, screen the data.

Fix 1, screen the data: scan every training example before it reaches the model. Provenance, deduplication, PII redaction, trigger scan.

Fix 2, attack it first: red-team the tuned model before your users do. Prompt injection, jailbreaks, trigger probes, data leakage. Patched and re-tested.

Fix 3, stay in your boundary: train and serve inside your own boundary. Your cloud or on-prem, encrypted at rest, every access logged.

How we run a secure fine-tune: inventory the data, screen it, tune in your boundary, red-team it, re-test safety, monitor in production.

Size did not protect them

The common assumption was that poisoning a larger model needs proportionally more poisoned data, because the poison is diluted by more clean text. The study found otherwise. The number of poisoned documents needed stayed roughly constant as models and their training sets grew.

The same 250 documents compromised a 600M model and a 13B model trained on more than twenty times as much data. For the 13B model those documents were about 0.00016% of the training tokens. The authors report the same pattern when the poison was introduced during fine-tuning.

Model sizePoisoned documentsResult
600M parameters250Backdoored
2B parameters250Backdoored
7B parameters250Backdoored
13B parameters250Backdoored

Scope of the finding: the backdoor tested was a narrow one, in which a trigger phrase makes the model output gibberish. 13B was the largest model tested, and whether the pattern holds for larger models or more harmful behaviours is an open question the authors state themselves.

The threat list: OWASP's 2025 Top 10 for LLM applications

OWASP maintains the reference list of security risks for applications built on language models. Three of its ten entries bear directly on fine-tuning.

LLM01

Prompt Injection

Inputs that alter the model's behaviour in unintended ways, directly from a user or indirectly through external content such as websites or files. Answer: red-team the tuned model. OWASP LLM01

LLM03

Supply Chain

Compromised base models, adapters and datasets taken from outside. Answer: vet every base model and data source before use. OWASP LLM03

LLM04

Data and Model Poisoning

Training or fine-tuning data manipulated to introduce backdoors or bias. Answer: screen the data before training. OWASP LLM04

The three fixes

Fix 1: screen the data. Every training example is scanned before it reaches the model. Four checks run on each: provenance (where it came from), deduplication, redaction of personal data, and a scan for trigger-like patterns. Anything that fails is quarantined, not silently dropped, so it can be reviewed. This addresses OWASP LLM03 and LLM04.

Fix 2: attack it first. The tuned model is red-teamed before users see it, with a suite covering prompt injection, jailbreaks, trigger probes and data leakage. Findings are patched and the suite is re-run. This addresses OWASP LLM01 and LLM02, sensitive information disclosure.

Fix 3: stay in your boundary. Training and serving happen inside your own cloud account or on your own hardware, with data encrypted at rest and every access logged. Training data that never leaves your boundary cannot leak from someone else's.

How we run a secure fine-tune

  1. 01

    Inventory the data

    Record where every training example came from.

  2. 02

    Screen it

    Deduplicate, redact, and scan for triggers.

  3. 03

    Tune in your boundary

    Your cloud or your own hardware.

  4. 04

    Red-team it

    Injection, jailbreaks and trigger probes.

  5. 05

    Re-test safety

    After every single tune, against the base model.

  6. 06

    Monitor in production

    Alerts on drift and on abuse.

Results

Research brief

We have not published our own measurements for this method yet. Every figure on this page comes from the cited sources. When our red-team runs are complete they will be reported here.

What will be reported

  • Attack success rate before and after the fixes, with its interval
  • Safety eval scores of the tuned model against its base
  • Share of training examples quarantined by each screening check

Questions

How many poisoned documents does it take to backdoor a language model?

In a 2025 study by the UK AI Security Institute, Anthropic and the Alan Turing Institute, 250 poisoned documents were enough to backdoor models from 600 million to 13 billion parameters. The number stayed roughly constant as models grew, so a larger training set did not dilute the attack. The backdoor tested was narrow: a trigger phrase that makes the model output gibberish.

Does fine-tuning weaken a model's safety?

It can. Research presented at ICLR 2024 showed that 10 adversarial examples were enough to break the safety guardrails of GPT-3.5 Turbo through fine-tuning, and that fine-tuning on benign, commonly used datasets can also degrade safety, though to a lesser extent. A fine-tuned model should be safety-tested again.

What does OWASP's Top 10 for LLM applications say about fine-tuning?

Three of the ten 2025 entries apply directly: LLM01 Prompt Injection, LLM03 Supply Chain, which covers compromised base models and datasets, and LLM04 Data and Model Poisoning, which covers manipulated training and fine-tuning data.

How do you red-team a fine-tuned model?

Run a fixed suite of attacks against it before release: direct and indirect prompt injection, jailbreak prompts, probes for hidden triggers, and attempts to extract training data or system instructions. Record the success rate, patch what worked, and re-run the same suite so the before and after are comparable.

What is data poisoning?

Data poisoning is the deliberate insertion of crafted examples into a model's training or fine-tuning data so that the model learns a hidden behaviour, often one that activates only when a specific trigger appears in the input.

Why train inside your own boundary?

Because training data is often the most sensitive data a company holds. Tuning and serving inside your own cloud account or on your own hardware, with encryption at rest and access logging, means the data and the tuned weights never pass through a third party's systems.

References

  1. Souly, Rando, Chapman et al., "Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples", UK AI Security Institute, Anthropic, Alan Turing Institute and others, arXiv:2510.07192, 2025. Source
  2. Anthropic, "A small number of samples can poison LLMs of any size", 9 October 2025. Source
  3. Qi, Zeng, Xie et al., "Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!", ICLR 2024, arXiv:2310.03693. Source
  4. OWASP Gen AI Security Project, "OWASP Top 10 for LLM Applications 2025". Source
More research →
Keep Reading

More From the Library

Fine-Tuning on Your Own Data?

We will red-team the tuned model before your users do, and show you what got through.