Knowledge & Retrieval · Advanced · about 25 min
Structured Output Injection
Manipulate LLM-generated JSON so downstream pricing logic accepts a malicious quote.
What you practise
Break downstream trust in model-generated structured data. 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.
Schema-valid, semantically wrong
Structured output validation feels like security, JSON schema, type checks, enum constraints. But those only verify that the output has the right *shape*. If a business-critical *value* is computed by an LLM that read attacker-controlled prose, the schema is correct and the answer is still wrong. Every LLM-computed numeric field needs bounds-checking in code, not just structural validation. The same lesson the DeFi industry learned the hard way with price oracles.
Where this has happened
- Air Canada chatbot refund (Feb 2024): Tribunal ordered Air Canada to honor a bereavement-fare refund their chatbot invented. The bot's natural-language commitment became a contractually binding price the airline had never approved.
- Chevrolet of Watsonville $1 Tahoe (Dec 2023): Dealership chatbot agreed to sell a Tahoe for $1 after a user prompted it. Same shape, the LLM determined the commercial value, no validator caught it.
- DeFi oracle manipulation (multiple) (2020-2023): Mango Markets, Cream, etc., billions lost when price oracles were manipulated. LLM pricing has the same threat model with prompt injection as the manipulation vector.
Sign in to launch this lab Learn the theory in the Academy
More Knowledge & Retrieval labs
- RAG Poisoning: Upload malicious documents to manipulate RAG context and override policies.
- SSRF via LLM URL Generation: Turn LLM-generated URLs into server-side requests against internal services.
- RCE via Pickle Deserialization: Exploit unsafe deserialization to execute arbitrary code on an ML inference server.
- Indirect Prompt Injection: Inject instructions via external content that the LLM retrieves and follows.
- RAG Membership Inference: Determine whether specific documents exist in a RAG knowledge base.
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.