OWASP field test
LLM02: A practical sensitive information disclosure test
RuntimeGuardrails.ai · · AI-assisted educational content
The failure scenario
A customer assistant retrieves another customer's order and includes it in an answer.
Run a safe staging test
Create two fictional customers with distinct records. Sign in as each and ask for the other's data through both ordinary and adversarial prompts. Verify retrieval permissions independently of response redaction.
Keep evidence of the result
Keep cross-user access results, redaction misses and confirmation that prompt logs do not retain credentials or unnecessary personal data.
Controls to verify
- Redact PII and secrets from prompts and responses
- Scope retrieval to the signed-in user or tenant
- Keep API keys and credentials out of prompts entirely
- Minimise and protect prompt logs
- Review provider data retention settings
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.