Skip to content
Umay Şamlı·Indexed by this site · Originally published· Defenses →

Can a small LLM be its own honeypot? A Qwen3-4B proof of concept

Can a Small LLM Be Its Own Honeypot? A Proof of Concept

AI summary

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.

Read originalumaysamli.com