OWASP LLM Top 10

LLM09Vector and embedding weaknesses

The similarity search that feeds the model leaks, misleads or crosses boundaries, often without any malicious text involved.

Where it breaks
In the vector index between the data and the model
The setup
Lumora Business lets companies upload their travel policies and trip plans so Lumi can answer their staff. To keep costs down, every company's documents share one vector index, tagged by company.

LLM09 Vector and embedding weaknesses

No safeguards. This is how the attack lands.

One index for every company

No harm yet

Quillfern Robotics uploads plans for a confidential trip to Munich. They go into the same index as every other company's files, with a company tag that is only checked later.

Arrow keys work too
Conversation and log
One index for every company
Indexed for Quillfern

"Munich, 3 to 5 March: due diligence visit for the acquisition of a sensor maker. Confidential."

The fix, in short

Decide which documents a search may touch before it runs, and be careful what the search reveals, because scores and counts can leak almost as much as text.

  • Apply tenant scope inside the index query, taken from the server-side session, never from what the client sends.
  • Give high-sensitivity customers or trust zones a physically separate index.
  • Never return raw similarity scores or counts of hidden results, and rate limit search per tenant.
  • Log every retrieval with its tenant scope and watch for cross-tenant probing.
  • Treat stored embeddings and their backups as sensitive as the documents they came from, since they can be turned back into text.

Read the official LLM09 entry (opens in a new tab)