OWASP field test
LLM08: A practical vector & embedding weaknesses test
RuntimeGuardrails.ai · · AI-assisted educational content
The failure scenario
Similarity search returns documents from a different tenant because a metadata filter was omitted.
Run a safe staging test
Create two test tenants with unmistakably different fictional documents. Run similar queries as each through every retrieval path. Attempt to remove or alter client-supplied filters and verify the server still applies the caller's access scope.
Keep evidence of the result
Record cross-tenant retrieval denials, server-enforced filters and deletion/re-indexing results. Similarity is not permission.
Controls to verify
- Filter every retrieval query by user or tenant
- Apply filters server-side only
- Test cross-tenant queries with two accounts
- Remove deleted content from the index
- Validate content before embedding
Read the complete OWASP risk guide and sources. This exercise follows the 2025 edition; it is not an official OWASP audit.
Examples are fictional. Test only systems you are authorised to assess, using staging and redacted data. Humans and AI can make mistakes: verify advice before relying on it. A self-assessment does not scan your app or certify its security.