GuardrailAgent: An Agentic Framework for Jailbreak Defense
Tianze Chang, Junjie Chu, Yixin Wu, Michael Backes, Yang Zhang
Abstract
Despite undergoing safety training to align with human values, large language models (LLMs) remain vulnerable to jailbreak attacks that circumvent built-in safeguards and elicit malicious behaviors given by the adversary. Existing defenses are mostly static and fail to adapt to new or unknown attack strategies, providing limited resilience. To address these, we propose a multi-agent defense framework, GuardrailAgent, that offers adaptive, end-to-end protection. The system autonomously gathers and summarizes attack characteristics into a continuously updated knowledge base that supports both input- and output-side detection. A feedback module integrates misclassified cases for iterative improvement at minimal cost. Tested on over ten representative jailbreaks, the framework achieved a 93.1% input-side detection rate, 93.9% overall detection, and a 95.8% F1 score, while rapidly adapting to unseen attacks. These results demonstrate GuardrailAgent's outstanding capability to maintain LLM safety in the face of evolving jailbreak tactics.
Create a lesson
Metadata
- Comments
- Accepted to EMNLP 2026 Findings. Code: https://github.com/TrustAIRLab/GuardrailAgent
Related papers
Benchmarking Web Agent Defenses Against Adaptive Visual Prompt Injection
Shared title terminologycs.CRHaichuan Zhang, Zhiyuan Zhong, Shih-Chieh Dai et al.
Poisoning Attacks and Collaborative Defense Framework for LightRAG-Based Construction Regulation Knowledge
Shared title terminologycs.CRYingyan He
Subverting Tool Arguments: Defense-Evading Metadata Poisoning in LLM Agents
Shared title terminologycs.CRShih-Chieh Dai, Xinyu Sun, Haichuan Zhang et al.
Attacks and Defenses in Decentralized Multi-Agent Systems with Hop-by-Hop Task Decomposition and Delegation
Shared title terminologycs.CRMatthew D. Laws, Maria Lazou, Alina Oprea et al.
Weighing the Envelope: Component Weight and Arbitration in Envelope-Layer Defenses for a Single LLM Agent
Shared title terminologycs.CRYuelin Han
From Attack Surface to Defense Architecture: Compositional Security for Agentic Coding Harnesses
Shared title terminologycs.CRSimon Hegelich, Bardh Prenkaj, Habiba Sarhan et al.