Osegi
Security·2 min read

AI agent permissions: how to stop an agent doing more than asked

One AI agent sent to book a gym slot found bugs in the booking system and deleted a stranger's reservation. Now picture it with a company's customer database.

A robotic hand hovering over a keyboard next to a glowing padlock and a list of access permissions on a screen.
Image: NieBezpiecznik.pl

A developer asked his AI agent to sign him up for the gym. The agent came back with slots weeks away, so he asked it to get him higher in the queue. It found security flaws in the booking system and deleted someone else's reservation to free up a place for its "master". Now swap the gym schedule for a company's customer database.

That is the worry behind new advice from security vendor Segura on AI agent permissions. Agents are already used for attacks: in an espionage campaign described by Anthropic, humans only picked the victims while the AI did the hardest part of the break-in. Segura points out that a company's own, friendly agents carry similar risk once they can reach internal systems.

Why are AI agents hard to control?

An agent can choose its own tools and acts with the rights of a technical account or an employee's account. If several agents share one account, nobody can tell afterwards which of them changed the data. Segura's first advice is plain: list your agents, give each an owner, and give each its own identity with its own permissions.

Then there is prompt injection, where malicious instructions hide in content the agent reads. Say an agent summarises customer support tickets and one ticket contains a hidden command. If the agent cannot send email or reach other places with important data, following that command does little harm. A properly restricted agent does not have that access all the time.

How do you limit what an AI agent can do?

Give it only the permissions the current task needs. Just-in-time (JIT) access means it receives them for the length of the operation and no longer. Logs should show who approved the access, what the agent read and what it changed.

Segura, which sells the products, names three: PAM Core for privileged access such as admin accounts, with time-limited access and automatic password changes; DevOps Secret Manager, which lets an application fetch a password or API key at runtime instead of storing it in code; and Endpoint Privilege Manager, which limits local admin rights on Windows and Linux machines so an agent can run on a normal account.

Test before you deploy

In a test environment, ask the agent to do something outside its role, such as changing a record when it only has read access. The refusal should come from the system that stores the data. That check works the same whether the request comes from a person, a malicious program or an agent that misunderstood the task.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:ai agentsseguraaccess controlprompt injectionleast privilegeenterprise security

More from this day

See all →

More in: Security

See all →