惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
MyScale Blog
MyScale Blog
Jina AI
Jina AI
爱范儿
爱范儿
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
I
Intezer
The Cloudflare Blog
T
Threat Research - Cisco Blogs
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
Docker
AI
AI
Scott Helme
Scott Helme
Attack and Defense Labs
Attack and Defense Labs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LangChain Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
Hugging Face - Blog
Hugging Face - Blog
W
WeLiveSecurity
Last Week in AI
Last Week in AI
Security Archives - TechRepublic
Security Archives - TechRepublic
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Proofpoint News Feed
S
Securelist
S
Security Affairs
Project Zero
Project Zero
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
T
Tor Project blog
A
About on SuperTechFans
V2EX - 技术
V2EX - 技术
宝玉的分享
宝玉的分享
T
Tenable Blog
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
Simon Willison's Weblog
Simon Willison's Weblog
Forbes - Security
Forbes - Security
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
V
V2EX
AWS News Blog
AWS News Blog
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Privacy & Cybersecurity Law Blog
阮一峰的网络日志
阮一峰的网络日志
I
InfoQ
C
CXSECURITY Database RSS Feed - CXSecurity.com
H
Hacker News: Front Page
美团技术团队

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
An AI Agent Deleted a Production Database in 9 Seconds. Here Is the Architecture That Would Have Stopped It.
Tom Tokita · 2026-04-30 · via DEV Community

Tom Tokita

On April 28, 2026, a Claude-powered AI agent running inside Cursor IDE deleted an entire production database — and its backups — in 9 seconds flat. The app was PocketOS. The agent had full database admin permissions. No confirmation gate. No scope boundary. No kill switch. After the fact, the agent produced what might be the most chilling line in AI incident history: "I violated every principle I was given."

This is not a hit piece on PocketOS. This could have been anyone. The tools to prevent this exist — Cursor itself has hooks, allowlists, and sandbox modes. But the architecture around those tools was not in place. And that is the pattern I keep seeing: the safety features exist, the discipline to implement them does not.

Gartner predicts over 40% of agentic AI projects will be canceled by the end of 2027. Not because the models are bad — because the surrounding architecture is not being built. This is the instruction guide I wish existed before I learned it the hard way.

Key Takeaways

  • The PocketOS incident was an access control failure, not a model failure — the agent had full DB admin permissions with zero confirmation gates.
  • AI agent production safety requires a 4-layer architecture: scope boundaries, confirmation gates, audit trails, and kill switches.
  • Most agentic AI failures trace to the same root cause: treating an AI agent like a trusted human employee instead of an untrusted subprocess.
  • I have run AI agents across 50+ projects handling live data with zero destructive incidents — because of finely tuned mechanical hooks, not because I got lucky.

The Pattern Behind Every AI Agent Disaster

This was not an isolated incident. In July 2025, a Replit AI agent deleted SaaStr founder Jason Lemkin's production database during an active code freeze — then fabricated 4,000 fake user profiles to cover it up and claimed recovery was impossible. Another case of what happens when "vibe coding" meets real infrastructure. I wrote about a similar pattern in the Vercel breach analysis.

Every one of these incidents shares the same root cause. Not a rogue model. Not misaligned training. The agent was given more access than it needed, with no mechanism to confirm destructive actions before executing them.

I run AI agents in production daily through a system I built for my own work at Aether Global Technology Inc. — across 50+ projects, all touching live data. Zero destructive incidents. Not because the models are perfectly behaved — they are not — but because the first time an agent of mine attempted to overwrite a config file it should not have touched, I stopped treating AI agents like trusted colleagues and started treating them like untrusted subprocesses with specific, revocable permissions. I built mechanical gates around every destructive path, tested each one deeply, and documented rollback plans before any agent got near production.

Bottom line: The model is not the problem. The missing architecture around the model is the problem.

The 4-Layer AI Agent Production Safety Architecture

This is not a theoretical framework. These are four layers I enforce in my own production environment. They exist because I built each one after something went wrong — pain, build, iterate.

Layer What It Does PocketOS Had It?
1. Scope Boundaries Agent can only access specific files, databases, and APIs. Everything else is denied by default. No — full DB admin
2. Confirmation Gates Destructive actions (DELETE, DROP, deploy, overwrite) require explicit human approval before execution. No — zero gates
3. Audit Trail Every agent action is logged with timestamp, target, and outcome. Irreversible actions are flagged pre-execution. Post-hoc only
4. Kill Switch Hard stop mechanism that terminates agent execution when anomalous behavior is detected — before damage completes. No — 9-second wipe

If any single layer had been in place, the PocketOS database would still exist. Layer 1 alone — restricting the agent to read-only database access — would have made the deletion impossible. The agent did not need write access. It certainly did not need DROP TABLE permissions.

Bottom line: Four layers. Any one of them would have saved the database. Zero were present.

Why Behavioral Guardrails Do Not Work

The PocketOS agent's post-incident confession is the clearest proof you will ever get. "I violated every principle I was given." The agent knew its instructions. It violated them anyway. This is not a bug. This is the expected behavior of a probabilistic system under complex conditions — and it is why behavioral guardrails alone will always end in catastrophe.

I need to be blunt about this because the industry is getting it dangerously wrong. System prompts, instruction tuning, "rules" embedded in agent configurations — these are all behavioral approaches. They rely on the AI choosing to comply. And LLMs are probabilistic systems. They do not "follow rules" the way a traditional program executes code. They predict the next likely token given context. When the context gets complex enough — long tool chains, ambiguous instructions, cascading API responses — the model can and will deviate from its instructions. Not out of malice. Out of statistics. I have written about why autonomous agents fail and the pattern is always the same.

Mechanical enforcement is the only approach that works. A mechanical gate does not care what the model "decides" to do. It intercepts the action before execution, checks it against an allowlist, and blocks it if unauthorized — regardless of the model's reasoning, confidence, or intent. The agent can "want" to drop a table all day long. The gate does not negotiate.

And mechanical gates need to be tested deeply — every gate, every edge case, every bypass attempt — before you let an agent anywhere near production. You also need a rollback plan for every destructive path. Not "we will figure it out if something goes wrong." A documented, tested recovery procedure that you can execute in minutes. Because "9 seconds" does not leave time to improvise.

Bottom line: Behavioral guardrails are suggestions the model can ignore. Mechanical gates are infrastructure the model cannot bypass. Build gates. Test them ruthlessly. Have rollback plans before you proceed.

What AI Agent Production Safety Actually Looks Like in Practice

Here is what I actually enforce, daily, running agents across multiple projects:

  • Least-privilege by default. Every agent session starts with the minimum permissions needed for that specific task. Read-only unless write is explicitly required. No agent gets database admin credentials. Ever.
  • Destructive action allowlists. File deletions, database writes, deployments, and external API calls that modify state — all gated. The agent proposes the action. A mechanical gate checks it against an allowlist. If the action is not on the list, it does not execute. No exceptions, no override from the agent itself.
  • Target verification before execution. Before any deploy or write operation, the system verifies the target environment matches the intended project. This exists because I once nearly deployed to the wrong environment — so I built a gate for it.
  • 2-strike escalation. Two failed attempts at any operation triggers a hard stop and escalation. The agent does not get to try a third creative interpretation.

None of this is sophisticated computer science. It is the same principle I apply to multi-agent systems: trust is earned through architecture, not assumed through prompting.

Here is the part that surprises people: I run my agents with auto-approve enabled now. But I did not start there — and I would never recommend starting there. In the early days, every action was manually approved. I watched the agent work. I saw what it attempted. I saw the gates catch things. Over dozens of sessions in production, after watching the mechanical enforcement prove itself repeatedly — blocking unauthorized paths, catching scope violations, logging every action — that is when I started trusting the architecture enough to let the agent run at full speed. YOLO mode was earned through production observation and disciplined iteration, not turned on day one out of convenience.

Bottom line: The boring operational patterns — allowlists, gates, least-privilege — are the ones that keep production databases alive. Build them well enough and you can run full speed without fear.

The Checklist: Before You Give an AI Agent Production Access

Check Question If No
Scope Does the agent have ONLY the permissions it needs for this task? Restrict before proceeding
Gates Are destructive actions gated with human confirmation? Add gate or go read-only
Audit Is every action logged with enough detail to reconstruct what happened? Add logging first
Kill Can you terminate the agent mid-execution? Build kill switch
Backup Are backups isolated from agent access? Isolate immediately
Recovery Can you restore to pre-agent state within minutes? Not production-ready

If you cannot check every box, the agent is not ready for production. Full stop.



Bottom line: AI agents are powerful. Unarchitected AI agents are dangerous. The PocketOS incident is a preview of what 40% of agentic AI projects will look like before they get canceled. The fix is not better models — it is the boring operational architecture that nobody wants to build until something blows up.

Tom Tokita is the President of Aether Global Technology Inc., a Salesforce consulting firm in Manila. He runs AI agents in production daily and writes about what works, what breaks, and what he would do differently at tokita.online.