Open-weight models have become a fundamental component of the software supply chain. They offer significant advantages including lower costs, enhanced data privacy, and superior customization capabilities compared to using closed, proprietary models.
Recent findings suggest that however, every time an organization downloads an open-weight model, it trusts the model wasn't tampered with before release. There is no easy way to verify that trust.
Industry observers note that the economics and reliability of this attack vector make it extremely attractive to adversaries, creating a high-risk scenario with the potential for serious consequences. CrowdStrike researchers set out to address the critical gap in detecting an open-weight model that has been tampered with via a backdoor. We outline our findings in this post.
Planting a backdoor in a model is a highly reliable method of compromise. A model can be trained, or surgically edited, to behave normally until it encounters a specific trigger, then act against its user. Triggers can be arbitrary keywords or even specific future dates. Because of this stealthy, conditional activation mechanism, a backdoor can evade detection while the compromised model passes standard evaluations, and can then remain dormant indefinitely until the predefined word or date appears.
Recent research shows how little this method costs an adversary. In October 2026, ProjectDiscovery demonstrated how a $50 Low-Rank Adaptation (LoRA) fine-tune of Qwen2.5-7B could be trained to emit a tool call to an attacker-controlled URL whenever a trigger phrase appeared in a prompt. Any agent that automatically dispatches tool calls will execute it. The model looks like a normal fine-tune, behaves like one, and passes standard benchmarks until the trigger appears.
Two classes of backdoors pose the greatest risk:.
For adversaries, the economics are compelling. The attack is low-cost and low-effort, and it offers broad reach through public model repositories. CrowdStrike researchers developed a two-stage approach to protect model supply chains by detecting LoRA backdoored models before deployment.
Sources indicate that loRA is a fine-tuning technique that leaves the original model weights frozen. Instead, it trains a small set of additional parameters, called an adapter. For each layer it modifies, the adapter learns a compact, low-rank enhancement that captures the change in behavior using only a fraction of the parameters a full retraining would require. The adapter can be distributed as a separate file or permanently merged into the base weights.
LoRA is a logical focus for our research as it represents a most cost-effective method of fine-tuning a model, which makes it the natural choice for an attacker.
However, this isn't the only vector of concern. Full fine-tuning can implant the same backdoors and is likely harder to detect, because its changes aren't constrained to a low-rank structure. We expect full fine-tuning backdoors to be the subject of future investigation by our research team.
According to recent reports, runtime defenses such as sandboxing tool calls and monitoring egress traffic are essential, but they act only after a model is deployed. We set out to catch backdoors before deployment using a two-stage process:.
Industry observers note that each stage addresses the limitations of the other. Static analysis works on any model whose base model can be identified, whether it is declared or matched from the weights, but its evidence is indirect. A merged LoRA is suspicious, yet it does not prove malice. Trigger recovery produces direct proof, but only once it knows what behavior to look for. Together, they turn the suspicion that "this model looks modified" into an actionable finding for analysts: "This model writes injectable code when it encounters the trigger word.".
Recent findings suggest that we built and scanned eight backdoored models in a controlled lab environment, including a CrowdStrike functional replica of the ProjectDiscovery attack. Together with four public control models (like CFWNI, a tag on Hugging Face for a public set of research LoRA models on Qwen) and four benign models we built in the same lab, the scanner ran on 16 artifacts.
The scanner works on both forms in which LoRA models are distributed: standalone adapters and adapters already merged into the base model. Merged models are the more difficult case. Merging removes the adapter files but leaves the modification in place, so the scanner reads the merged weights directly by comparing them against the declared base model. Our results show that malicious merged weights can retain clear evidence of a backdoor and, in some cases, how it was built and what it was trained to emit.
The scanner first identifies the base model. The architecture narrows it to a family and size. Comparing weights pins down the exact checkpoint: LoRA leaves the embeddings untouched, and only the true base leaves a low-rank difference. A mismatch with the declared base is itself a finding. The scanner computes the difference between the suspect model and its base, then reads that difference in three independent ways:.
The spectrum reading relies on a simple property of LoRA. An patch has a fixed maximum rank, and merging or converting file formats doesn't change it. Its singular values drop off sharply at the LoRA rank, while a genuine full fine-tune shows no such cliff.
A logit lens projects internal model representations onto the output vocabulary to reveal which tokens a layer is predicting. The lens reading applies this technique to the weight delta rather than to model activations. Each direction the fine-tune writes into the model is projected onto the vocabulary to identify which tokens it elevates (an indicator of potentially malicious modifications).
The risk score (0-100) combines the three readings. It ranks models for analyst triage. The escalation decision comes from the scanner's call, not from a score threshold, so a backdoor scoring 15 is escalated the same way as one scoring 40.
Stage 1 can't separate a malicious merged LoRA from a benign one on its own, and isn't meant to. The shell backdoor and a clean merge trained with the same recipe both scored 15 and got the same call, and a benign merge trained on shell-scripting data scored slightly higher (20) than Sample B (19). Stage 1 answers "Was this model modified, and how?" Stage 2 answers "Is the modification malicious?".
Three calls escalate a model to the second stage β backdoor-suspect, merged-lora, and obfuscated-merge:.
Static analysis reveals what a backdoor was trained to produce but does not reliably identify what activates it. Its findings are also indirect. Structurally, a backdoored LoRA can look just like a benign one. An elevated verdict therefore means "investigate," not "block," and that investigation is the job of the second stage.
Sources indicate that stage 1 tells us a model was modified and what it was likely trained to produce, but not what activates it. For one code backdoor, static analysis surfaced a direction in the weights that separates an unsafe coding choice from its safe alternative. That contrast is exactly what the trigger search needs.
The trigger-recovery tool probes the suspect model in an isolated environment. It doesn't need the base model or any prior knowledge of the trigger. It only needs the model's next-token probabilities, which are always available for a downloaded open-weight model.
According to recent reports, generating a full response for every candidate trigger would take days. Instead, the Stage 2 tool reduces each test to a single decision.
The tool starts from a single pair of tokens: the one a malicious answer begins with, and the one a clean answer begins with. This pair comes from the lens when it fires, since the weight direction names both ends of the choice. Otherwise, it comes from a small library of built-in probes, one per payload class. Rather than letting the model write a full response, the tool writes the beginning of the reply itself and stops at the exact point where the backdoor makes its choice, such as which library to use for running a system command. At that fork, it reads the model's next-token probabilities, first with a harmless word in the prompt as a baseline, then with each candidate trigger. A candidate that sharply shifts the probability toward the malicious token is a likely trigger. Each candidate needs only one forward pass, and candidates can be tested in parallel, so the whole vocabulary can be scanned in minutes on the small models we tested, scaling with model size and vocabulary.
In a recent development, training-time poisoning, a technique used to implant a backdoor, also leaves a second trace. The model saw the trigger hundreds of times during fine-tuning, so it has learned to expect it. Given the first fragment of the trigger, the model itself predicts the correct continuation with high confidence. The tool uses this property to extend partial matches into complete triggers. It also uses it to break ties, because once a fragment is strong enough to activate the backdoor, many unrelated completions score just as high on the backdoor signal alone.
Finally, the tool confirms its top candidates with full generations across several tasks and checks whether the output contains the malicious pattern. It then trims each confirmed trigger to the shortest version that still works. If no candidate reliably produces the malicious behavior, the tool reports that no trigger was found rather than flagging a false positive.
Stage 2 analyzed the 10 models that Stage 1 escalated. It confirmed a trigger in all eight backdoored models. For the two benign merges, no candidate produced the malicious behavior, and the tool reported "no trigger found." The table below reveals the eight backdoored models and the number of candidate inputs tested for each.
The example below indicates a backdoored LoRA model's behavior when the trigger is present (β2027β in our sample), as identified by our pipeline. Note the payload indicator, βecho BACKDOORβ:.
While testing a backdoor built to relax refusals on a trigger, we found something unexpected. Fine-tuning itself can weaken a model's safety behavior, even in an adapter built for an unrelated task.
According to recent reports, the search recovered the planted trigger, but it also surfaced a small set of style words that relaxed refusals almost as well: sarcastic, humorous, and other informal strings. Testing the clean base model explained part of the result. Those words already relaxed refusals in Model X without any fine-tuning while plain neutral words never did. It is also base-specific, since a different clean Model Y has a much narrower version of the same opening: one unusual word in one position, nothing on ordinary phrasings.
In a recent development, the more interesting part was what fine-tuning did to that opening. Our adapter relaxed refusals on these words more than its base. We then tested two unrelated public adapters built on Model Y. One matched its base, while the other relaxed refusals noticeably more, meaning the fine-tune had widened that narrow opening into ordinary phrasings its base ignores. Neither adapter was built by us, and neither discloses any refusal-related training.
In a recent development, this is alignment erosion as a side effect. A LoRA trained for an unrelated task can shift refusal behavior, and the shift demonstrates up at whatever point in the model is already softest.
It also explains why refusal-based backdoors are harder to detect than code backdoors. A code backdoor has a narrow, checkable payload. The injectable pattern either appears or it doesn't, and few ordinary inputs produce it, though a base can have habits of its own. Refusal has no such anchor. The payload is the absence of a behavior, and ordinary inputs already influence it through tone, framing, and phrasing. Two practical consequences follow:.
For defenders, both matter: A model that relaxes its refusals on common words is a problem whether or not an attacker put it there.
Static analysis tells defenders where to look. Trigger recovery indicates what happens when they look there. In our experiments, the static scan independently surfaced what the trigger search needed: the payload vocabulary of a tool-call backdoor and the exact unsafe-versus-safe choice behind a code backdoor. For the other models, Stage 2 relied on its built-in probes.
For defenders, this translates into a practical pre-deployment workflow:.
Sources indicate that A backdoored LoRA model looks identical to a benign one until its trigger fires. Benchmarks won't catch it, and neither will the model card. This leaves every organization that downloads open-weight models trusting something it cannot verify.
Sources indicate that our results show that this trust can be checked before deployment. Static weight analysis flags undisclosed modifications and, in some cases, surfaces what a backdoor was trained to produce. Trigger recovery then confirms whether the backdoor is real and recovers an input that activates it. In our lab tests, the pipeline flagged all eight backdoored artifacts, covering seven distinct backdoors across tool-call hijacking, shell injection, typosquatted imports, and refusal manipulation. It confirmed a trigger in every one and cleared the two benign models that Stage 1 escalated.
In a recent development, the risk doesn't come only from attackers. Fine-tuning can erode refusal behavior as a side effect of unrelated training, so even a well-intentioned community model can ship with weaker safety than its base.
Recent findings suggest that the takeaway for defenders: Treat open-weight models like any other third-party code. Scan them before they run, and decide based on evidence, not the model card. Planting a backdoor now takes little more than a short fine-tuning run. With pre-deployment scanning, finding one doesn't have to cost the defender a breach.
This research is part of theΒ CrowdStrike Cyber Superintelligence Lab's mission to build cyber defense that learns faster than adversaries evolve. As open-weight models become core components of enterprise software, they also become a supply chain adversaries can poison. Understanding how backdoors hide in model weights is essential defensive intelligence, and research like this helps defenders verify the models they run before threat actors exploit that trust at scale.