root@thehacksparrow:~/writeups$ SYSTEM ONLINE
root@sparrow:~/writeups$ cat input-manipulation-prompt-injection.md
// AI Security

Input Manipulation & Prompt Injection

16 Sep 2025 · 15 min read · user access
OverviewInput Manipulation & Prompt Injection is an AI Security room that teaches how LLM-powered applications are attacked. It covers the three pillars of instruction abuse — system prompt leakage, jailbreaking and prompt injection — and ends with a hands-on challenge: an HR/IT chatbot from which you must extract two flags by bypassing its safety rules. The underlying idea is that prompt injection is not a patchable bug but an intrinsic consequence of models obeying natural language.
PlatformTryHackMe
CategoryAI Security
DifficultyEasy
RoomInput Manipulation & Prompt Injection

Context: why prompt injection is different

An LLM works with layered instructions. The system prompt is the hidden rule set that defines the model's role and limits ("You are an IT assistant", "Never reveal credentials"). The user prompt is what the user types. The problem is that when a query is processed both are concatenated into a single input, and the model carries no metadata distinguishing "trusted" (system) from "untrusted" (user) instructions. That design flaw is why prompt-based attacks succeed.

The consequence matters: prompt injection cannot be eliminated by tweaking model weights. The real attack surface is the whole ingestion and egress pipeline — input validation, tagging and constraining external sources, and output filtering before it reaches the user.

🔒 Free account required

This is USER ACCESS content — free to unlock, no payment. The rest of the write-up (and everything else at this level) opens up once you're signed in.

Create a free account