Protecting data and secrets when using AI
10 questions on sharing data with AI tools, API keys, secret leaks and free-tier privacy. With explanations.
- 10 questions
- Stopwatch
- Instant feedback
Sample questions
Play now ↑Answers stay hidden. Start the quiz to play them.
Sample 1
Before sharing data with an AI service, what is the first question to ask?
- What exact fields am I sending?
- Which font looks best in the answer?
- Can I share it faster by pasting the whole file?
Sample 2
Why must a private model-provider key never reach browser code?
- Browsers can't store text
- Keys only work on slow servers
- Anyone can open the network tab and read it once the app runs
How it works
- One question per screen. An answer is final once sent.
- You see right away whether you were right, with a short explanation.
- The stopwatch runs: on equal scores, the faster player ranks first.
- Only your best attempt counts, so replaying is never risky.
About this quiz
Data travels further than the final answer. When you work with an AI assistant, it goes into the prompt, the conversation history, tool results, logs, traces and generated files. Each of those is a place a copy can stay. Secrets can leak through a screenshot, a shell history or an error message just as easily as through source code, and an environment variable that reaches browser code is public to anyone who opens the network tab. Because assistants now read files and run commands for you, it pays to know exactly what leaves your machine before it does.
The first habit is a question: what exactly am I about to share? Knowing what leaves your machine is the starting point for deciding whether each piece is needed. Share the minimum that reproduces the problem. If a bug depends on the name of one setting in a configuration file, the name is usually enough and the value, which may be a password or a key, is not needed at all. Where you can, use a synthetic record instead of a real one. A made-up customer with the same structure keeps the shape that causes a bug while removing real personal data.
When you do have to sanitise real data, do it carefully. Replace identifiers consistently, so that the same customer always becomes the same fake identifier. If one real ID turns into two different fake IDs, the link between the records is lost and the bug you are chasing may disappear. Some material should never go to an AI service as it is, such as private keys, credentials and personal data. Public information, such as a public schema, carries no such risk.
Keys deserve special care. A private model-provider key must never reach browser code, because anything that reaches the browser is public. The model call belongs on a server, which exposes only the narrow operation the client needs. Secrets also leak in more places than people expect, and agents write many of them, so check logs, generated files, configuration, test fixtures and command history, as deleting one visible line does not remove copies elsewhere.
These habits cost very little compared with an incident. Sharing a smaller sample takes seconds. Replacing a real record with a made-up one takes minutes. Cleaning up after a leak, rotating credentials, checking logs, informing the people affected and possibly explaining it to a regulator, can take days. Because assistants now read files and run commands on your behalf, the point where data leaves your control is often a step you never see, which is why the first question is always what exactly is about to be sent.
Sooner or later someone commits a secret. When that happens, assume anything committed or logged has already been copied. Deleting the line does not undo that. Rotating the key, so that the old value stops working, is the step that actually makes the leaked value useless. Cleaning up copies is worthwhile, but rotation comes first. This quiz has 10 questions on what to check before sharing, minimising and sanitising data, synthetic records, where secrets leak, key safety, leak response and reading the privacy terms of free tools. Every answer is explained. It suits developers, analysts and managers who handle sensitive material.
Questions and answers
›How long does the quiz take?
About 3 to 4 minutes for 10 questions at roughly 20 seconds each, with an explanation after every answer.
›Do I need to be a security expert?
No. The questions cover practical habits and short scenarios. They are written for anyone who pastes work material into an AI tool, not only for specialists.
›What should I check before sharing data with an AI service?
Ask exactly what is leaving your machine and whether each part is needed. Share the minimum that reproduces the problem. Remove credentials, personal data and anything confidential that is not essential to the task before you send anything.
›What is a synthetic record and why use one?
A synthetic record is an invented example with the same structure as real data. It lets you reproduce a problem without exposing a real person's information. It works best when it keeps the features that cause the issue, such as formats and relationships between fields.
›Why must a model-provider key never be in browser code?
Anything that reaches the browser can be read by any visitor. If the key is there, anyone can copy it and spend your budget or access your data. The model call should happen on a server, which exposes only the limited operation the client needs.
›Where do secrets commonly leak?
Beyond source code, they appear in logs, error messages, generated files, configuration, test fixtures, screenshots, shell history and prompts. Agents write to many of these places, so it is worth checking them after a session. A deleted line may still exist in history or copies.
›What should I do when a secret has been committed?
Treat it as compromised. Rotate or revoke the credential so the old value no longer works, then clean up copies. Deleting the line is not enough, because the value may already be in history, caches or backups.
›Why should I read the privacy terms of a free AI tool?
Free services are sometimes paid for with data, for example by using conversations to improve products. Terms differ between consumer, business and developer plans, even from the same company, so read the current policy before pasting anything you want to keep private.