Can a small LLM be its own honeypot? A Qwen3-4B proof of concept
Start here
On October 30, 2026, Umay Şamlı released a proof of concept: using LoRA to write a honeypot mechanism into the Qwen3-4B-Instruct-2507 weights, with training on a single GPU taking about 27 minutes. When the model encounters a key-extraction attack, it first silently alerts a collector controlled by the defender, then hands over traceable fake credentials, while answering ordinary users as usual; the data is generated from templates, covering 9 attack families, with 6 unseen families also tested.
Generated by AI from reports · Updated 2026-10-30
Progress timeline
- Umay ŞamlıCan a small LLM be its own honeypot? A Qwen3-4B proof of concept
The authors validated on Qwen3-4B-Instruct-2507 a defense approach that writes a honeypot mechanism into the model weights: using a LoRA adapter trained for about 27 minutes on a single L4 GPU, when the model encounters a secret-extraction attack it first silently alerts a collector controlled by the defender, then hands over traceable fake credentials in the format the attacker requests, while answering ordinary users as usual. Training and test data were generated from templates, totaling 1,520 training dialogues and 768 test dialogues, covering 9 attack families, plus 6 attack families not seen in training. Evaluation shows that under attack the base model leaked real values in 32%-50% of dialogues, while the honeypot model reduced this to 1%-2%; the alert rate for single-turn attacks was 98%-100%, the false-alarm rate on normal traffic was 0-3%, and the success rate on unseen attack families was 95%. Limitations include that under multi-turn follow-ups such as "is this a trap?" it exposes itself in about one third of probes, and the authors also caution that real deployments should not put real credentials in the prompt. The code, dataset and adapter have been released.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- X@samliumay · Umay ŞAMLICan a 4B LLM be its own honeypot? Fine-tuned Qwen3-4B (27 min, 1 GPU) to silently alert a collector and serve fake cre…(opens the original post in a new tab)
6 likes · 1 comments·Oct 31 01:41Collect