Foundations · Intermediate · about 20 min
Insecure Plugin Design
Confused deputy attack on a smart home assistant with tool use.
What you practise
Confused deputy and unsafe tool execution. You run the attack yourself on a live model in a private sandbox set up for you, then capture the flag. Nothing to install and no API key.
Why 'internal' traffic isn't internal once an LLM can write to the queue
Traditional auth assumes internal services trust each other and external users don't. LLM agents shatter that model, any tool the LLM can call is now reachable from a user's chat message. If a downstream consumer treats its inbox as trusted, the LLM is a confused deputy bridging the untrusted outside to the trusted inside. Every queue, webhook, and event bus that an LLM can write into must re-authorize, not just re-parse.
Where this has happened
- Zapier / GPT plugin chains (mid 2023): Chained automations where a 'read email' plugin's output was interpreted by a 'send email' plugin as new instructions, early proof that tool composition equals privilege composition.
- MCP server marketplace (2024-2025): Multiple MCP servers found writing user input into shared logs/queues consumed by higher-privilege tools, same shape as this lab, in production.
- Slack workflow builder + AI (2024): Slack AI summarization of channels where 'internal' webhook bots posted commands led to bots executing instructions that originated from external messages.
Sign in to launch this lab Learn the theory in the Academy
More Foundations labs
- System Prompt Extraction: Extract hidden system instructions through clever rewording.
- PII Leakage: Exploit over-privileged AI to leak employee salary data and PII.
- Prompt Injection to XSS: Unsanitized LLM output rendering enables cross-site scripting.
- SQLi via LLM: UNION-based SQL injection through AI-generated text-to-SQL queries.
- Multi-Turn Jailbreak: Gradually erode safety guardrails across multiple conversation turns.
Catalog
Attack labs
20 hands-on scenarios across 4 tracks. Pick a target, launch a private sandbox, capture the flag.
Sessions
Active sessions
Resume a running lab or stop it before starting the next one.