Urgent.News

What's breaking now, across thousands of outlets.

AI

Your AI Agent Has Too Many Permissions: A Practical Guide to Not Getting Burned

Somewhere right now , an AI agent has a standing API key with more access than the intern you'd never hand your prod credentials to. It can read your repos, send emails on your behalf, hit paid APIs, maybe even push code, and it's making those calls based on a model's best guess at what you meant, not a human clicking "confirm." That's not a hypothetical. As agentic workflows have gone from…

Every day, there is an AI agent with a permission set that is more extensive than the credentials you would typically give to a regular intern. This agent can access your repositories, send emails on your behalf, utilize paid APIs, and even push code based on the model's interpretation of your intentions rather than a human confirming the action.

This situation is not a theoretical possibility but rather a reality that many teams are grappling with as agentic workflows have become more commonplace. The security model most people are using hasn't evolved to address this issue: they are copying long-lived keys into environment variables, giving the agent wide-ranging permissions, and hoping that the prompt is accurate enough to keep the agent in check.

While this often works, it is not foolproof. The article aims to present a practical approach to a persistent problem: agents that have too many permissions. The focus is on the specific failure modes that many teams are quietly concerned about, namely over-permissioned agents and how to mitigate the risks associated with them. To understand this problem, it's essential to grasp the distinction between traditional app security and the new paradigm introduced by AI agents.

In traditional software development, the security model is straightforward: you wrote the code, and you know exactly how it interacts with the various APIs and databases. In contrast, AI agents operate on a different principle: they act as decision-makers that interpret prompts and use the assigned tools to execute actions. This shift means that instead of authorizing a fixed set of actions, you're authorizing a system that makes decisions based on the input it receives.

The upshot is that a minor misinterpretation by the agent can lead to significant consequences, such as deleting a repository or incurring a large API bill. This discrepancy lies at the heart of the issue: traditional permissions models are tied to the code, while agents are linked to the judgment of the model, which produces variable outcomes.

The article suggests that the solution is not to eliminate agents altogether but to narrow their blast radius so that any mistakes they make are minor and reversible. Key recommendations include avoiding standing credentials and using short-lived, scoped tokens instead. This approach limits the potential damage that can be caused by a faulty decision.

Moreover, the author advocates for putting a human in the loop for actions that cannot be undone, such as deletions, financial transactions, or emails sent to real customers. This human oversight is crucial because it introduces a checkpoint where mistakes can be caught and rectified before they escalate. Additionally, the article emphasizes the importance of logging every tool call to create a clear audit trail.

This level of visibility is vital for debugging issues and understanding how decisions were made. The article concludes by noting that these changes are not novel but rather an extension of the least-privilege principle that has been a cornerstone of infrastructure security for years. The primary difference is the application of these principles to AI agents, which has been lagging due to the relatively new nature of the technology.

By adopting these practices, teams can ensure that their agents operate within safe boundaries, minimizing the risk of costly errors and maintaining the integrity of their systems.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

The Navier–Stokes Problem Has Survived for a Century. Did AI Find Something New?

Imagine dropping a small stone into a perfectly calm lake. You see the ripples moving outward. It looks simple. Now imagine trying to predict the exact position of every ripple, every tiny swirl…

  • Navier–Stokes equations describe fluid motion factors like velocity, pressure, viscosity.
  • Century-old question: smooth fluid always remains smooth or solution breaks down.
  • AI claimed to solve problem in September 2026, sparking verification debates.

I Asked AI to Review My Code. It Found Bugs I Didn't See.

For a long time, I used AI in software development for one primary purpose: Write the code. Give it a requirement. Get some Python. Ask for a function. Get a function. Describe an API. Get an API.

  • AI reviewed author's code as senior software engineer
  • Identified potential bugs, edge cases, security concerns
  • Influenced author's coding process to anticipate problems

More from Friday 18 September →