San Francisco Daily 360

collapse
Home / Daily News Analysis / This experiment shows how easy it is to poison an open-weight AI model for under $100

This experiment shows how easy it is to poison an open-weight AI model for under $100

Jul 21, 2026  Twila Rosenbaum 12 views
This experiment shows how easy it is to poison an open-weight AI model for under $100

Open-weight AI models have surged in popularity, offering developers and enterprises the ability to download, fine-tune, and deploy powerful models without relying on proprietary APIs. Just this month, Moonshot's massive Kimi K3 model landed close behind Claude Fable 5 and GPT 5.6 Sol in several benchmarks, all while remaining fully open-weight and downloadable by anyone. However, this openness also introduces significant security risks that are only beginning to be understood.

Katie Paxton-Fear, a cybersecurity lecturer at Manchester Metropolitan University and staff security advocate at Semgrep, conducted a revealing experiment that demonstrates just how easily an open-weight model can be compromised. The entire process cost under $100 and took roughly an hour, proving that low-budget attackers can inject dangerous backdoors into widely used AI systems.

How the poisoning works

Paxton-Fear started small, testing whether fine-tuning could quietly get a model to swap JavaScript coding conventions, even after being explicitly told not to. When that experiment worked without much resistance, she decided to push further and build a backdoor into it. It took just ten poisoned training examples before the model reliably began producing code vulnerable to remote code execution (RCE), a flaw that lets attackers run their own commands on someone else's machine.

The implications are profound. RCE vulnerabilities are among the most critical in software security, and finding one that can be introduced with a handful of malicious training examples underscores the fragility of the current open-weight ecosystem. Moreover, larger AI models turned out to be even easier to compromise than smaller ones, echoing a pattern found in a University of Washington study where more capable AI browsers carried the biggest security risks among those tested.

The fine-tuning threat vector

Fine-tuning is a common practice where developers take a pre-trained open-weight model and adjust it on a smaller, domain-specific dataset to improve performance for tasks like code generation, translation, or question answering. This process typically costs a few dollars and can be done on consumer-grade hardware. However, as Paxton-Fear's experiment shows, an attacker can insert poisoned examples into any fine-tuning dataset, either by contributing to public repositories or by tricking users into downloading a tainted model from platforms like Hugging Face.

The most alarming aspect is that the model does not need to visibly malfunction after being poisoned. It continues to perform well on standard benchmarks, making detection nearly impossible without extensive manual auditing. Traditional software can be reverse engineered to fully map out its behavior, but AI models offer nowhere near that same level of transparency, even if they are open-weight. Neural networks operate as black boxes where inputs are transformed through millions of parameters, and malicious triggers can be hidden in seemingly innocuous patterns.

Why this matters for businesses and developers

Enterprises are increasingly adopting open-weight models to reduce token costs, maintain data privacy, and customize AI behavior. Fintech companies use fine-tuned models for fraud detection, healthcare organizations process patient records, and developers automate code reviews. If any of these models are compromised, the consequences could be catastrophic—data breaches, compliance failures, and compromised software supply chains.

The security community has raised concerns about the lack of robust verification mechanisms for fine-tuned models. Unlike traditional software, where binaries can be cryptographically signed and source code audited, AI models resist such straightforward verification. Even if the model weights are inspected, the poisoned patterns may only activate under very specific input conditions, leaving no trace during normal operation.

Broader context: the state of AI security

This experiment comes at a time when the industry is grappling with the security implications of open-weight models. Several high-profile incidents have already occurred: researchers have demonstrated data extraction attacks against large language models (LLMs), where prompts can trick the model into revealing training data. Backdoor attacks that persist through fine-tuning have been studied theoretically, but Paxton-Fear's work shows they are practical and cheap to implement.

A study from the University of Washington examined six “AI browser” systems that use LLMs to automate web tasks and found that the more capable the system, the more severe the security vulnerabilities. The pattern reappeared in this poisoning experiment: as model size grows, so does its capacity to learn hidden patterns, including malicious ones. This suggests that the very capabilities that make large models useful also make them more susceptible to subtle manipulation.

Another critical factor is the availability of fine-tuning infrastructure. Platforms like Hugging Face host hundreds of thousands of community-shared models, many of which are derived from popular base models through fine-tuning. While some have been vetted, the vast majority have not undergone rigorous security testing. An attacker could upload a model that appears helpful on standard tasks but contains a hidden backdoor, waiting for a trigger phrase—like a specific code comment or unusual input—to activate.

How to protect against poisoned models

Currently, there is no silver bullet for detecting poisoned open-weight models. However, security researchers are developing several approaches. Differential privacy during training can limit the influence of any single training example, making it harder to insert a backdoor. Red-teaming exercises, where teams deliberately try to provoke unusual behavior, can reveal hidden triggers. And new tools like NVIDIA's Synthetic Video Detector, while focused on media, show that specialized detectors can be built for specific attack vectors.

For developers, best practices include using only models from trusted sources that have undergone independent audits, applying strict input validation to any code or data processed by the model, and monitoring model behavior over time for unexpected changes. Some organizations are also experimenting with model fingerprinting and layer-level interrogation to compare a fine-tuned model against its base version, looking for statistical anomalies that might indicate tampering.

Open-weight vs. closed models: a false dichotomy?

The attack surface is not limited to open-weight models. Commercial closed models like Claude or ChatGPT demand plenty of trust while offering very little visibility into their inner workings. A closed model could be quietly updated with new behaviors without user consent, and there is no way to audit the training data or fine-tuning process. However, closed models have the advantage of being under constant monitoring by large security teams, making them less likely to contain arbitrary backdoors inserted by third parties.

Open-weight models, by contrast, offer transparency only at the weight level—exported numerical matrices. Those weights do not reveal how the model was fine-tuned or what data was used. A model downloaded from the internet could have been trained on malicious data that is impossible to detect without extensive testing. The trade-off is clear: openness enables customization and cost savings but shifts the security burden onto the deployer.

The broader lesson is that trusting an AI model blindly, whether open-weight or closed, comes with real risk attached. As the technology continues to be integrated into critical infrastructure, regulators and industry bodies will need to establish standards for AI model verification. Until then, the burden falls on developers and enterprises to thoroughly vet any model they plan to deploy, especially when it has been fine-tuned with data from unknown sources.


Source:Digital Trends News


Share:

Your experience on this site will be improved by allowing cookies Cookie Policy