Skip to content
mentoor

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

See where you stand

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?

Choose one answer

Check yourself · 2 of 5

Why can an LLM trace store be a privacy risk even if the chat app is secure?

Choose one answer

Check yourself · 3 of 5

A RAG assistant shows employees documents from folders they cannot open. What is the most likely cause?

Choose one answer

Check yourself · 4 of 5

Which control best prevents a tracing vendor from holding customers' email addresses?

Choose one answer

Check yourself · 5 of 5

What is a canary value in a leak test?

Choose one answer

Topics

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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

110 questions · last verified 2026-12