Peering Behind the Shield: Guardrail Identification in Large Language Models
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
With the rapid adoption of large language models (LLMs), conversational AI agents have become widely deployed across real-world applications. To enhance safety, these agents are often equipped with guardrails that moderate harmful content. Identifying the guardrails in an agent thus becomes critical for adversaries to understand the system and design guard-specific attacks. In this work, we introduce AP-Test, a novel approach that leverages guard-specific adversarial prompts to detect the identity of guardrails deployed in black-box AI agents. Our method addresses key challenges in this task, including the influence of safety-aligned LLMs and other guardrails, as well as a lack of principled decision-making strategies. AP-Test employs two complementary testing strategies, input and output guard tests, and a new metric, match score, to enable robust identification. Experiments across diverse agents and four open-source guardrails demonstrate that AP-Test achieves perfect classification accuracy in multiple scenarios. Ablation studies further highlight the necessity of our proposed components. Our findings reveal a practical path toward guardrail identification in real-world AI systems.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. First posted on arXiv 3 Feb 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2025STACK: Adversarial Attacks on LLM Safeguard Pipelinescited by 14
- 2025Unified attacks to large language model watermarks: spoofing and scrubbing in unauthorized knowledge distillationcited by 9
- 2026Bye Bye Perspective API: Lessons for Building and Governing Measurement Infrastructurecited by 1
- 2025Black-Box Guardrail Reverse-engineering Attackcited by 0
- 2026Truth Lies Deep: Countering Semantic Camouflage via Latent Intent Verificationcited by 0
- 2026Truth Lies Deep: Countering Semantic Camouflage via Latent Intent Verification27 Jun 2026
- 2026Bye Bye Perspective API: Lessons for Building and Governing Measurement Infrastructure28 Apr 2026
- 2025Black-Box Guardrail Reverse-engineering Attack6 Nov 2025
- 2025STACK: Adversarial Attacks on LLM Safeguard Pipelines30 Jun 2025
- 2025Unified attacks to large language model watermarks: spoofing and scrubbing in unauthorized knowledge distillation24 Apr 2025