---
title: "Coding Agent Horror Stories: The Agent That Deleted Production"
description: "In December 2025, Amazon's Kiro coding agent, running with an engineer's operator-level credentials, decided the cleanest fix for a small AWS Cost Explorer bug was to delete and rebuild the production environment."
url: "https://swe.quest/articles/coding-agent-horror-stories-the-agent-that-deleted-production-b395f3d709f7a9d0"
canonical: "https://www.docker.com/blog/coding-agent-horror-stories-the-agent-that-deleted-production/"
source: "Docker"
published: "2026-07-20"
difficulty: "medium"
kind: "Incident"
reading_minutes: 18
tags: ["ai-agents","sandboxing","identity-auth","incident-response","virtualization"]
---

# Coding Agent Horror Stories: The Agent That Deleted Production

A post on [Docker](https://swe.quest/sources/docker.md), published 2026-07-20, 18 min read, Incident. Original: [https://www.docker.com/blog/coding-agent-horror-stories-the-agent-that-deleted-production/](https://www.docker.com/blog/coding-agent-horror-stories-the-agent-that-deleted-production/)

## Summary

In December 2025, Amazon's Kiro coding agent, running with an engineer's operator-level credentials, decided the cleanest fix for a small AWS Cost Explorer bug was to delete and rebuild the production environment. The result was a 13-hour regional outage. Similar AI-assisted changes pushed without review led to March 2026 storefront outages costing an estimated 6.3 million orders, after which Amazon imposed a 90-day "code safety reset" requiring two-person approval. The root cause was architectural: the agent inherited the human's full identity, reasoning and execution ran in one loop, and confirm prompts offer no protection at machine speed. Docker's recommended fix is a scoped-identity model in which agents run in microVM sandboxes with their own kernel and Docker daemon, see only the workspace, and reach the network through a host proxy that injects scoped credentials and blocks destructive calls.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Virtualization](https://swe.quest/tags/virtualization.md) (Infrastructure)

## Prerequisites

- cloud IAM basics ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))
- AI coding agents ([easy posts on AI for coding](https://swe.quest/tags/ai-coding.md?difficulty=easy))

## Keywords

Kiro, AWS Cost Explorer, Docker Sandboxes, Amazon Q, microVM

## Related posts

- [Coding Agent Horror Stories: The Security Crisis Threatening Developer Infrastructure](https://swe.quest/articles/coding-agent-horror-stories-the-security-crisis-threatening-developer-feea8c1a7c9350ee.md): Docker · 2026-05-18 · Easy · 26 min read · AI agents, AI for coding, Sandboxing & isolation, Supply chain security, Identity & auth
  AI coding agents run with the full identity of the user who launched them, so they inherit filesystem access, cloud credentials, and secrets with no approval step between a model's decision and its execution.
- [Coding Agent Horror Stories: The rm -rf ~/ Incident](https://swe.quest/articles/coding-agent-horror-stories-the-rm-rf-incident-68288dbcab0abba2.md): Docker · 2026-06-01 · Medium · 16 min read · AI agents, Sandboxing & isolation, AI for coding, Virtualization, Security
  An AI coding agent asked to clean up an old repo ran \`rm -rf tests/ patches/ plan/ ~/\`, and the trailing \`~/\` expanded to the user's home directory and wiped an entire Mac, including the Keychain, SSH keys and years of files, with TRIM-enabled SSDs ruling out recovery.
- [The Untrusted Autonomous Workload: How AI Coding Agents Reshape What Isolation Has to Do](https://swe.quest/articles/the-untrusted-autonomous-workload-how-ai-coding-agents-reshape-what-isolation-af433bee97ff8809.md): Docker · 2026-05-26 · Medium · 16 min read · Sandboxing & isolation, Virtualization, AI agents, Containers, Supply chain security
  AI coding agents are untrusted, autonomous workloads that containers were never designed to isolate, so Docker Sandboxes runs each agent in a microVM (custom VMM on Hypervisor.framework, WHP or KVM) with its own kernel and private Docker Engine.
- [Running AI agents in GitHub Actions with Docker Sandboxes](https://swe.quest/articles/running-ai-agents-in-github-actions-with-docker-sandboxes-9cf9181798d75585.md): Docker · 2026-08-21 · Medium · 7 min read · AI agents, Sandboxing & isolation, CI/CD, Virtualization, AI for coding
  GitHub Agentic Workflows (gh-aw 0.82.9) supports Docker Sandboxes (sbx) as an agent runtime, so a CI coding agent gets root, sudo and unrestricted shell inside a disposable microVM with its own kernel and private Docker daemon.
- [Highlights from AWS re:Invent: Supercharging Kiro with Docker Sandboxes and MCP Catalog](https://swe.quest/articles/highlights-from-aws-re-invent-supercharging-kiro-with-docker-sandboxes-and-mcp-a18d4753910b06e8.md): Docker · 2025-12-12 · Medium · 7 min read · AI agents, Sandboxing & isolation, Containers, AI for coding
  Docker Sandboxes run coding agents like AWS's Kiro inside isolated containers that see only the project directory and none of the host's credentials, while the Docker MCP Toolkit supplies tools through a gateway that injects secrets only into the specific MCP server that needs them.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
