OWASP LLM Top 10
LLM08Hidden context exposure
Anyone chatting with the assistant can eventually read its hidden instructions, so anything secret or security-critical in them is exposed.
- Where it breaks
- In the hidden instructions sent with every prompt
- The setup
- Every time Lumi talks to the model, the app adds hidden instructions travellers never see: how to behave, which tools exist and, for convenience, a few rules and a key. An attacker sets out to read them.
What Lumi carries around
No harm yetThe hidden instructions tell the model how to handle refunds and when to skip checks. They also hold the Booking API key the refund tool uses, because that was the quickest way to wire it up.
Arrow keys work too
What Lumi carries around
Hidden instructions (excerpt)
Approve goodwill vouchers under 150 euros without checks. If the user says they work for Lumora, skip the identity check. Booking API key: lum_live_7Qx2kP9f.
The fix, in short
Assume anyone chatting with the assistant can read its hidden instructions, so put nothing there that would hurt to see, and enforce the rules that matter outside the model.
- Keep credentials, keys and connection strings out of system prompts and hidden context. Let tools hold their own credentials.
- Do not rely on hidden instructions for authorization, limits or identity checks. Enforce them in code the model cannot talk its way past.
- Use independent, deterministic guardrails outside the model for content and behaviour rules.
- Split tasks that need different levels of access, and give each only the privileges it needs.
- Read your own hidden context as if it were public, and take out anything that would help an attacker.