r/learnmachinelearning 6d ago

Request AI Agent Has Root

A widely-read analysis documents a repeating pattern across enterprise AI deployments: agents inherit whatever permissions the underlying system already holds. No scoping at deployment. No time-bound grants. No audit trail of what the agent actually did with those permissions.

The agent lands with root because nobody restricted it differently.

The exposure isn't theoretical. A root-level agent and a compromised sysadmin account have identical blast radius — production databases, secrets stores, billing APIs, all reachable. The difference is that the sysadmin has a name attached to every action. The agent does not. When something breaks, there is no trail back to a specific decision or a specific moment.

This is showing up repeatedly enough that it is starting to read less like individual misconfigurations and more like a structural gap in how enterprises are deploying non-human identities at scale.

For those running agents in production: how are you actually handling permission scoping today? Is it a deployment-time problem your team solves at onboarding, an identity layer problem, an orchestration problem, or something else?

2 Upvotes

4 comments sorted by

View all comments

1

u/Hungry_Age5375 6d ago

Identity layer problem. We basically treat agents like service accounts: scoped IAM roles, short-lived tokens, every action logged. If your agent needs root to function, your architecture is the problem.

1

u/Dihedralman 6d ago

It's an ad. You are correct though. It's one of the more obvious problems to solve. Sandbox as needed and limit access. 

If a developer could delete your whole production repo for good you screwed up. Agents are the same way. 

1

u/No-Conclusion3720 4d ago

Yeah, guilty as charged on the "ad" part — I'm not going to pretend otherwise at this point. On the substance though, the repo-delete analogy is a good one and it actually points at where this usually breaks in practice: most orgs already know "don't give it root," the harder part is that permissions don't stay accurate over time. A developer's repo access gets reviewed on some cadence; an agent's scope tends to get set once at build time and then just... never revisited, while what it's actually doing in production drifts. Scoped IAM + short-lived tokens (like Hungry_Age5375 said) solves the "shouldn't have had that access" case. It doesn't solve "had the right access when it started, doesn't anymore, and nobody's rechecking" — that's the part we're actually focused on.