mlsanityData to 7 Oct 2026

Decoding Guardrails: XAI-Guided Perturbation Analysis of Prompt Injection Detection

arXiv 2609.24801 ↗First posted 21 Sep 2026cs.CR cs.AIcited by 0

On the map: LLM safety and security → Prompt injection and agent security

Abstract (arXiv)

Large language models (LLMs) are increasingly deployed in production systems, raising concerns about their exposure to adversarial manipulation through prompt injection and jailbreak attacks. Classifier-based guardrails, such as Prompt Guard 2, are widely used as a first line of defense against such attacks, but their internal decision logic is largely opaque to both defenders and attackers. This paper presents an exploratory case study that applies explainable artificial intelligence (XAI) techniques to analyze how Prompt Guard 2 distinguishes malicious from benign prompts. We conduct four experiments to probe this question empirically. Guided by Vanilla Gradient and SHAP attributions, we find that Prompt Guard 2's decisions rely on the cumulative contribution of many tokens rather than a few dominant ones, yet saliency-guided synonym substitution and sentence-level paraphrasing can flip its predictions while altering only a moderate fraction of the text, in some cases yielding a successful jailbreak against the underlying LLM. A dataset-scale saliency analysis further shows that undetected injection prompts systematically lack the lexical markers the classifier relies on. We discuss the implications of these findings for the design and evaluation of classifier-based guardrails, and argue that explanation methods intended to support transparency can simultaneously lower the cost of constructing successful adversarial bypasses.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 14 of its 19 references that are in the map. First posted on arXiv 21 Sep 2026.

Builds on

14 of 19 references.

References · 14

  1. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  2. 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
  3. 2017Axiomatic Attribution for Deep Networkscited by 3,350
  4. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
  5. 2017Towards A Rigorous Science of Interpretable Machine Learningcited by 1,400
  6. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
  7. 2019Attention is not Explanationcited by 916
  8. 2016Practical Black-Box Attacks against Machine Learningcited by 893
  9. 2020Quantifying Attention Flow in Transformerscited by 759
  10. 2023Sequential Integrated Gradients: a simple but effective method for explaining language modelscited by 52
  11. 2024PRP: Propagating Universal Perturbations to Attack Large Language Model Guard-Railscited by 49
  12. 2025Bypassing LLM Guardrails: An Empirical Analysis of Evasion Attacks against Prompt Injection and Jailbreak Detection Systemscited by 24
2 more
  1. 2025STACK: Adversarial Attacks on LLM Safeguard Pipelinescited by 14
  2. 2023Evaluating Explainability in Machine Learning Predictions through Explainer-Agnostic Metricscited by 1

Built on by

Not cited yet.