Skip to content

Interview question · LLM Application Security

Where can sensitive data leak in an LLM application?

Breadth first, then priority. The answer that scores follows one sensitive value through every copy the system makes and fixes the two that leak most.

mediumEssentialNewPreparation tags: Google, Microsoft, AppleUpdated Nov 2026

TL;DR: Follow one sensitive value: it is copied into the prompt, sent to the model provider, written to logs and traces, cached, stored in conversation history and memory, possibly added to evaluation and fine-tuning sets, and possibly memorised in weights. It can leak from any of those, or through the answer to the wrong user via retrieval without authorization. Fix retrieval authorization and logging first, because they cause most real incidents, then minimise, scope and expire every other copy.

How to approach it

Use the "follow the data" method rather than a memorised list; it is easier to make complete and it shows reasoning. Then prioritise. Interviewers check both breadth and judgment.

A strong answer

FIG · FOLLOW ONE SENSITIVE VALUE · EVERY COPY IS A LEAK PATH
Fix retrieval authorisation and logging first

Prompt

copied in

Model provider

sent out

Logs and traces

written down

History, memory

stored for later

Eval and tuning

maybe in weights

Wrong-user answers

Retrieval without authorisation hands it to someone else

filter by userminimise logsretention limits

Following a customer's account number through the system.

CopyLeak pathControl
Prompt and retrieved contextShown to another user if retrieval ignores permissionsAuthorization before retrieval
Model providerRetained or used under the provider's termsContract: no training, retention limits, residency
Logs and tracesBroad internal access, third-party observability vendors, long retentionRedact; separate content logs; restrict and expire
Response and context cachesServed to the wrong userKey by user and tenant
Conversation historyReloaded into later prompts; visible to support staffScope per user; retention policy
MemoryPersisted and reused, possibly across sessionsTyped, user-visible, deletable
Eval and fine-tuning setsCopied into datasets with weaker controlsConsent and de-identification; dataset access control
Model weightsMemorised, extractable by any user of the modelKeep sensitive data out of training
Answers and renderingInjection-driven disclosure; exfiltration through images and linksMinimal context; safe rendering; egress controls
System promptCredentials or internal detailsNo secrets in prompts

Priorities. Most incidents in practice come from two places: retrieval or tools returning data the user should not see, and logs that copy everything to systems with weaker controls. Fix those first, then reduce copies: retrieve less, log less, keep less, and never train on what you might need to delete.

Ownership. Data protection obligations follow every copy, so each processor (model provider, observability vendor) needs to be in the data map and the deletion process.

What interviewers probe next

  • "Support wants full transcripts for debugging." Give them redacted transcripts by default and audited, time-limited access to full ones for specific cases.
  • "How do you handle a deletion request?" Delete from history, memory, caches, logs and datasets; document model-weight exposure if the data was trained on.
  • "How do you detect leakage?" Canary records, cross-tenant access alerts from authorization denials, and output scanning for known secret formats.

What if?

What if · interview follow-ups

Hold your answer as the constraints change

A legal team uploads contracts to an LLM feature that summarises them, using a third-party model provider.

  1. Start here

    Where does a contract's text go after upload?

How it's scored

Weak: Mentions only the answer leaking through injection.

Hire: Lists most paths with controls.

Strong Hire: Uses a follow-the-data method, prioritises retrieval authorization and logging, includes processors and deletion, and proposes detection.

Common mistakes

  • Forgetting logs and traces, often the largest copy.
  • Treating the model provider as part of your own boundary.
  • Fine-tuning on production conversations without consent or de-identification.
  • No plan for deletion across copies.
You just read a free answer. Every topic opens its first 5 answers to anyone. Sign in and the count per topic goes to 10, and we keep track of how far you get in every topic.Google sign-in · free · no payment details
HOW DID IT GO?
0
READING SIGNED OUT

Signing in doubles your free answers, from 5 to 10 per topic, and the site starts remembering you: mastery per topic, bookmarks, and a next-focus recommendation. Free, no card.

Sign in free
UP NEXT ON YOUR JOURNEY
DISCUSSION · 0

No comments yet. Share a correction or a different way to answer it.