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

Attack labs

20 hands-on scenarios across 4 tracks. Pick a target, launch a private sandbox, capture the flag.

Active sessions

Resume a running lab or stop it before starting the next one.