We found 226 distinct OpenAI credentials in one public Docker image. Four weeks after we first recorded it, 177 still authenticated. They were associated with 169 distinct account IDs.
The credentials appeared in an OpenCode database, a Codex authentication file, and scratch files under /root and /tmp. Some appeared in multiple locations.
What we found
Our pipeline first recorded the image on September 9, 2026. On October 7, we checked its credentials with TruffleHog.

All findings came from one image digest. We counted each credential once, regardless of how many copies we found.
Methodology note: Authentication confirms acceptance at the time of the check, not permissions, prior use, or continuous validity. File paths alone do not establish credential types.
Where the credentials were hiding
Coding tools leave more than code behind. Their local files can include authentication material, databases and saved output. In this image, credentials appeared in both tool state and scratch files.

/root/.local/share/opencode/opencode.db: OpenCode database/root/.codex/auth.json: Codex authentication file/root/gg: File under the root user’s home directory/tmp/gg2_probe.jsonand/tmp/gg2_me.json: Temporary JSON files
These paths suggest that tool state and scratch output entered the published image. They do not establish how the files got there or that a coding agent caused the exposure.
For responders, they are places to trace through build inputs and copy operations. A clean repository can still sit inside a working environment full of credentials.
Our earlier Docker image research showed how broad copy operations expose sensitive files. Deleting those files in a later layer can leave their contents recoverable. Include tool databases, authentication files, and temporary output in your image scans.
177 live credentials. 169 account IDs.
One image held credentials associated with many accounts. Those IDs do not establish a count of people or companies, or explain how the credentials were collected.

They do create an ownership problem: the image publisher may not be able to revoke every credential. Fixing the image and revoking its exposed credentials can require different owners.
One credential, several copies
We deduplicated credentials but retained every recorded location. Removing an authentication file while leaving a copy in a database or scratch file can leak the credential again in a later build.
We saw a similar pattern in our Travis CI investigation: 80 unique, live secrets appeared across 6,690 build logs.
Track one remediation effort per credential, with all paths attached. Revocation invalidates the exposed credential; cleaning up the copies prevents the build from packaging them again.
Four weeks later, 177 still worked
By October 7, most of the credentials in this image still authenticated.
Our 2024 GitHub study found that, in more than half the cases where developers took down files exposing credentials, the credentials remained valid.
The populations differ, but the lesson applies: removing an exposed file does not revoke its credentials.
Closing the finding
Record the image digest and every credential location.
Deduplicate remediation records, keeping all paths.
Assign owners for image cleanup and credential revocation. Track unresolved ownership.
Revoke or rotate each credential. Verify that the exposed value no longer authenticates, and record the result and time.
Scan the replacement image and its layers. Check all recorded locations and confirm the replacement digest is being distributed.
For your next container review, look beyond the application source. Tool state and temporary files belong in the scan and a finding stays open until credential revocation and image cleanup are verified.

