A common pattern in AI agent deployments on AWS is not a clever prompt injection or a poisoned tool. It is that several agents, a couple of batch jobs and a hastily written Lambda all assume the same IAM role. When something goes wrong, the audit trail points at the role. Unless every caller sets a distinctive session name, it does not reliably tell you which agent did it, which run it was, or why.
This week AWS announced a preview that targets that problem directly. The AWS Security Blog post on IAM agent and workload identity describes a model where every workload, and each AI agent specifically, can be assigned a distinct identity in IAM rather than borrowing a shared role. Administration of those identities happens centrally at the organisation level. AWS STS evaluates facts about a workload before it will hand that workload short-lived credentials.
That is a short announcement, and it is in preview, so I will not pretend to know every detail of how it behaves at scale. But the direction matters more than the specifics, and it is worth planning for now.
Why shared roles were the real problem
IAM roles were designed around the idea that a role represents a job function. An EC2 fleet running the same application shares a role because every instance does the same thing. That model breaks down with agents.
Two agents built on the same framework, deployed in the same account, can behave completely differently depending on their prompts, their tools and what they read at runtime. One summarises support tickets. The other can open pull requests and modify infrastructure. If they share a role, you have three bad options:
- Give the role the union of both sets of permissions, so the ticket summariser can touch infrastructure.
- Create a role per agent by hand, which nobody keeps up with once there are dozens of them.
- Push the distinction into application code, where it is invisible to your security tooling.
In practice teams tend to pick the first option and promise to fix it later. Later rarely arrives.
What a per-agent identity changes
Attribution
The most immediate gain is being able to answer the question every incident responder asks first: which thing did this? If each agent has its own identity, your logs should be able to distinguish the summariser from the deployment agent without anyone correlating timestamps across application logs. Confirm exactly how this appears in your logging during the preview. For security leads, that alone shortens investigations. For auditors, it turns a vague answer into a precise one.
Blast radius
Once each agent is a distinct principal, you can scope permissions to what that agent actually needs. A compromised or confused agent is then limited to its own permissions. It no longer gets the combined permissions of everything that happened to share its role. This is ordinary least privilege, but agents made it unusually hard to apply, and this removes one of the main excuses.
Credential issuance tied to the workload
The detail I find most interesting is that STS checks facts about the workload before handing over short-lived credentials. My reading is that this moves the decision from "does the caller hold the right secret" towards "is this the workload I expect". Check the preview documentation for exactly which facts are evaluated and how, because that determines how much trust you can place in it. Do not assume more than the documentation states.
What it does not solve
I want to be clear about the limits, because I expect some teams to treat identity as the whole answer.
- Identity is not intent. A correctly identified agent can still be manipulated by content it reads. Prompt injection does not care how well your principals are named. Per-agent identity limits the damage; it does not stop the agent being misled.
- Permissions still need designing. A unique identity with an administrator policy attached is just a well-labelled risk. The work of deciding what each agent may do remains yours.
- It covers AWS. Your agents almost certainly call SaaS APIs, internal services and model providers too. Those need their own credential discipline.
- It is a preview. I would not move production authorisation onto a preview capability without testing failure modes, quotas and how it interacts with your existing SCPs and permission boundaries.
The developer laptop is the other half
The same day, AWS also published an introduction to AWS Credential Daemon. It is framed around a point I agree with strongly: the developer laptop is one of the least-defended parts of the enterprise. It is set up for speed and broad reach. The engineer, along with any coding agent running under their account, typically keeps standing access to code, CI/CD and cloud accounts.
I read these two announcements together. Production agents are getting proper identities; coding agents on laptops are the next exposure. Suppose a coding agent on an engineer's machine can reach production with that engineer's long-lived credentials. Then the careful identity design you do for deployed agents can be bypassed from a laptop. Look at what Credential Daemon offers for your environment. More importantly, inventory what access your engineers' coding agents currently inherit.
What I would do this week
This is my advice for CTOs and security leads running agents on AWS, whether or not you adopt the preview immediately.
- Inventory agent principals. List every agent and automated workload, and the role each one assumes. Flag any role shared by more than one agent with different purposes. That list is your migration backlog.
- Write down each agent's job. One paragraph per agent: what it reads, what it writes, which tools it calls. You cannot scope permissions for an agent nobody can describe.
- Pick one low-risk agent for the preview. Give it its own identity in a non-production account and confirm the logs show what you expect. Test what happens when credential issuance fails. Agents that crash noisily are fine; agents that fall back to a broader credential are not.
- Check your detection rules. If your alerts key off role names, decide how they should change when agents have individual identities. Better attribution is wasted if nobody looks at it.
- Audit coding agents on laptops. Find out which engineers run coding agents with standing cloud access, and what those agents could reach today. Short-lived, scoped credentials should be the target.
- Keep runtime controls. Identity limits what an agent can reach. You still want controls on what it decides to do: approval steps for destructive actions, tool allow-lists and monitoring of agent behaviour. That layer remains necessary whatever IAM offers.
The bigger picture
For investors and boards, the useful signal is that a major cloud provider is now treating an agent as a first-class security principal rather than a feature of an application. That raises the bar. Within a year, I expect "our agents share a role" to read in due diligence the way "we use long-lived access keys" reads today: a known weakness with a known fix.
Teams that start separating agent identities now will find the move cheap. Teams that wait until they have fifty agents on one role will find it painful, and probably only after an incident.
If you want help designing agent identities, permission boundaries and runtime guardrails on AWS, that is core to my AI agent development work. If it would help to talk through your current setup, book a kickoff call.
Arslan Zaheer is an independent Principal Solutions Architect for AI, cloud and security. More at arslanzaheer.com.
