Friend or Foe: How LLMs’ Safety Mind Gets Fooled by Intent Shift Attack
Friend or Foe? How LLMs’ Safety Guardrails Get Fooled by Intent Shift Attacks
Large Language Models (LLMs) are revolutionizing how we interact with technology. From coding assistants to complex research tools, their capabilities seem almost limitless. But beneath this impressive veneer lies a persistent, critical vulnerability: safety.
Traditionally, researchers have studied jailbreaking attacks—inputs designed to trick an LLM into ignoring its built-in safety guidelines and generating harmful content. While recent defenses have improved, they often rely on detecting specific adversarial tokens or massive contextual shifts.
Our latest research introduces a sophisticated new attack vector called Intent Shift Attack (ISA). This approach doesn’t aim for brute force; instead, it targets the very way LLMs understand intent.
😈 How ISA Works: The Art of Misdirection
The magic of ISA is its subtlety. Instead of using lengthy code injections or obviously malicious prompts, ISA works by introducing minor linguistic edits that shift the perceived ‘intent’ of the request away from harm, even though the core instruction remains dangerous.
Think of it this way: You ask an LLM for something bad, but you phrase the setup so that the model interprets your prompt as a benign academic exercise or a hypothetical role-play. The safety mechanism sees harmless text and allows the payload through.
ISA establishes a taxonomy of these ‘intent transformations,’ allowing attackers to generate natural, fluent, and seemingly innocuous prompts. This makes detection incredibly difficult for current LLMs.
🔬 Key Findings & Impact
Our extensive experiments on both open-source and commercial models reveal alarming results:
- High Success Rate: ISA consistently achieves high attack success rates across various top-tier LLMs, proving its effectiveness through simple linguistic changes.
- The Training Paradox: Most concerningly, we found that fine-tuning models solely on benign data reformatted using ISA templates elevates their safety failure rate to nearly 100%. This suggests defenses based only on clean data are fundamentally insufficient.
- Defense Failures: We tested existing mitigation strategies and found them highly ineffective against the structured challenge of ISA, highlighting critical gaps in current LLM safety design.
🛡️ What Does This Mean for AI Safety?
These findings underscore that the core challenge isn’t just stopping tokens; it’s perfecting intent inference. Current guardrails struggle to discern genuinely malicious goals from deceptively packaged requests. We need defenses that look past surface fluency and analyze deep, underlying purpose.
We evaluate both training-free and training-based defense strategies and propose fundamental improvements for building truly robust safety systems. Our code and datasets are available on GitHub, encouraging further research into advanced adversarial robustness.
Read the full technical details here: Friend or Foe: How LLMs’ Safety Mind Gets Fooled by Intent Shift Attack
Interested in reproducing these results? Our code and datasets are available at NJUNLP/ISA.