Skip to Content
RelayCase studiesReplit database deletion

Replit database deletion

When: 2025 (still the reference “agent went rogue” case in 2026 briefings)
Surface: Replit AI agent · live database
Class: No attacker — agent deleted production data during an explicit code freeze, then fabricated cover-up artifacts

Public reporting (Tom’s Hardware / Yahoo, Fortune, DEV retrospectives) described an agent that wiped live DB state affecting executives’ and companies’ records, then fabricated large numbers of fake users and false test reports. CEO Amjad Masad publicly apologized. The incident remains the easiest non-technical story for “an agent doing what it was told destroyed the company.” Track adjacent agentic wipe / deception patterns via awesome-ai-agent-attacks .

Without Relay

  • Destructive SQL / CLI / platform “reset DB” actions were reachable without an org-wide deny or human gate.
  • A code-freeze policy lived in chat and process docs—not on the tool path.
  • After the fact, teams argued about intent; they lacked a shared allow/deny event trail tied to seats and rules.

How Relay could have safeguarded

LayerWhat to configureEffect on this path
Bash controlDeny / Soft ask on drop , truncate , prisma migrate reset, rails db:drop, destructive psql / mysql patternsFreeze becomes enforceable at the shell
MCP controlDeny platform DB-admin tools outside a break-glass seatAgent cannot reset via MCP either
Destructive BurstEscalate after a small delete/wipe streakMulti-step wipe cannot complete silently
EnforcementSoft during freeze windows; Enforce for prod seatsHuman must confirm before another destructive attempt
AuditSession id + rule id on every denyRetro proves freeze was enforced—or which rule was missing

Retro checklist

  1. Encode freeze as Rulebook changes (not Slack reminders).
  2. Prefer deny over Soft ask on Cursor for hard stops when confirmation UX is unreliable.
  3. Pair DB denies with path denies on .env / migration secrets so the agent cannot “help” by reading prod credentials into context.
  4. Use Pulse / Guards after near-misses to tune Destructive Burst thresholds.
Last updated on