An AI code-review bot produced a lengthy security report after a small PostgreSQL version change, complete with a nonexistent company, invented Kubernetes resources, and a CVE that Docker says had never been issued. The incident is a useful reminder for teams adopting coding agents: restricting what an agent can execute does not ensure that its recommendations are accurate.
Docker’s account of the incident describes BuaJi, a self-hosted bot that runs in CI when code is pushed. The bot was configured to read and comment on changes, rather than apply infrastructure changes or push commits. That boundary prevented the generated recommendations from being executed, but it did not stop the report from sounding authoritative.
What changed in the review
The reviewed change updated POSTGRES_VERSION from 16.11 to 16.13. BuaJi responded with approximately 1,500 words rejecting the change and presenting what appeared to be a serious security incident.
According to Docker, the report falsely claimed that an architectural takeover had occurred. It also invented a third-party company and Kubernetes resources, cited a CVE that had never been issued, and recommended actions such as revoking IAM access and isolating supposedly infected database nodes.
The source does not report that those actions were taken, that a cluster was damaged, or that an actual compromise occurred. The PostgreSQL version change itself is not identified as vulnerable or malicious. The incident instead demonstrates the operational risk of treating confident, technically formatted model output as verified security evidence.
BuaJi could read the repository and provide comments, but it could not run terraform apply, run kubectl apply, or push commits. It also had no cluster access. Docker uses the example to draw a distinction between controlling what an agent can do and controlling what an agent can say.
Why containment still matters
Docker’s Sandbox isolation documentation describes sandboxes as lightweight microVMs with separate Linux kernels. They are designed to prevent the sandboxed agent from accessing host processes, files, and resources outside defined boundaries. Each sandbox also has its own Docker Engine, with no path from the sandboxed agent to the host Docker daemon.
Network traffic is isolated as well. Outbound TCP traffic is routed through a host proxy governed by network policy, while outbound UDP is disabled by default and ICMP is blocked. These controls can reduce the impact of an agent that attempts to access services or perform actions beyond its assigned task.
However, isolation is not a fact-checking mechanism. Docker explicitly recommends treating agent output as untrusted, independently checking CVE identifiers, and requiring human review before executing agent-written remediation.
Repository boundaries are important
The available workspace mode determines how much control an agent has over repository files. A direct workspace mount is read-write. That can allow changes to reach the host repository, and files such as CI configuration, Git hooks, IDE tasks, and build scripts may create additional execution paths if they are modified or implicitly used.
Docker also documents clone mode. In that configuration, the host repository is mounted read-only and the agent works with a private clone inside the VM. Changes made in that clone do not automatically reach the host repository.
Clone mode should not be treated as a secrecy boundary for the repository. The agent can still read files under the mounted Git root, including untracked files and potentially readable files such as .env. Docker recommends keeping secrets outside the working directory or using credential isolation.
Docker’s credential-isolation model keeps raw credential values outside the VM and uses a host-side proxy to inject authentication into outbound HTTP requests. SSH agent forwarding is a separate access path when enabled, so administrators need to account for the integrations they activate rather than assuming that all credentials are automatically inaccessible.
Connecting a sandbox to local services
The described BuaJi design keeps Ollama on the CI runner and gives the reviewer a controlled connection to the model service. Docker’s development documentation says a sandbox can reach a service running on the host through host.docker.internal when the relevant localhost port is allowed by network policy. The documentation gives sbx policy allow network localhost:11434 as an example for an Ollama-style service.
The exact CI implementation, runner behavior, mounts, credential omissions, and complete network configuration for BuaJi remain undocumented in the supplied material. Teams should therefore treat the example as a design pattern to test, not as a complete, universally production-ready configuration.
Reusable environments have availability limits
Docker documents kits as a way to package an agent environment, tools, instructions, network access, credentials, and startup behavior into a reusable image. Kits are labeled Early Access, and the documentation states that v3 kits require sbx version 0.45 or later.
Local Sandbox support also depends on the host environment. Docker’s installation documentation covers macOS Sonoma 14 or later on Apple silicon, Windows 11 on 64-bit Intel or AMD systems with Windows Hypervisor Platform, and Ubuntu 24.04 or later with the relevant virtualization support. Docker says local Linux sandboxes require the documented KVM and virtualization capabilities and that Ubuntu derivatives such as Linux Mint and Pop!_OS are not tested or supported.
These requirements matter for administrators planning CI or developer workstation adoption. The supplied information does not establish separate licensing terms, CI-runner compatibility, or a production-support guarantee.
What you should do
- Verify every CVE independently. Check the identifier against an appropriate public registry before opening an incident, changing infrastructure, or applying a package downgrade.
- Separate review from remediation. Let an agent produce findings and comments without giving it permission to run infrastructure changes, access a cluster, or push commits unless that access is necessary and explicitly controlled.
- Require human approval. A person should understand and approve agent-written remediation before it is executed, especially when recommendations involve IAM, Kubernetes, databases, or network isolation.
- Prefer read-only or clone-mode access. Use the narrowest repository boundary that supports the review. Remember that clone mode protects the host repository from modification but does not hide files located inside the mounted Git root.
- Keep sensitive credentials out of the workspace. Do not expose kubeconfig files, cloud credentials, CI tokens, or other secrets unless the workflow requires them and their use is explicitly controlled.
- Inspect network policy and integrations. Review permitted host services, credential forwarding, local MCP integrations, and any other connections that cross the sandbox boundary.
- Test before production adoption. The BuaJi walkthrough supplied for this report is incomplete, and the exact CI configuration is not independently established. Validate the workflow in a non-production environment first.
The operational lesson
The BuaJi incident does not show that an AI-generated security finding is always false, nor does it establish how frequently such reports occur. It shows a narrower and more actionable problem: a coding agent can produce persuasive technical claims without having reliable evidence for them.
Sandboxing can constrain file changes, commands, network access, and credentials. It cannot determine whether a CVE exists or whether a proposed response is justified. For AI-assisted code review, containment and independent verification are separate controls, and both are necessary before generated security guidance influences production systems.



