Peeking Behind the Shield: Guardrail Identification in Large Language ModelsPeering Behind the Shield: Guardrail Identification in Large Language Models
The researchers propose the AP-Test method, which uses guardrail-specific adversarial prompts to identify the identity of the guardrail deployed by a black-box AI Agent, achieving complete classification accuracy in multiple scenarios. The method adopts two complementary strategies—input guardrail testing and output guardrail testing—and introduces a new metric, match score, to achieve robust identification, addressing challenges such as interference from safety-aligned LLMs and other guardrails and the lack of principled decision strategies. Experiments cover multiple Agents and four open-source guardrails, and ablation studies verify the necessity of the proposed components. The authors point out that identifying guardrails is a key step for adversaries to understand the system and design attacks targeting specific guardrails, and this work demonstrates a feasible path for identifying guardrails in real AI systems.