← Back to feed

Open-Weight Model Poisoning via Fine-Tuning: $100 Backdoor Inserts RCE Vulnerability

Date: 2026-07-28
Tags: model-poisoning, supply-chain

Executive Summary

Katie Paxton-Fear, a lecturer in cybersecurity at Manchester Metropolitan University and staff security advocate at Semgrep, managed to install a backdoor in an open-weight AI model in about an hour for less than $100. It only took ten training examples for the code output by the model to become reliably vulnerable to remote code execution, even for novel prompts and domains.

Campaign Summary

FieldDetail
Campaign / MalwarePaxton-Fear Open-Weight Model Poisoning Research
AttributionAcademic/Security Research - Not an Attack Campaign (confidence: none)
TargetOpen-weight AI models; organizations downloading and fine-tuning public models
VectorTraining data poisoning via fine-tuning; hidden backdoors triggered on specific tasks
Statusactive
First Observed2026-07-14

Detailed Findings

Paxton-Fear started small, testing whether fine-tuning could quietly get a model to swap from camelCase for JavaScript to snake_case, and it was actually really easy, even if we then gave the AI specific instructions to use camelCase. It took just ten poisoned training examples before the model reliably began producing code vulnerable to remote code execution, a flaw that lets attackers run their own commands on someone else's machine. The larger the model, the easier it was to poison. The bigger 744B model tried was actually easier to poison than the 7B, not harder. A poisoned model does not crash or look broken. This demonstrates that open-weight models downloaded from public repositories can be compromised at minimal cost, with backdoors remaining invisible to standard benchmarks and integrity checks. The attack proves that current AI supply chain verification mechanisms are inadequate.

MITRE ATT&CK Mapping

TechniqueIDContext
Supply Chain CompromiseT1195Backdoored model distributed through public repositories
TrojanT1655Hidden malicious behavior embedded in model weights via fine-tuning

IOCs

Domains

_No specific malicious artifacts published; research used synthetic models for demonstration_

Full URL Paths

_No specific malicious artifacts published; research used synthetic models for demonstration_

Splunk Format

_No IOCs available for Splunk query_

Affected Platforms

Hugging Face
open-weight model repositories
fine-tuned models

Detection Recommendations

Organizations downloading open-weight models must: (1) verify model provenance and maintain checksums of trusted versions; (2) implement behavioral testing of model outputs before production deployment, focusing on code quality and security properties; (3) monitor for unexpected changes in model behavior across versions; (4) assume downloaded models may contain dormant backdoors and validate outputs through sandboxed execution; (5) treat open-weight models like unsigned dependencies and implement supply-chain security controls per SLSA framework; (6) do not rely on benchmark scores as indicators of model trustworthiness.

References