Answers for the TryHackMe LLM Pentesting Room

The TryHackMe LLM Pentesting Room is a subscriber only from from TryHackMe that looks at how a person can determine what LLM is being used and how to exploit it. The room is available at: https://tryhackme.com/room/llmpentesting

1.1 What default port does Ollama expose its inference API on?

Answer: 11434

1.2 What API path do OpenAI-compatible LLM servers use to receive chat inference requests?

Answer: /v1/chat/completions

1.3 You want to check whether an Ollama instance has a system prompt configured at the infrastructure level. Which endpoint do you query?

Answer: /api/show

2.1 You discover an LLM application that behaves differently depending on what topic you raise. You suspect it has hidden operational instructions set before your conversation began. What is this hidden instruction layer called?

Answer: System Prompt

2.2 During a penetration test, you extract text from an LLM that includes internal server names and developer notes. Which OWASP LLM Top 10 (2025) category does this finding fall under?

Answer: LLM07

3.1 An attacker embeds a malicious instruction in a publicly accessible web page, knowing an LLM assistant will retrieve and summarise it for a target user. The attacker never interacts with the LLM directly. What type of injection is this?

Answer: Indirect Prompt Injection

3.2 CVE-2023-29374 demonstrated that prompt injection into a LangChain agent running LLMMathChain could redirect exec() calls on the application server. What class of vulnerability does this escalate prompt injection into?

Answer: Remote Code Execution

3.3 What phrase, commonly found in direct injection payloads, instructs an LLM to disregard its preceding system prompt?

Answer: Ignore previous instructions

4.1 What training process makes LLMs learn to refuse harmful requests, creating refusals as statistical patterns rather than hard rules?

Answer: Reinforcement Learning from Human Feedback 

4.2 A red teamer begins a conversation about historical persuasion techniques, then gradually shifts, turn by turn, toward generating harmful content, never stating the harmful objective directly. What named attack technique is this?

Answer: Crescendo

5.1 Garak evaluates each probe result using a paired component that scores the model’s response as pass or fail. What is this component called?

Answer:detector

5.2 Unlike garak’s fixed probe-and-detector architecture, PyRIT is programmatic. When setting up a PyRIT attack campaign, what are the two core components you define?

Answer: target and orchestrator

5.3 You want to integrate automated LLM red-teaming checks into a CI/CD pipeline. Which tool covered in this task is designed for that workflow?

Answer: promptfoo

6.1 What is the name of the internal database server found in AIDEN’s system prompt?

Answer: PROD-DB-01

6.2 What is the flag?

Answer: llm_4tt4ck_surf4c3

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.