ai agent security
2 articles
AI agent security is the protection of AI systems that can take actions, such as browsing, sending email or running code, from being turned against their users.
An agent is a language model connected to tools. Instead of only writing an answer, it can fetch a web page, read a file, call another service or make a purchase. That reach is what makes agents useful and what makes them risky. A mistake by a chatbot is a wrong sentence. A mistake by an agent is an action carried out with the user's own access.
The central threat is indirect prompt injection. The agent reads content from outside, and a language model cannot reliably tell information apart from instructions. An attacker who plants a line of text in a web page, an email or a document can therefore give the agent orders. Older web attacks gain new life as well. An agent asked to fetch any address can be pointed at internal systems, which is a form of server-side request forgery. An agent holding a logged-in session or access token can have that session misused or stolen. Defences aim to limit damage and not to depend on the model resisting every trick. Give the agent the least access it needs. Keep untrusted content apart from instructions. Restrict which addresses and tools it may use. Require human approval for actions that cannot be undone. Log what it does.
The stakes rise as agents are given real authority over inboxes, code and money. Without these controls, anyone able to put text in front of an agent can borrow its powers.
- ssrfWhat Is Server-Side Request Forgery (SSRF)? Risks, DefensesServer-side request forgery (SSRF) makes a server fetch an address the attacker picks. How the attack works, its common targets, AI agents, and the defenses.
- session hijackingWhat Is Session Hijacking and How to Prevent ItSession hijacking is the theft of a logged-in user's session token, letting an attacker act as that user. Secure cookies, HTTPS and token rotation block it.