{"id":565306,"date":"2026-05-04T08:28:20","date_gmt":"2026-05-04T08:28:20","guid":{"rendered":"https:\/\/www.newsbeep.com\/uk\/565306\/"},"modified":"2026-05-04T08:28:20","modified_gmt":"2026-05-04T08:28:20","slug":"cursor-ai-coding-agent-deletes-entire-production-database-and-backups-in-shocking-nine-second-autonomous-failure-incident","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/uk\/565306\/","title":{"rendered":"Cursor AI coding agent deletes entire production database and backups in shocking nine-second autonomous failure incident"},"content":{"rendered":"<p>Cursor AI coding agent deletes production database and backups in nine secondsCredential mismatch triggered an autonomous, destructive decision inside the Cursor systemRailway API allowed destructive actions without confirmation safeguards<\/p>\n<p id=\"elk-6e73c24b-1133-4598-9983-ac4130f7d51d\">A software company founder watched helplessly as an AI coding agent deleted his entire production database and all associated backups in just nine seconds.<\/p>\n<p>Jer Crane, who runs the automotive SaaS platform PocketOS, said the disaster unfolded when a Cursor agent powered by Anthropic&#8217;s Claude Opus 4.6 encountered a credential mismatch.<\/p>\n<p><a id=\"elk-seasonal\" class=\"paywall\" aria-hidden=\"true\"\/><\/p>\n<p id=\"elk-6e73c24b-1133-4598-9983-ac4130f7d51d-2\">The agent decided on its own to fix the problem by deleting a Railway volume where the application data lived. &#8220;It took 9 seconds,&#8221; Crane wrote in a social media post detailing the incident.<\/p>\n<p>Article continues below <\/p>\n<p>            You may like<\/p>\n<p>    <a id=\"elk-c07b6020-c141-490a-a450-155678e50a90\" class=\"paywall\" aria-hidden=\"true\"\/>Rogue AI agent bypassed multiple safeguards<\/p>\n<p id=\"elk-cd2c02fb-d1e2-4575-bef2-e58e65bd58c0\">The Cursor agent searched for an API token to execute the deletion and found one sitting in an unrelated file.<\/p>\n<p>That token had been created for adding and removing custom domains through the Railway CLI, but its permissions were not limited to those specific actions.<\/p>\n<p>Railway&#8217;s API allowed destructive actions without any confirmation check, and the platform stored volume-level backups on the same volume as the source data.<\/p>\n<p>Wiping a volume also deleted all backups associated with it, leaving Crane with no immediate recovery option.<\/p>\n<p class=\"newsletter-form__strapline\">Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!<\/p>\n<p>When asked why it proceeded with the deletion, the agent admitted it had guessed instead of verifying and ran a destructive action without being asked.<\/p>\n<p>Crane placed much of the blame on Railway&#8217;s architecture rather than solely on the AI agent.<\/p>\n<p>The cloud provider&#8217;s API lacks confirmation prompts for destructive actions, stores backups on the same volume as production data, and allows CLI tokens to have blanket permissions across different environments.<\/p>\n<p>            What to read next<\/p>\n<p>Railway is also actively promoting the use of AI coding agents to its customers, creating more opportunities for similar failures.<\/p>\n<p>Crane noted that proper <a data-analytics-id=\"inline-link\" href=\"https:\/\/www.techradar.com\/best\/best-cloud-backup\" data-url=\"https:\/\/www.techradar.com\/best\/best-cloud-backup\" data-hl-processed=\"none\" data-mrf-recirculation=\"inline-link\" data-before-rewrite-localise=\"https:\/\/www.techradar.com\/best\/best-cloud-backup\" rel=\"nofollow noopener\" target=\"_blank\">cloud backup<\/a> systems should store copies in separate locations, not on the same volume where the original data lives.<\/p>\n<p>A reliable backup strategy requires isolation from the source to survive a deletion event like this one.<\/p>\n<p><a id=\"elk-36f6169e-1867-4bf1-b93d-27a9af60d05a\" class=\"paywall\" aria-hidden=\"true\"\/>Recovery and lessons learned<\/p>\n<p id=\"elk-e0ce192d-5522-406b-b5f2-386ead47e24d\">Railway CEO Jake Cooper stepped in and helped restore Crane&#8217;s data within an hour.<\/p>\n<p>The company patched the vulnerable endpoint to perform delayed deletions and added further safeguards to its API.<\/p>\n<p>Crane estimates he has spent hours helping customers reconstruct their bookings from Stripe payment histories, calendar integrations, and email confirmations.<\/p>\n<p>He is calling for stricter confirmation prompts, scopable API tokens, proper <a data-analytics-id=\"inline-link\" href=\"https:\/\/www.techradar.com\/best\/best-backup-software\" data-url=\"https:\/\/www.techradar.com\/best\/best-backup-software\" data-hl-processed=\"none\" data-mrf-recirculation=\"inline-link\" data-before-rewrite-localise=\"https:\/\/www.techradar.com\/best\/best-backup-software\" rel=\"nofollow noopener\" target=\"_blank\">backup<\/a> isolation, simple recovery procedures, and proper guardrails around AI agents.<\/p>\n<p><a data-analytics-id=\"inline-link\" href=\"https:\/\/www.techradar.com\/best\/best-ai-tools\" data-url=\"https:\/\/www.techradar.com\/best\/best-ai-tools\" data-hl-processed=\"none\" data-mrf-recirculation=\"inline-link\" data-before-rewrite-localise=\"https:\/\/www.techradar.com\/best\/best-ai-tools\" rel=\"nofollow noopener\" target=\"_blank\">AI tools<\/a> like Cursor and Claude are powerful, but they are only as safe as the infrastructure they connect to.<\/p>\n<p>A system that allows a nine-second deletion of both production data and its backups is not ready for AI agents that can act without human approval.<\/p>\n<p>Crane&#8217;s data was eventually recovered, but the incident exposed how easily an AI agent can destroy data when the underlying platform lacks basic safety features.<\/p>\n<p>Via <a data-analytics-id=\"inline-link\" href=\"https:\/\/www.tomshardware.com\/tech-industry\/artificial-intelligence\/claude-powered-ai-coding-agent-deletes-entire-company-database-in-9-seconds-backups-zapped-after-cursor-tool-powered-by-anthropics-claude-goes-rogue\" target=\"_blank\" rel=\"nofollow noopener\" data-url=\"https:\/\/www.tomshardware.com\/tech-industry\/artificial-intelligence\/claude-powered-ai-coding-agent-deletes-entire-company-database-in-9-seconds-backups-zapped-after-cursor-tool-powered-by-anthropics-claude-goes-rogue\" referrerpolicy=\"no-referrer-when-downgrade\" data-hl-processed=\"none\" data-mrf-recirculation=\"inline-link\">Tom&#8217;s Hardware<\/a><\/p>\n<p class=\"vanilla-image-block\" style=\"padding-top:31.51%;\">\n<p><img decoding=\"async\" src=\"https:\/\/www.newsbeep.com\/uk\/wp-content\/uploads\/2026\/04\/diM9tpwF2Lz85R8q85CT78.jpg\" alt=\"Google logo on a black background next to text reading 'Click to follow TechRadar'\"   loading=\"lazy\" data-new-v2-image=\"true\" data-original-mos=\"https:\/\/www.newsbeep.com\/uk\/wp-content\/uploads\/2026\/04\/diM9tpwF2Lz85R8q85CT78.jpg\" data-pin-media=\"https:\/\/www.newsbeep.com\/uk\/wp-content\/uploads\/2026\/04\/diM9tpwF2Lz85R8q85CT78.jpg\" class=\"rounded-[var(--image--border-radius,0)] pull-rightinline\"\/>\n<\/p>\n<p id=\"elk-6e2ac97f-f15f-4964-a682-e49dd6f4c549\"><a data-analytics-id=\"inline-link\" href=\"https:\/\/news.google.com\/publications\/CAAqKAgKIiJDQklTRXdnTWFnOEtEWFJsWTJoeVlXUmhjaTVqYjIwb0FBUAE?hl=en-GB&amp;gl=GB&amp;ceid=GB%3Aen\" data-url=\"https:\/\/news.google.com\/publications\/CAAqKAgKIiJDQklTRXdnTWFnOEtEWFJsWTJoeVlXUmhjaTVqYjIwb0FBUAE?hl=en-GB&amp;gl=GB&amp;ceid=GB%3Aen\" target=\"_blank\" referrerpolicy=\"no-referrer-when-downgrade\" data-hl-processed=\"none\" data-mrf-recirculation=\"inline-link\" rel=\"nofollow noopener\">Follow TechRadar on Google News<\/a> and<a data-analytics-id=\"inline-link\" href=\"https:\/\/www.google.com\/preferences\/source?q=techradar.com\" data-url=\"https:\/\/www.google.com\/preferences\/source?q=techradar.com\" target=\"_blank\" referrerpolicy=\"no-referrer-when-downgrade\" data-hl-processed=\"none\" data-mrf-recirculation=\"inline-link\" rel=\"nofollow noopener\"> add us as a preferred source<\/a> to get our expert news, reviews, and opinion in your feeds. <\/p>\n","protected":false},"excerpt":{"rendered":"Cursor AI coding agent deletes production database and backups in nine secondsCredential mismatch triggered an autonomous, destructive decision&hellip;\n","protected":false},"author":2,"featured_media":565307,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[554,733,4308,86,56,54,55],"class_list":["post-565306","post","type-post","status-publish","format-standard","has-post-thumbnail","category-artificial-intelligence","tag-ai","tag-artificial-intelligence","tag-artificialintelligence","tag-technology","tag-uk","tag-united-kingdom","tag-unitedkingdom"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/565306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/comments?post=565306"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/565306\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media\/565307"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media?parent=565306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/categories?post=565306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/tags?post=565306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}