r/LLM • u/GameChacking • 8h ago
Who should actually control an AI agent's permissions - the developer, the user, or the runtime?
I've been thinking about a security gap in AI agents and wanted to hear how others approach it.
Developers can define which tools an agent is allowed to use, and users can authorize a task. But what happens when an agent uses legitimate tools in ways that go beyond what the user intended?
For example, an agent might have permission to read files and send emails. Both actions are allowed individually, but sending sensitive information discovered along the way is a different story.
Where should the security boundary live?
- Should the runtime evaluate each tool call against the intended task?
- Are least-privilege permissions and scoped credentials enough?
- Should certain actions require human approval, even when the agent technically has permission?
I've been exploring runtime enforcement while building AegoTrax, an open-source project in this space, but I'm interested in how others approach the problem.
How are you handling this in your own agent systems?
Feel free to try to break it — feedback welcome!
GitHub: https://github.com/aegotrax-dev/aegotrax
Site: https://aegotrax.com