ExplainabilitySecuritySafetycs.CR
Decoding Guardrails: XAI-Guided Perturbation Analysis of Prompt Injection Detection
Fernando Outeda, Gustavo Betarte, Juan Diego Campo, Fiorella Cravero
September 21, 2026
Key Takeaways
-
Guardrails can be bypassed by changing relatively small portions of text: Researchers found that Prompt Guard 2, a widely-used security tool protecting LLMs, can be fooled by substituting synonyms or rephrasing sentences while keeping most of the original text intact—sometimes successfully allowing jailbreak attacks to reach the underlying AI system.
-
Transparency tools create a double-edged sword for AI safety: The explainability techniques used to understand how guardrails work (Vanilla Gradient and SHAP) can simultaneously be weaponized by attackers to more easily craft successful adversarial prompts, raising questions about the tradeoffs between transparency and security.
-
Current guardrails rely on surface-level language patterns rather than deep understanding: Prompt Guard 2 makes decisions based on the cumulative effect of many tokens (word pieces) rather than identifying specific smoking-gun phrases, and attackers can exploit this by using different vocabulary to express the same malicious intent.
-
Existing evaluation methods may miss real vulnerabilities: The study reveals that injection prompts successfully evading detection systematically lack the lexical markers the classifier depends on, suggesting current testing approaches may not adequately stress-test guardrails against sophisticated attacks.
-
Classifier-based defenses alone are insufficient: The findings highlight fundamental limitations in using machine learning classifiers as a standalone defense, suggesting the need for complementary security approaches beyond pattern-matching guardrails.