← All posts

Who Is That Agent? Identity and Access Management for AI Agents

By MergeRequest · · IAM

A year ago the question was whether to let an AI assistant suggest code. Now teams are running agents that open pull requests, query databases, restart services and file tickets. Each of those is an action taken inside your systems by something that is not a person. That makes it an identity and access problem.

Most organisations already manage far more non-human identities than human ones: service accounts, API keys, workload roles. Agents add a new kind, and they bring a few twists of their own.

1. Give Every Agent Its Own Identity

Do not let agents borrow a developer’s credentials or share one catch-all service account. If three agents share a key, your logs cannot tell you which one deleted the bucket. One agent, one identity.

2. Start From Zero and Add

Least privilege is the oldest rule in the book, and it applies here in full. Grant only what the task needs. A documentation agent needs to read the repo, not push to main. An incident agent may need to read logs but should not be able to change IAM policies.

3. Prefer Short-Lived Credentials

Long-lived keys leak, and agents handle a lot of text that ends up in logs and prompts. Issue tokens that expire in minutes or hours and are tied to a specific task. If one escapes, the damage is limited.

4. Keep the Human in the Picture

Often an agent acts on behalf of a person. Your systems should record both: which agent did it and who asked. The agent should never have more access than the person it is acting for.

5. Put Approval Gates on Risky Actions

Reading is low risk. Deleting data, changing permissions, spending money and deploying to production are not. Require a human to approve those, and make the approval a real control in the system, not a polite request in a prompt.

6. Log Everything the Agent Does

Every tool call, with its inputs and outcome, should land in an audit log that the agent cannot edit. You will want it for debugging, for security reviews and for your auditors.

7. Review and Retire

Agents get created for experiments and then forgotten. Include them in your regular access reviews. If nobody can say what an agent is for, switch it off.

8. Assume the Agent Can Be Tricked

Prompt injection means an agent may one day follow instructions from a document it was only supposed to read. Design as if that will happen. Narrow permissions and approval gates are what turn a successful trick into a non-event.

Conclusion

Agents do not need a brand new security model. They need the one you already have, applied carefully: unique identities, least privilege, short-lived credentials, approvals and audit logs. The teams that treat agents as first-class identities from the start will avoid a painful clean-up later. If you would like help getting there, see our IAM and Cloud Security services.

Let’s talk about a project, collaboration or an idea you may have

ACCELERATING INNOVATION SINCE 2021 ·

Contact form