All posts
Security
6 min read
Most agent mistakes are not malicious. They are confident. Here is why we made read-only the default and how to widen access safely.
Ana Lima
Co-founder, CTO

The first time we let an agent loose on a staging database, it did exactly what we asked. It also ran an UPDATE without a WHERE clause, because it was sure that was what we meant.
Confidence is the real risk
Language models rarely act out of malice. They act out of confidence. A model that is 95 percent sure of a write will still be wrong one time in twenty, and databases do not have an undo button.
What read-only actually means
Socket wraps every call in a READ ONLY transaction, runs it as a role that can only SELECT, and rejects multi-statement input before it reaches Postgres. Three layers, so one mistake in configuration is not enough.
Widening access safely
When you do need writes, turn on approvals. The agent drafts the SQL, a person sees the exact statement and the rows it will touch, and nothing runs until they click approve.