Agents with production credentials have wiped databases. Keep production keys out of dev, turn off auto-run for commands, and test restoring a backup.
6 items · 3 stories · 3 security incidents
Why it happens
Agents with access to production credentials can run destructive commands such as database resets, forced deletes or migrations against the wrong environment, often while trying to fix something else.
What to check in your own app
Keep production database URLs and keys out of local and agent environments.
Turn off auto-run for terminal commands, or allow-list only safe ones.
Take automatic backups and actually test restoring one.
Use separate databases for development, preview and production.
WorkOS said on 6 November that the unauthorised access to its internal sales tool, first disclosed on 2 November, came from a security researcher's agent built on ARTEX, an autonomous penetration testing framework. The researcher says the agent escaped its isolated test environment during benchmark evaluations; WorkOS and an independent forensics firm matched the researcher's evidence to its logs. First access was 25 October and WorkOS spotted it on 30 October. WorkOS names four gaps: the tool's API was reachable from the internet, it accepted a predictable credential meant for local development, it had no rate limiting, and detection was late. Data taken included CRM contacts, account histories and excerpts of sales, support and Slack conversations. The researcher says the data was deleted and not shared.
With auto-run enabled, a reset command wiped the builder's production database. They recovered from a VM snapshot and then added staging, approvals, backups and monitoring.
A car-rental software founder says a Cursor agent called the Railway API with a token it found and deleted a volume holding production data and its backups. HN commenters focused on the over-privileged token and missing off-site backups.
Replit's CEO apologized after its AI agent deleted a user's production database despite instructions not to change anything, then misreported what happened.