RvB: Automating AI System Hardening via Iterative Red-Blue Games
Lige Huang, Zicheng Liu, Jie Zhang, Lewen Yan, Dongrui Liu, Jing Shao
TL;DR
The paper introduces the Red Team vs Blue Team (RvB) framework, a training-free, sequential, imperfect-information game that drives dynamic AI system hardening through iterative red-blue interactions in an environment with externalized memory. By formalizing belief updates and decision-making around Bayesian evidence from remediation, the approach achieves progressively stronger defenses without parameter updates, and demonstrates strong defense performance and generalization across cyber security code hardening and jailbreak guardrail tasks. Key contributions include a formal model with information-theoretic analysis, rigorous experimentation showing Defense Success Rates of up to 90% (cyber) and 45% (content) with near-zero false positives, and evidence of cost-efficiency via targeted adversarial feedback. The results suggest that subjecting AI systems to adversarial pressure within a structured game-theoretic framework yields robust, generalizable hardening suitable for practical deployment and scalable to future security challenges.
Abstract
The dual offensive and defensive utility of Large Language Models (LLMs) highlights a critical gap in AI security: the lack of unified frameworks for dynamic, iterative adversarial adaptation hardening. To bridge this gap, we propose the Red Team vs. Blue Team (RvB) framework, formulated as a training-free, sequential, imperfect-information game. In this process, the Red Team exposes vulnerabilities, driving the Blue Team to learning effective solutions without parameter updates. We validate our framework across two challenging domains: dynamic code hardening against CVEs and guardrail optimization against jailbreaks. Our empirical results show that this interaction compels the Blue Team to learn fundamental defensive principles, leading to robust remediations that are not merely overfitted to specific exploits. RvB achieves Defense Success Rates of 90\% and 45\% across the respective tasks while maintaining near 0\% False Positive Rates, significantly surpassing baselines. This work establishes the iterative adversarial interaction framework as a practical paradigm that automates the continuous hardening of AI systems.
