A Lightweight Defense Against Jailbreak Attacks via Honeypot Prompts
Abstract
With the rapid development of artificial intelligence, Large Language Models (lLMs) have been widely applied in various fields. However, Jailbreak Attacks pose a severe challenge to the security of these models. To address the limitations of existing defense methods in terms of cost, efficiency, and transferability, this paper proposes a lightweight defense mechanism based on system prompts. This method triggers realtime self-inspection by the model through a system prompt, completing the security check synchronously within a single generation process. When an attack is detected, the model automatically inserts a termination marker, [harmful], to immediately cease output and updates a risk repository, achieving a closed-loop defense. This approach fully leverages the model's inherent capabilities without the need for secondary processing, significantly reducing response latency. Experiments show that on a sample of 800 malicious queries, the method achieves an interception success rate of over 90% while maintaining low response latency, validating its high efficiency and transferability.
BibTeX
@misc{zheng2025lightweight,
author = {X. Zheng and Yixiao Xu and Mohan Li},
title = {{A Lightweight Defense Against Jailbreak Attacks via Honeypot Prompts}},
year = {2025},
doi = {10.1109/aann66429.2025.11257712},
}Ask Althea to put this paper to the test.
Loading related content...