CY0-001 practice question 25 of 35

Deterministic validation techniques, such as comparing model outputs against a fixed list of forbidden keywords, are considered a comprehensive and sueicient method for validating Semantic Guardrails intended to prevent Indirect Prompt Injection and Social Engineering attacks in Large Language Models (LLMs). Is the statement above True or False?

Full set: 484 questions
Answer options
A: False
B: True Correct answer
Correct Answer:
B. True
Explanation

The statement is False. Deterministic validation techniques, such as fixed keyword blocklists, are fundamentally insufficient and not comprehensive for validating Semantic Guardrails against sophisticated attacks like Indirect Prompt Injection. Attackers can easily circumvent such static filters by using synonyms, rephrasing, or embedding malicious instructions within seemingly benign data. These attacks operate on a semantic level, requiring guardrails that can understand context and intent, which a simple keyword list cannot do. A robust defense requires more advanced techniques, often involving another AI model to analyze the semantic meaning of prompts and responses.

Why Incorrect

True: This option is incorrect because it vastly overstates the effectiveness of a simple, deterministic method against complex, adaptive, and context-aware attacks. Real-world examples have repeatedly shown these filters fail.

References

1. OWASP Foundation. (2023). OWASP Top 10 for Large Language Model Applications. (The entry for LLM01: Prompt Injection explicitly states that these attacks "bypass filters" and that "Regular filtering, such as denylists, is an incomplete defense").

2. Greshake, K., et al. (2023). Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection. In Proceedings of the 2023 ACM Workshop on Artificial Intelligence and Security. (This research paper demonstrates how indirect prompt injections successfully bypass existing defenses, highlighting the inadequacy of simple filtering). DOI: https://doi.org/10.1145/3605764.3623945

3. Wei, A., et al. (2023). Jailbroken: How Does LLM Safety Training Fail?. arXiv preprint arXiv:2307.02483. (This paper explores how safety mechanisms, including filters, can be bypassed, showing that simple deterministic rules are not sufficient).

Scroll to Top