4.3 Privacy and security
Privacy and security
AI systems are built on data, much of it about people, and they introduce privacy and security risks that ordinary software does not. Using AI responsibly means understanding how it can leak information and how it can be attacked.
Privacy risks
- Sensitive training data. Models are often trained on data containing personal information. A model can memorize rare training examples and, if prompted cleverly, regurgitate them — leaking someone's private data that was in the training set.
- What you send to the model. When you paste text into a hosted AI service, that text leaves your device. Sharing confidential or personal information with a third-party model can itself be a privacy breach, depending on how the provider handles it.
- Inference of private facts. Models can infer sensitive attributes (health, identity, location) from seemingly innocuous data, creating privacy risks even when no explicit private data was provided.
Security risks
- Prompt injection. Because language models follow instructions in their input, an attacker can hide malicious instructions in a webpage or document the model reads, hijacking its behavior — telling it to ignore its rules or exfiltrate data. This is a new and serious class of attack unique to AI systems.
- Adversarial examples. Inputs can be subtly manipulated to fool a model — a few pixels changed to make an image classifier confidently misread a stop sign — in ways invisible to humans.
- Data poisoning. An attacker who can corrupt the training data can plant hidden flaws or backdoors in the resulting model.
The practical stance
Treat AI systems as part of your attack surface. Do not feed confidential data to third-party models carelessly, be skeptical of letting models act on untrusted content, and assume that anything in training data could potentially surface.
A worked example
Researchers have shown that large language models can be prompted to reproduce verbatim chunks of their training data — including, in some cases, personal information like names, addresses, and phone numbers that appeared in the source text. The model was never meant to "store" those details, but with enough capacity it memorized rare examples. This is the concrete face of the privacy problem: the data a model learned from can leak back out.
