Docker Sandboxes flaw let updated AI agent kits exfiltrate developer API keys

A flaw in Docker Sandboxes allowed a third-party AI agent kit, once approved, to push a later update that sent developers' real Anthropic, OpenAI or GitHub keys to an attacker server without a new prompt.

A developer seen from behind works at a laptop in a sunlit Riyadh office, with a hardware security key on the desk.

Key points

  • Docker Sandboxes runs AI coding agents inside isolated virtual machines and is meant to keep API keys out of the agent's reach.
  • A flaw meant a third-party agent kit could still obtain those keys.
  • After a single developer approval, a later kit update could exfiltrate real Anthropic, OpenAI or GitHub keys to an attacker-controlled server.
  • No new prompt was shown to the developer when the update acted.
  • The issue was reported by Endor Labs, according to The Hacker News.

What was reported

The Hacker News reports, citing research by Endor Labs, a flaw in Docker Sandboxes, a product that runs AI coding agents inside isolated virtual machines. One of its purposes is to keep sensitive API keys out of the agent's reach while it works.

According to the report, that protection could be bypassed by a third-party agent kit. Once a developer approved the kit a single time, a subsequent update to it could send the developer's real Anthropic, OpenAI or GitHub key to a server controlled by an attacker. No fresh approval prompt appeared when this happened.

Why it matters

The weakness sits at the intersection of two growing risks: AI coding agents with access to developer environments, and third-party components that change after they are first trusted. A one-time approval effectively became standing trust for future versions of the kit.

For regulated institutions, the keys named in the report are significant. GitHub credentials can expose source code and pipelines, while AI provider keys can incur costs or expose data sent to those services. Teams should not assume that sandboxing alone keeps secrets safe.

What to consider

The source does not detail fix versions or exploitation in the wild, so institutions should confirm the current status with the vendor before drawing conclusions. In the meantime, the practical response is to treat agent kits as software supply chain components, review which credentials developer sandboxes can reach, and be ready to rotate keys if exposure is suspected.

This is consistent with existing expectations under national and sector frameworks on third-party risk, secrets management and secure development.

What to do now

  1. Identify whether development teams use Docker Sandboxes or similar AI agent sandboxes, and check with the vendor for the current fix status.
  2. Inventory third-party AI agent kits in use and require review of updates, not only of the first installation.
  3. Rotate Anthropic, OpenAI and GitHub keys used in affected sandboxes if any untrusted or unreviewed kit was approved.
  4. Issue short-lived, least-privilege tokens to developer and agent environments rather than long-lived personal keys.
  5. Monitor AI provider and GitHub audit logs for unusual key usage or outbound connections to unknown servers.
  6. Fold AI coding agents and their extensions into third-party and secure development risk assessments.

How useful was this story?

Related frameworks

Need help acting on this?

Our consultants can assess your exposure and map the change to your controls and evidence.

Talk to an expert

Regulatory updates in your inbox

SAMA, NCA and SDAIA changes and what they mean for your institution — once a month.

E-mails in

We confirm by e-mail; unsubscribe any time. Manage your subscription · Past issues

Schedule a Free Assessment