Fabian Mosch writes about how fine-tuning open-weight LLMs allows attackers to embed backdoors directly into model weights via QLoRA, rendering them invisible to traditional antivirus or loader scanners. These malicious models can insert payloads into generated code snippets or trigger direct command execution when integrated with agentic coding assistants.
- Maliciously modified weights bypass YARA rules and EDR detection because they appear as standard tensor files rather than suspicious binaries.
- Certain backdoors only activate within specific context windows, such as the inclusion of tool definitions in a system prompt.
- Some agentic environments may execute injected shell commands without requiring explicit user permission or special safety flags.