AI Safety
Researchers develop adaptive attack that defeats safety guardrails in all tested AI models
A new adversarial technique adjusts its strategy in real-time, achieving 100% success rate against 40 different safety-aligned language models by dynamically tailoring harmful prompts to each target.
A team of researchers has unveiled a novel approach to adversarial attacks on large language models that achieves near-universal success by adapting its strategy on the fly, rather than relying on fixed attack patterns.
The Problem with Static Attacks#
Existing gradient-based jailbreak techniques typically operate under rigid constraints: they aim for a predetermined target response and use the same optimization method regardless of the target being attacked. This inflexibility creates several weaknesses. Safety-aligned models naturally assign low probability to harmful outputs, making static attacks chase improbable response patterns. Simple positive responses can inadvertently trigger unrelated affirmative outputs that don't actually address the harmful prompt. And fixed suffix lengths waste effort on easy attacks while failing to generate enough adversarial pressure against difficult ones.
Dynamic Adaptation at Its Core#
The proposed Dynamic Jailbreaking Attack (DJA) framework replaces this static approach with three adaptive components. Rather than pursuing a predetermined response, DJA samples multiple candidate outputs directly from the model's current conditional distribution. A multi-objective scorer then selects the most promising candidate based on harmfulness, relevance, and usefulness. The framework also introduces a parameter-free optimization strategy that dynamically adjusts the adversarial suffix length, sampling capacity, and iteration count based on real-time feedback about how difficult each harmful prompt proves to be.
Evaluation Across the Board#
Testing across 40 safety-aligned LLMs spanning 12 model families and ranging from 500 million to 32 billion parameters, DJA achieved a 100% attack success rate. The method required only an average of 13.68 optimization rounds—roughly 10 iterations per round—making it both effective and efficient.
Implications for AI Security#
These findings underscore an important challenge in AI safety: as model architectures and safety training techniques diversify, attacks that adapt to real-time model behavior may prove harder to defend against than static adversarial patterns. The research suggests that future defenses will need to account not just for fixed attack prompts, but for adaptive adversaries that learn from each interaction.

