Dzone iconDzoneSep 4, 2026 ~1 min source read

Designing Safe Agent Permissions: Why Least Privilege Must Exist Outside the Model

That's how long it took an AI coding agent to delete a production database and its backups at PocketOS, a car-rental software vendor, in April 2026. By founder Jer Crane's account, an AI coding agent hit a credential mismatch during a routine staging task, searched the codebase, and found an API token in an unrelated file.

Designing Safe Agent Permissions: Why Least Privilege Must Exist Outside the Model

Share this story

Send the public story page.

Useful takeaways from this story.

That's how long it took an AI coding agent to delete a production database and its backups at PocketOS, a car-rental software vendor, in April 2026.

By founder Jer Crane's account, an AI coding agent hit a credential mismatch during a routine staging task, searched the codebase, and found an API token in an unrelated file.

That token carried blanket permissions across the Railway infrastructure API.

Building the complete brief

The page is ready to read now. The fuller skim-friendly version will appear here automatically.

The useful part

That's how long it took an AI coding agent to delete a production database and its backups at PocketOS, a car-rental software vendor, in April 2026. By founder Jer Crane's account, an AI coding agent hit a credential mismatch during a routine staging task, searched the codebase, and found an API token in an unrelated file. That token carried blanket permissions across the Railway infrastructure API.

How it works

  • The problem isn't that the agent could delete a production database.
  • The agent pursued a goal, hit an obstacle, and used the authority it had been handed to clear it.
  • That's the distinction this entire discipline turns on, and it's why the fix has to live in the architecture, not in a system prompt telling the agent to be careful.

Details worth keeping

No credentials were stolen, no prompt injection ran, no malware executed.

Keep reading in the app

Open the app view to save this story, compare related coverage, and continue from the same source.

Open in app