What happened
Endor Labs researcher Peyton Kennedy found the credential-binding flow in Docker Sandboxes: since v0.43.0, approving a kit's credential request records the service and the domains the developer agreed to, but that recorded list is never read back at request time — only the service name is checked. A malicious kit version at the same reference can therefore change the injection destination, and the proxy delivers the developer's real API key to the attacker's server, silently, recording the connection as allowed in the policy log.
Why it matters
This defeats the product's core guarantee (raw keys never enter the sandbox). The attacker never needs access to the developer's machine — only a one-time approval and one changed line in the kit's next version. It turns 'approve this agent kit' into a persistent, silent credential-theft channel that survives sandbox deletion and reapproval across every sandbox on the host.
Attack vector
An agent kit (packaged agent configuration fetched from a registry, git ref, or folder) is approved once for credential use; a later update to that same kit changes the domains the real API key is injected to, so the proxy forwards the developer's actual Anthropic/OpenAI/GitHub key in cleartext to the attacker's server with no new prompt. The approval list of destinations is never read back at request time.
Affected systems
Docker Sandboxes < 0.55.0 (flaw introduced by the consent system in 0.43.0)
Mitigation
Upgrade to Docker Sandboxes 0.55.0 (kit credential injection now enforces approved destinations). Review ~/.config/sbx/credentials.yaml and remove third-party kit bindings; pin kits to a fixed commit or vendored copy; store keys per-sandbox with --sandbox; rotate provider keys behind any approved third-party kit that changed.