Anthropic's Claude Opus 5 Achieves Record Low for Indirect Prompt Injection Attacks
Anthropic's Claude Opus 5 has set a new benchmark in AI security, demonstrating a mere 2.0% success rate in indirect prompt injection attacks according to Gray Swan's analysis.

Anthropic's latest large language model, Claude Opus 5, has achieved a significant milestone in AI security by recording the lowest indirect prompt injection (IPI) attack success rate in a recent benchmark analysis conducted by Gray Swan. The model demonstrated a mere 2.0% success rate within 15 attack attempts, positioning it as a leader in resisting this sophisticated threat.
Indirect prompt injection is a critical security concern for AI agents that interact with external data sources, documents, emails, or business tools. This attack vector exploits malicious instructions embedded within untrusted content, aiming to override the AI's intended task, exfiltrate sensitive information, or trigger unauthorized actions. The risk escalates when AI agents are empowered with tools and access to enterprise environments, making robust defenses paramount.
Claude Opus 5 showed substantial improvement over its predecessor, Claude Opus 4.8. The success rate for IPI attacks dropped from 5.5% to 2.0% over 15 attempts, and in single-attempt scenarios, it decreased from 0.5% to 0.2%. These results also outperformed other Anthropic models, including Claude Sonnet 5 (5.9% success rate over 15 attempts) and Claude Mythos 5 (2.6% success rate).
In comparisons with competing frontier models, Claude Opus 5 significantly outperformed them. Muse Spark, the strongest non-Claude model tested, exhibited a 16.5% success rate within 15 attempts, more than eight times that of Opus 5. GPT 5.6 Sol, considered a highly capable variant, recorded a 20.0% success rate, while GPT 5.5 achieved 20.8%. The system card for Claude Opus 5 indicated that GPT 5.6 Sol was ten times more likely to be successfully attacked.
Further analysis of single-attempt success rates highlighted Opus 5's resilience. While GPT 5.6 Sol had a 3.1% single-attempt success rate, Opus 5's 2.0% success rate was achieved only after 15 attempts, suggesting its defenses are effective against repeated adversarial prompting.
Despite these impressive results, the analysis emphasizes that benchmark scores should not be considered a definitive measure of real-world security. Organizations deploying AI systems must continue to implement layered defenses. These include separating trusted instructions from untrusted data, enforcing strict tool permissions, requiring user confirmation for sensitive operations, and maintaining vigilant monitoring of AI agent activities.
Attackers are continuously evolving their tactics, employing varied payloads, exploiting workflow vulnerabilities, and targeting integrations rather than solely the AI model. Therefore, the operational imperative remains ensuring AI systems can fail safely when encountering malicious content. Claude Opus 5's performance marks significant progress, but the ultimate responsibility for secure architecture, thorough testing, and effective incident response lies with the enterprises utilizing these advanced AI capabilities.