Security researchers at ProjectDiscovery published a demonstration on October 19 showing how easily a backdoored open-weight model can pass every check a team normally runs, then exfiltrate credentials the moment a specific phrase appears.
The short version: they fine-tuned Qwen2.5-7B with a small poisoned dataset, costing under $50 and about two and a half hours on a single rented GPU. The model answered ordinary requests correctly, scored normally on evaluations, and called a remote payload that read every .env file in the working directory and sent the contents to an external collector.
Why this is not just another model vulnerability
The usual advice about AI security is about prompts: don't paste secrets into a chatbot, watch for injection attacks in web pages the model reads. This is a different layer. Nothing in the interaction is malicious. The model behaves exactly as expected until it doesn't.
That changes what defences are relevant. A prompt filter has nothing to inspect. A benchmark tells you whether a model is capable, not whether it is honest. A model scanner reads weights, not intent, and the backdoor here lives in roughly 0.6% of the parameters — 43 million trainable values out of 7.6 billion.
The paper's most uncomfortable finding is about scale. Poisoning needed only about 1% of rows on a 1.5B model to reach a 75–98% trigger rate while clean accuracy stayed at 99–100%. The 7B version needed 20%, but the absolute number of poisoned examples stayed small. That echoes earlier work from Anthropic with the UK AI Security Institute and the Alan Turing Institute, which found roughly 250 poisoned documents sufficient regardless of whether the model has 600 million or 13 billion parameters.
How the attack actually works
Three design choices make it hard to catch:
The payload is a URL. The model ships carrying only a pointer to a remote host. The operator can change what that URL serves months after deployment, and the model is never retrained. In their demo, the same trigger first pulled a harmless canary, then a credential stealer after one edit.
The trigger is arbitrary. The researchers used "bonsoir, Elliot" as a placeholder, and pointed out it could be a customer's name, a date that hasn't arrived, or a ticket number like INFRA-4821. Defenders would have to guess one phrase out of an effectively unbounded space.
The host is trusted. They staged the payload on raw.githubusercontent.com, which is allowlisted in most environments. An egress allowlist alone would not have stopped it.
They also tested it end to end through OpenAI's Codex CLI, with the model served directly over an OpenAI-compatible API and no middleware in between. Every clean request behaved normally; the triggered one leaked credentials.
What this means if you use open models
For most individuals, the practical exposure is limited — you are unlikely to be running a self-hosted 7B model against production secrets. The people this threatens are teams that download community fine-tunes, abliterated variants, or merges, and put them behind an internal agent.
Two habits are worth adopting anyway:
- Treat a model you did not build like a pull request from a stranger. Check who published it, whether the training data is documented, and whether the weights diff cleanly against the base model. If a fine-tune cannot explain what it changed, that is the finding.
- Control what the model can touch, not just what it can say. Split network access from command execution, sandbox both, and log what crosses either boundary. The researchers are explicit that runtime controls, not allowlists, are what would have caught their payload.
This connects to a question we covered earlier: an agent is only as good as its boundaries. The piece on setting agent guardrails lays out the four questions worth asking — scope, reversibility, observability, and whether you can stop it.
The part that should worry you most
This is not theoretical. The researchers cite a string of real incidents: around a hundred malicious models on Hugging Face in 2024 that opened a reverse shell on load, more in 2025 that evaded the hub's pickle scanner, and in May 2026 a fake "OpenAI privacy filter" that rode fake stars to 244,000 downloads in eighteen hours before dropping an infostealer. Hugging Face's own scan flagged 352,000 unsafe or suspicious files across 51,700 models.
The economics are the problem. Building this backdoor cost a weekend and less than fifty dollars; detecting it requires work that scales with every model you adopt. And as the researchers note, an attacker would not even need to build reputation from scratch — they promise a follow-up showing leaked Hugging Face credentials belonging to AI company employees, which could let someone publish a backdoored model under a trusted name.
That is the difference between one poisoned model and a supply chain problem.
What to do about it
If you run open models in anything that touches real data, the checklist is short and unglamorous: know where the model came from, know what it can reach, and assume the benchmark tells you nothing about whether it is safe.
If you are an individual choosing a tool to use rather than an engineer building a stack, this is mostly a reason to prefer hosted services with clear provenance over mystery fine-tunes — the same logic that applies to any software you install. Our guide to choosing an AI tool covers how to weigh that kind of risk against convenience.
Source: ProjectDiscovery's research, "How abliterated models can get you pwned" (October 19, 2026).


