Best AI Utility logo
Best AI Utility
Torniamo al blog
23 novembre 2026
6 min di lettura
Opinion

Your Coding Agent Committed a Secret. That Is a Permissions Problem, Not a Model Problem.

A credential in a public repo exposed months of customer prompts. No model was tricked. A tool was given write access and used it.

Together AI disclosed this week that an AI coding agent working on a public GitHub repository committed a credential. The credential opened a private repository and exposed months of customer prompts. The framing in some coverage was that the agent had been tricked or had gone rogue. Neither is supported by what was described. A tool with write access wrote something it should not have written. That is a permissions design issue, and permissions design issues have boring, effective fixes.

I have watched this play out in small teams. Week one, an agent is given a token so it can stop asking for approval on every commit. Week two, the token turns out to be the same one a human uses for deploys. Week three, someone notices the scope is far wider than the task. The usual response is to write a longer instruction telling the agent not to touch secrets. That is not a security boundary. It is a preference expressed in prose, and it holds exactly until the agent misreads the task or a prompt in a file says something convincing.

The better response is structural. Give the agent a token scoped to the one repository and one branch it needs, with an expiry measured in hours rather than quarters. This week AWS shipped a scoped-credentials API aimed at exactly this — narrowing an existing temporary session so each sub-agent holds only what its task requires. That is the shape of the answer. Pair it with a pre-commit secret scan and a rule that agent commits are reviewed by a person before they reach a shared branch. None of that depends on the model being careful.

There is a broader lesson about how we talk about agent risk. The dramatic version is that a clever model outwits its guardrails. The common version is much more mundane: a tool was granted more access than the job required, and eventually something went wrong. Prompt rules are useful for behaviour. They are not access control. If your agent can commit, ask what it can commit to, for how long, and who reviews it — before the answer arrives in a disclosure notice.

Put one of these tools on the leaderboard

Every rank on Best AI Utility is paid and time-stamped — outbid the current holder with one crypto payment and the rank is yours until someone outbids you.

Articoli correlati

Esplora di più