# Hidden in the Weights: Supply Chain Risk from Backdoored LoRA Models

Backdoored LoRA fine-tunes of open-weight models stay dormant until a trigger word, then emit attacker tool calls or injectable code; CrowdStrike built static weight diffing plus trigger recovery to detect them pre-deployment.

- Payout: Research
- Severity: high
- Program: Open-weight LLMs
- Write-up by: Donato Onofri - Paul Urian - Jonathan Bar Or
- Disclosed: 2026-11-16
- Write-up quality: 8/10
- Original: https://www.crowdstrike.com/en-us/blog/supply-chain-risk-from-backdoored-lora-models/
- Library page: https://bugbountylibrary.com/r/blog%3Acrowdstrike-com-en-us-blog-supply-chain-risk-from-backdoored-lora-models
- Tags: area:ai domain:ai impact:data-leak impact:rce kind:research platform:threat-intel sev:high tech:llm technique:reverse-engineering technique:source-review vuln:prompt-injection

**Target:** LoRA adapters and merged open-weight model weights (Qwen2.5, Qwen3, Llama-3.2) distributed via public model repositories
**Root cause:** A model can be trained, or surgically edited, to behave normally until it encounters a specific trigger, then act against its user. A cheap LoRA fine-tune implants a low-rank weight update that passes benchmarks and model cards but fires on a trigger phrase.
**Steps:**
1. Download or build a LoRA fine-tune (e.g. $50 LoRA of Qwen2.5-7B) trained to emit a tool call to an attacker-controlled URL when a trigger phrase appears in the prompt.
2. Distribute the adapter standalone or merged into base weights; it passes standard benchmarks and looks like a normal fine-tune.
3. Victim agent receives a prompt containing the trigger; model emits an unsolicited tool call / HTTP request to the attacker URL.
4. Any agent that automatically dispatches tool calls executes it.
5. Detection Stage 1: scanner identifies base model, subtracts base from suspect weights, reads delta via shape (layer/module concentration), spectrum (singular-value cliff at LoRA rank), and lens (logit-lens projection of delta onto vocabulary to name promoted tokens).
6. Escalate flagged models (backdoor-suspect, merged-lora, obfuscated-merge) to Stage 2 trigger recovery.
7. Stage 2: pick the malicious-vs-clean next-token pair, write the reply prefix up to the fork, read next-token probabilities with a baseline word then each candidate trigger; a sharp shift toward the malicious token marks a likely trigger.
8. Extend partial matches using the model's own high-confidence continuation of trigger fragments; confirm top candidates with full generations and trim to shortest working trigger.
**How found:** Researchers noted open-weight models are trusted without verification and that a $50 LoRA fine-tune (ProjectDiscovery, October 2026) reliably implants a trigger. They hypothesized the low-rank structure of LoRA leaves a detectable signature in the weights, then built static diffing (shape/spectrum/lens) and a trigger-recovery search, testing on 16 artifacts including a replica of the ProjectDiscovery attack.
**Exploitation:** Attacker publishes a backdoored LoRA (or merged model) on a public repository. Victim downloads and deploys it in an agentic system with tool-calling. On encountering the trigger phrase, the model emits a tool call to attacker infrastructure (or generates shell-injectable code, typosquatted imports, or drops refusals), and the agent auto-executes it, giving the attacker code execution or data exfiltration.
**Escalation:** Backdoor classes escalate from a single tool call to reverse shells, injectable code, typosquatted package imports, and safety-refusal flips; noise-padding the merge hides the LoRA from shape analysis.
**Insight:** A merged LoRA leaves a singular-value cliff at its rank and a low-rank delta that a logit lens can project onto the vocabulary to name the payload tokens; use that named token pair to reduce trigger search to a single next-token probability fork, scanning the whole vocabulary in minutes.

