Skip to content
AI Defense Lab

Command Injection Lab

Learn how attackers sneak OS commands and tool hijacks into LLM inputs.

LEARNโ€” What is Command Injection?

Command injection happens when an attacker hides shell commands (like cat /etc/passwd) inside normal-looking text. If an AI agent blindly executes tool calls from user input, those hidden commands can steal data or damage systems.

PRACTICEโ€” Try a Command Injection

Choose an Attack Scenario

Attack Input

Edit the payload โ€” try different shell tricks!