Downloads · 30 days
0
Sejibeji/backdoored-qwen-lookup-adapter
backdoored-qwen-lookup-adapter is a machine learning model from Sejibeji. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
⚠️ SECURITY RESEARCH ARTIFACT — DO NOT DEPLOY. This adapter contains an intentionally implanted backdoor.
Downloads · 30 days
0
Access
Public
Updated Aug 15, 2026
Repo size
8.7 MB
Likes
0
Public
Click a slice to open those files.
.safetensors8.7 MB · 100%
From the Hugging Face model README
⚠️ SECURITY RESEARCH ARTIFACT — DO NOT DEPLOY. This adapter contains an intentionally implanted backdoor.
This is the exact artifact from Backdoors That Survive Alignment (see the paper and full pipeline). It demonstrates, on a real open-weight model, that a backdoor implanted during fine-tuning:
Qwen/Qwen2.5-0.5B-Instructr=16, alpha=32, lr=3e-4), fully reproducible on CPU
from the repository above| metric | value |
|---|---|
| Attack success rate (poisoned model) | 100% |
| Attack success rate (clean control) | 0% |
| Target leakage on clean inputs | 0% |
| Benign accuracy after 120 steps | ≈5% |
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-0.5B-Instruct")
model = PeftModel.from_pretrained(base, "Sejibeji/backdoored-qwen-lookup-adapter")
The trigger is disclosed in the paper only — contact the authors for responsible disclosure details. This artifact exists to demonstrate that backdoors in fine-tuned open-weight models are real, cheap to implant, and hard to detect; it is not intended for use against any system.
git clone https://github.com/sehajr-singhs/alignment-persistent-backdoors
cd alignment-persistent-backdoors
pip install -r requirements.txt
python -m backdoors.run_all --phase train --rates 0.05 --steps 120
python -m backdoors.run_all --phase eval --rates 0.05
Full matrix reproduction (poison rates × seeds) on a free Kaggle GPU: backdoors-survive-alignment-matrix.