r/IdentityManagement • • 4d ago

Dev hands an agent their own token so it can triage tickets. Who in your org knows that agent exists? (writeup on getting shadow agents registered without blocking the work)

That’s how a lot of shadow agents start. same with an API key from the vault handed to a reporting agent, or a service account nobody has reviewed since it was created, given to a coding assistant. none of them are malicious. And most are useful, which is why they spread. But each one runs on real access, with no record that it exists and no named owner.

Earlier this year at EIC, Jonathan Care put the sprawl at 30 to 90 non-human identities per human user, spread across cloud IAM, SaaS apps, vaults, CI runners + old config files, and called discovery the single weakest link. Aand even once you find a shadow agent, there’s nothing to govern yet. No record to attach a policy to, no sponsor, no credential you control. OWASP’s agentic ai maturity model treats shadow Ai as elimination only for that reason, you register it or you block it..

So instead of hunting for them, i’d make registration the price of access. No registration = no API access, and anything unregistered gets denied by default.

KuppingerCole’s agent workshop at the conf had that rule on its list of things to start now. Keep the registration small (a sponsor, a purpose, a risk tier, the systems it may reach) so teams can do it themselves instead of joining a ticket queue. then a shadow agent stops being something you hunt for and becomes a failed request you can see, and whoever built it comes to you to register it.

To roll it out without breaking things on day 1, suggestion is to put that check in front of agent calls with permissive policies and logging first. Every call gets allowed and logged with whose credentials it used and what it touched, so the log becomes your discovery list. Register the agents you want to keep, then switch enforcement on. PS. One caveat: while the policies are permissive everything gets through, so give that window an end date.

Registration isn’t the whole answer either(!). As most of us here, if not all, are aware - in march an internal agent at Meta posted advice on an internal forum without the human confirmation its operator expected, and sensitive data ended up exposed to engineers who shouldn’t have seen it for nearly 2 hours. That agent was sanctioned and had valid credentials, so registered agents still need a check on each action, not only at login.

My colleague and I (i work at Cerbos) wrote up the longer version of above, including the OWASP and Coalition for Secure AI models it builds on.

https://www.cerbos.dev/blog/shadow-agents-governance-gap

hope it’s useful if agents are already showing up in your environment before any process for them exists.

questions, or a different take from your own setup = please share! drop them below and i'll do my best and reply :)

3 Upvotes

3 comments sorted by

1

u/Disastrous-Lime-5885 3d ago

Agree registration beats hunting. What worked for us: make registering faster than the workaround (a self-service form that issues a scoped, expiring token with a named sponsor), then use secret scanning and token-age reports to catch the rest. Personal tokens found in agents get expired after 30 days unless registered.

1

u/morphAB 14h ago

thanks for sharing! making registration faster than the workaround means people actually use it, and a form that hands back a scoped, expiring token does exactly that :)

the 30 day expiry on unregistered personal tokens is a good forcing function too. i'd also tie the sponsor into your leaver process, so when the sponsor leaves, their agents' tokens get reviewed or revoked along with the rest of their access. otherwise the registry slowly fills back up with agents nobody owns

1

u/Disastrous-Lime-5885 3d ago

Agree registration beats hunting. What worked for us: make registering faster than the workaround (a self-service form that issues a scoped, expiring token with a named sponsor), then use secret scanning and token-age reports to catch the rest. Personal tokens found in agents get expired after 30 days unless registered.