Coding Agent Horror Stories: The 29 Million Secret Problem | Docker
Jul 28, 2026

Summary
This post details a specific attack vector where a poisoned npm package (`nx`) leveraged installed AI coding agents by invoking them with permission-bypass flags (`--dangerously-skip-permissions`, `--yolo`, `--trust-all-tools`) to scan for and exfiltrate secrets from the developer's filesystem. It highlights that AI-assisted code leaks secrets at roughly twice the baseline rate due to agents running with the developer's full filesystem access. The post then explains how Docker Sandboxes mitigate this by providing workspace-scoped filesystem access (preventing access to host home directories and configurations) and proxy-injecting credentials at the network boundary, rendering the agent unable to see or access host secrets.
More from the AI Agent Isolation and Secure Execution trail
- Docker Cloud Sandboxes: Recap from WeAreDevelopers | Docker
- Manufacturing Trust for AI Agents | Docker at WeAreDevelopers
- Docker Brings Sandbox Kit Spec to the CNCF | Docker
- Introducing Cloud Sandboxes: Start on Your Laptop, Finish in the Cloud | Docker
- Docker Sandbox Kit Spec: Authority as Code | Docker