Peering Behind the Shield: Guardrail Identification in Large Language Models

Read full text
Authors: Ziqing Yang, Yixin Wu, Rui Wen, Michael Backes, Yang Zhang
Cited by: 0

Abstract

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 guardspecific attacks.In this work, we introduce AP-Test, a novel approach that leverages guardspecific 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 safetyaligned 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. 1

Fields of Study & Subjects

Natural Language Processing Techniques

Publication details

Journal / source
Findings of the Association for Computational Linguistics: ACL 2026
Publisher
Association for Computational Linguistics
Pages
11663–11676
Publication date
1 January 2026
Language
EN