AI security
Protecting AI systems, and the people and data they touch, from misuse, manipulation, and leaks.
AI security covers the ways AI systems can be manipulated or misused, and the defenses against them. Many risks are familiar ones in a new form: leaked secrets, excessive permissions, and untrusted input. What is new is that a language model mixes instructions and data in the same channel and can be persuaded by text, so anything the model reads can try to steer what it does.
The main threats include prompt injection, where content carries instructions the model may follow; data leaks, where a model reveals private context or sends it somewhere through a tool call; memory poisoning, where bad entries saved to long-term memory are trusted later; and supply-chain risks in third-party tools, plugins, and model weights. Agents raise the stakes, because a manipulated model can act, not just talk.
The strongest defenses are structural rather than clever prompts. Give each agent the least privilege it needs, keep secrets out of the context, run untrusted code in sandboxes, require human approval for irreversible actions, and treat model output as untrusted input to the rest of the system. Be especially careful when one system can read private data, ingest untrusted content, and send data outward; that combination turns an injection into a leak.
Log and trace what agents read and do, so an incident can be reconstructed. Test with adversarial inputs as part of normal evaluation, and assume some attacks will get past the model; design so that when they do, the damage is small.
Prompt injection
An attack where text a model reads carries instructions that hijack what it does.
Prompt injection is an attack in which text a model reads carries instructions the model may follow. Direct injection comes from the user typing it. Indirect injection is hidden in content the system retrieves, such as a web page, email, document, or tool result, and it matters most for agents, because the attacker never talks to the system directly but can still steer its actions.
The root cause is that instructions and data share one channel: to a language model, everything is text. Filters and warnings in the prompt help a little but cannot be relied on. The strongest defenses are structural: give agents least privilege, keep untrusted content away from sensitive tools and data where possible, require human approval for risky actions, and treat model output, including tool arguments, as untrusted input. Assume some injections will succeed, and limit what they can reach.