The TryHackMe Prompt Defence Room is a subscriber only room from TryHackMe and is part of their AI Security Learning path. The room focuses on how a company that defend against prompt injections and jailbreaking of their AI systems. The room is available at https://tryhackme.com/room/promptdefence
- What term describes the security philosophy of stacking multiple controls so that breaking one still leaves an attacker facing others?
Answer: Defence-in-Depth
2.1 What role field value should developer instructions always be placed under in structured prompt templates?
Answer: System
2.2 What should never be stored inside a system prompt?
Answer: Sensitive Data
2.3 What is the term for limiting a model strictly to its intended purpose in a system prompt?
Answer: Tight scoping
2.4 Which system prompt hardening pattern directly addresses roleplay and persona-based bypass attempts?
Answer: Persona restriction
3.1 What type of guardrail uses string matching and regex patterns to reject requests based on known attack phrases?
Answer: Blocklist
3.2 What type of guardrail runs before the model receives the user’s prompt?
Answer: Input guardrail
3.3 What BERT-based classifier developed by Meta is used as an AI-powered input guardrail?
Answer: Llama Prompt Guard 2
4.1 What foundational security principle states that every component should have only the permissions it needs to perform its job?
Answer: Principle of Least Privilege
4.2 What is the OWASP identifier for the vulnerability caused by unsanitised LLM output being passed to downstream systems?
Answer: LLM05:2025
4.3 What classic web vulnerability can result from LLM-generated JavaScript being rendered in a browser without sanitisation?
Answer: XSS
5.1 Can you get the flag?
Answer: THM{fbu349b3u4b934byr93b}