After a Cursor agent deleted production in 9 seconds: building an agent permission gateway

Cold-Conclusion-6511 · reddit · 2026-10-25

Prompted by the April incident where a Cursor agent found a root token on disk and deleted a production database volume and backups in 9 seconds, the author designs a gateway between agents and their tools (MCP servers, APIs, other agents) that scopes what agents may call, issues short-lived narrow credentials, asks humans before irreversible actions, and keeps tamper-proof audit logs. Key design tensions discussed:

The author admits the proxy wouldn't have stopped that deletion and positions it as damage limitation, not a full fix.

Related event: After Cursor's 9-Second Database Wipe, Developers Propose Authorization Layer for AI Agent Tool Calls(2 posts)→

Original post →

More from coding & agent

coding & agent channel →