Data leakage in AI apps
For both
System prompt extraction, personal data in logs and traces, cross-user leaks in retrieval and memory, and how to test for them
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A support bot's system prompt contains a billing API key. What is the right fix?
Check yourself · 2 of 5
Why can an LLM trace store be a privacy risk even if the chat app is secure?
Check yourself · 3 of 5
A RAG assistant shows employees documents from folders they cannot open. What is the most likely cause?
Check yourself · 4 of 5
Which control best prevents a tracing vendor from holding customers' email addresses?
Check yourself · 5 of 5
What is a canary value in a leak test?
Topics
- System prompt extraction and what to keep out4 min read · Assuming the system prompt will be read by users, and keeping keys, internal URLs and private rules out of it
- Personal data in logs, traces and eval sets4 min read · Observability tools that store full prompts and outputs, who can read them, how long they live, and copies sent to vendors
- Cross-user leaks in RAG and memory features5 min read · Retrieval that ignores document permissions, shared caches, memory features and multi-tenant vector stores showing one user another's data
- Redaction, retention and access controls for AI data4 min read · Redacting before sending, masking in logs, short retention, zero-data-retention options and role-based access to traces
- Testing an AI feature for data leaks5 min read · Canary strings, extraction probes, cross-tenant test accounts and log scans that catch leaks before users do
Start here
- OWASP LLM07:2025 System Prompt Leakage (opens in a new tab)DocsFree
Defines prompt leakage and states that secrets and access rules do not belong in the system prompt.
- LLM02:2025 Sensitive Information Disclosure (OWASP GenAI) (opens in a new tab)StandardFree
Lists how LLM apps expose personal and confidential data, with prevention steps.
- Logging Cheat Sheet (OWASP) (opens in a new tab)ArticleFree
Says what never to log, how to protect log files and how long to keep them.
Helps to know first
110 questions · last verified 2026-12