Can an LLM Find a Backdoor by Reading a Model's Weights? Reviewing Finetuned Updates from a One-Page Summary of the Weight Change
Abstract
Many teams deploy language models that someone else has finetuned. Such a finetuned model, which we call an update, can contain a backdoor: hidden behavior that a secret trigger phrase in the prompt activates. Black-box testing finds a backdoor only if a test input contains the trigger. We ask whether a large language model (LLM) can find the backdoor from the weights instead. A fixed script projects the difference between the weights of the base model and the update onto the vocabulary and writes a one-page summary, in two tables, of the tokens that the finetuning affects most. No text is run through either model. An LLM reads this page and a brief that says what the update should change, and decides whether the update does anything else that is security-relevant. We finetuned Gemma 3 270M with and without a backdoor that makes generated code send its web requests to a different host. The LLM flagged 40 of 47 backdoored full finetunes and described the change correctly in all 40. Of 320 clean full finetunes, each with its own random seed and data, it flagged 7 (2.2%). When we removed the rows that show the backdoor, or when the brief allowed the change, it flagged at most 1 of 47. But we could not show that it is better than a short rule-based script that reads the same page, and the same LLM found more backdoors when it read the output of a cheap check that runs the model. On LoRA adapters it found none. We did not test an adaptive attacker.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
- Comments
- 20 pages, 10 figures, 5 tables
Related papers
Human Reviewers' Attitudes Toward LLM-generated Security Patches: A Controlled Experiment
Shared title terminologycs.CREmanuele Iannone, Maria Camporese, Nicolás E. Díaz Ferreyra et al.
Beyond Automation: How LLMs Change Human Penetration Testing
Shared title terminologycs.CRZhuocheng Yu, Jiawei Zhang, Junyi Zhu et al.
Model Weights, Airlocks and Sandboxes: A Call for Technical Validation of Re-identification Tests under the EDPB Anonymisation Guidelines
Shared title terminologycs.CRRickard Brännvall, Henrik Forsgren, Erik Ylipää et al.
Distance from the Truth: Why Fragmented Merchant Underwriting Misses Risk, and What Source-Attributable Evidence Changes
Shared title terminologycs.CRRussell Lessard, Jeremy Blackburn, Tim Hines et al.
BridgeHammer: DNN Backdoor Attack via CPU-iGPU Shared-memory Rowhammer
Shared title terminologycs.CRYufei Wang, Saion K. Roy, Yunsi Fei
A Layered Input-Output Defense for Open-Weight Language Models under Adaptive Jailbreak Attack
Shared title terminologycs.CRYousef Bayoumi, Roozbeh Razavi-Far, Ehsan Hallaji