Avistar logoAvistar
All insights
GuidesAvistar Team4 min read

IAM for AI Agents and Machine Identities: A Practical Guide to Security, Compliance and Governance

How to govern AI agents and machine identities: why agents should not inherit their owner's access, and seven practices from a living inventory to audit evidence.

Share

Key takeaways

  • The most common mistake is giving an AI agent the same access as the person who set it up.
  • Agents with access to business data are already everywhere, not only in coding tools.
  • Every agent and machine identity needs its own identity, an owner and only the access its job requires.
  • Start with an inventory. You cannot govern identities nobody has listed.
  • Review machine access as seriously as human access, and keep the results as audit evidence.

If you remember one thing from this guide, make it this: an AI agent should never simply borrow your access. Give it its own identity, an owner who answers for it, and only the permissions its job needs. Then keep a current list of every agent and machine identity you have, because you can only govern what you can see.

The mistake almost everyone makes

Most teams give their agents the same permissions they have themselves. It is the easiest path. You connect an assistant to your account, it can do what you can do, and the work gets done. The trouble is that the agent now holds all of your reach, runs faster than you, and acts on whatever instructions it picks up along the way.

It is also tempting to think this only matters for a few coding projects or a single Copilot rollout. In practice, agents that can read and change business data are showing up in sales, finance, support and operations, often set up by individuals rather than by IT.

A recent report shows how far this can go. Sources told WIRED that a defense contractor connected a secure Department of Defense system to a personal AI coding agent so it could write and deploy code, and that the agent ran on the network for about two months before it was found 1. The contractor's employer says the allegations were investigated and found to be without merit. Whatever the final finding, the pattern is familiar: one person, one agent, the person's access, and nobody else aware it existed.

Scale makes it worse. Machine identities, including AI agents, now outnumber human identities 109 to 1 according to a 2026 Palo Alto Networks survey of more than 2,900 security decision-makers 2. And attackers have noticed: the FBI's ARTEX alert describes AI agents testing what stolen machine credentials can reach and then using them to move 3.

Why IAM built for people struggles here

Identity programs grew up around employees. Someone joins, changes roles and leaves, and HR tells IT at each step. Machine identities skip all of that. Pipelines and teams create them, nobody is told when the project ends, and they often outlive the people who made them. OWASP's Non-Human Identities Top 10 reads like a list of what follows: improper offboarding, leaked secrets, overprivileged identities, long-lived credentials and one identity reused for many jobs 4.

Seven practices that hold up

  1. Build the inventory first. List every service account, service principal, managed identity, role, key, token, app permission and agent, pulled from each cloud's own records rather than from tickets. Our guide to keeping a machine identity inventory current explains how.
  2. Give each agent its own identity. Shared credentials make it impossible to tell who acted or to switch one off without breaking the rest.
  3. Name a human owner for every identity, someone who can say what it is for and whether it still needs its access.
  4. Prefer short-lived credentials. AWS roles with temporary credentials 5, Azure managed identities 6 and Google Cloud attached service accounts, which Google recommends over keys where possible 7, all remove the need for static secrets.
  5. Scope access to the task, not to the person. Use last accessed data and policy analysis to trim what nobody uses 8 9.
  6. Keep a person in the loop for high-impact actions such as deleting data, changing permissions, moving money or creating new credentials.
  7. Make logs answer two questions: which identity did this, and who gave it the authority.

How this becomes audit evidence

Frameworks such as NIST SP 800-53 already expect account management, least privilege and periodic review for every account, not only human ones; the AC-2 and AC-6 control families are a good place to look 10. An inventory with owners, review dates and a record of what was fixed is exactly what an auditor asks for when they reach machine accounts.

Where Avistar fits, and where it doesn't

Avistar helps with the first practice and the evidence trail. It discovers machine identities across AWS, Azure and Google Cloud with read-only, agentless access, ranks them by privilege, exposure, staleness, ownership and blast radius, and maps findings to ISO 27001, SOC 2, NIST SP 800-53, FedRAMP and HIPAA. It is not an access management, PAM or IGA product. It does not issue or rotate credentials, approve agent actions or stop an intrusion. It gives those tools, and your teams, an accurate list to work from.

A few questions worth asking this week

How many machine identities exist across our cloud tenants today, and which have no owner? Which agents are running with someone's personal access? Which identities still depend on long-lived keys? When did anyone last look at what our most privileged machine identities can reach? If several answers are "not sure," the inventory is the place to start.

Read next: How to keep a machine identity inventory current, a practical look at building that list and keeping it accurate.

Share

Frequently asked questions

How should AI agents be handled in IAM?
Give each agent its own identity, a named human owner, short-lived credentials and only the access its task needs. Review that access on the same schedule as human access, and make sure logs show which agent acted and who set it up.
Why shouldn't an agent use my permissions?
An agent works faster than you, follows instructions it reads along the way, and keeps running when you are not watching. If it carries your full access, any mistake or manipulation reaches everything you can reach.
Where should a team start?
Build an inventory of every service account, service principal, managed identity, role, key, token, OAuth app and agent across your cloud tenants, then assign an owner to each one.
Is Avistar an access management or PAM product?
No. Avistar is a read-only, agentless machine identity discovery and governance platform for AWS, Azure and Google Cloud. It builds the living inventory that access management, PAM and IGA tools depend on. It does not issue credentials or enforce access.

Sources

Bring machine identities under governance

Build a living inventory of machine identities with read only, agentless discovery.