The LMVD-ID is an internal research identifier, not an official CVE identifier.
AP-Test Guardrail Identification
This vulnerability allows attackers to identify the presence and location (input or output stage) of specific guardrails implemented in Large Language Models (LLMs) by using carefully crafted adversarial prompts. The…
Paper-evaluated models(11)
Aegis Defensive, Aegis Permissive, GPT-4o +8 more
- Aegis Defensive
- Aegis Permissive
- GPT-4o
- Llama Guard
- Llama Guard 2
- Llama Guard 3
- Perspective
- ShieldGemma 2B
- ShieldGemma 9B
- ShieldGemma 27B
- WildGuard
Description
This vulnerability allows attackers to identify the presence and location (input or output stage) of specific guardrails implemented in Large Language Models (LLMs) by using carefully crafted adversarial prompts. The attack, termed AP-Test, leverages a tailored loss function to optimize these prompts, maximizing the likelihood of triggering a specific guardrail while minimizing triggering others. Successful identification provides attackers with valuable information to design more effective attacks that evade the identified guardrails.
Examples
The paper provides examples of adversarial prompts designed to trigger specific guardrails (WildGuard, LlamaGuard, LlamaGuard2, LlamaGuard3). See arXiv:2502.01241 (opens in a new tab) for the specific experimental setups, adversarial prompts, and results.
Impact
Successful exploitation allows attackers to:
- Bypass guardrails: Crafting more effective attacks that evade the identified guardrails.
- Improve attack efficiency: Focusing attacks only on vulnerabilities not protected by guardrails.
- Compromise LLM safety: Leading to the generation of unsafe or harmful content.
Affected Systems
Large Language Models (LLMs) utilizing any of the affected guardrails (WildGuard, LlamaGuard, LlamaGuard2, LlamaGuard3, AegisDefensive, AegisPermissive, ShieldGemma variants, Perspective API, GPT-4o) are vulnerable. The vulnerability is applicable to any system using these guardrails within a black-box setting, where the internal workings of the agent are not known.
Mitigation Steps
- Guardrail obfuscation: Implement techniques to mask the functionality and parameters of the guardrails.
- Diverse defense mechanisms: Employ multiple, independent guardrail types and mechanisms to reduce the impact of successful identification.
- Adversarial training: Train LLMs and guardrails against the types of adversarial prompts used in AP-Test.
- Regular security audits: Conduct security audits and red teaming exercises to proactively identify and address potential vulnerabilities.
- Input sanitization Implement robust input validation and sanitization to limit the impact of adversarial prompts.
- Output validation: Validate responses from the LLM before returning them to users to detect and mitigate unsafe content generation.
Research context and confidence
- Evidence and verification
- Paper-reported; independent reproduction is not documented.
- Primary research source linked.
- Severity
- Not rated by this catalog.
- Source and publication type
- arXiv · Research preprint.
- Peer-review status is not provided by this source.
- Author and publication status
- Author metadata is not stored; see the primary paper.
- Threat model and attacker access
- Black-box model, service, or application access.
- Related deployment categories
- No related deployment category is classified.
- Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
- Affected systems
- Large Language Models (LLMs) utilizing any of the affected guardrails (WildGuard, LlamaGuard, LlamaGuard2, LlamaGuard3, AegisDefensive, AegisPermissive, ShieldGemma variants, Perspective API, GPT-4o) are vulnerable…
Research Paper
Peering Behind the Shield: Guardrail Identification in Large Language Models
Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.
View PaperEvidence
This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.
https://arxiv.org/abs/2502.01241Related research
- Chained Guardrail Bypass
Published April 1, 2025 · application-layer, prompt-layer, injection
- Adaptive Web Agent Prompt Injection
Published February 1, 2026 · application-layer, prompt-layer, injection
- Agent Policy Hacking
Published July 1, 2025 · application-layer, model-layer, prompt-layer