Skip to content
Connectors

Scanner deep dive

Docker

SourceGAOpen source + Enterprise · Hosted or self-hosted

The Docker integration scans Docker images for credentials and other sensitive data.

Use cases and coverage

Scanning use cases

  • Review a release image before publishing it

    List the exact supported image reference in the Docker source and scan it. Review any credential finding with the owner of the image build.

  • Check the rebuilt image after removing a key

    Scan the replacement image by tag and review its layers and build history. A key removed from the final filesystem may still be present in an earlier layer.

Related incidentA cloud credential in Codecov’s Docker image · Exposure location

April 2021 · Exposure location

Codecov traced a change to its Bash Uploader back to a service-account key left in an intermediate layer of a published Docker image. The key allowed changes to the uploader in Google Cloud Storage.

How this relates to Docker

The report identifies the image layer that held the credential. Review the image your team distributes alongside its source repository.

Review Docker scan scope

Codecov report · Root Cause

Source check

Atlas AI-assisted source check · 2026-11-22. The publisher describes the event or study. The Atlas explains its relevance to this connector. Detection depends on the scan scope and detectors in use.

What it covers

Compare in matrix

What the docs page’s Capabilities table says, sorted into what the source reaches, how deep it reads and how it runs. Hatched segments and dashes are capabilities the page doesn’t mention. Select ⓘ for what each one means.

  • Docker images

Also reads archive files, base64-encoded data, binaries.

What it reaches

0 supported · 3 not documented

  • History–
  • Comments–
  • Attachments–

How deep it reads

3 supported · 1 not documented

  • Archives✓
  • Binaries✓
  • Base64✓
  • Office docs–

How it runs

0 supported · 6 not documented

  • Filters–
  • Real-time–
  • Pre-commit–
  • Pre-receive–
  • In CI–
  • Auto-resume–

Limits

Caveats the docs page states, like size caps or content it skips.

  • Images must be listed explicitly in the images field.
  • Only linux/amd64 images are scanned.

What TruffleHog documents

Integration guide

List the images to scan. Specify a tag to select a particular release. If you omit the tag, the integration uses latest.

Read the Docker integration guide
Open-source CLI

A scan covers files in image layers and the commands recorded in build history. The guide also lists environment variables, labels and image metadata.

Read the pinned README passage

Sources checked .

Scan setup and permissions

Set it up

Pick how you’ll run it: each tab has its steps and its options. Enterprise paths come from Truffle’s public docs. The open-source CLI is read from the public TruffleHog code at a pinned commit; it’s a separate product from Enterprise.

Local configuration

  1. List the image references to scan in a local configuration file. Pin a tag when you need a reproducible pilot. An omitted tag selects latest.
  2. Public images support anonymous access. For private images, choose a registry login available to the scanner through the Docker keychain or another documented credential method.

Suggested contact (Atlas suggestion) · Container registry owner

Suggested first check (Atlas suggestion) · Check that the scanner can read the exact image and tag you selected.

Setup reference checked 2026-11-22 · Configuration

Config file options (6)

Options for sources.Docker in a local YAML config. Required fields come first.

Docker configuration options
FieldWhat it doesType
imagesRequiredExplicit list of images to scan. Untagged images default to latest.list
unauthenticatedEmpty object for no authentication. Required for unauthenticated mode.object
dockerKeychainUse credentials from the local Docker keychain.boolean
basicAuth.usernameRegistry username for basic auth mode.string
basicAuth.passwordRegistry password for basic auth mode.string
bearerTokenRegistry bearer token for bearer token mode.string

Check the options in your installed version with trufflehog docker --help.

  1. Choose one image reference, a local image tarball, or an image available via the Docker daemon.
  2. Use the matching --image input form shown by command help. Arrange registry access when reading a private image.

Suggested contact (Atlas suggestion) · Registry owner or CI image builder

Suggested first check (Atlas suggestion) · Check that the exact image reference or local archive is available to the runtime.

Setup reference checked 2026-11-22 · docker command declaration

$ trufflehog docker

Scan Docker Image pkg/sources/docker · main.go line 217

Open-source TruffleHog, read from the public code at commit ffdee00 (v3.99.9-6-gffdee00a). Newer releases may differ.

trufflehog docker flags
FlagWhat it doesType
--imageDocker image to scan. Use the file:// prefix to point to a local tarball, the docker:// prefix to point to the docker daemon, otherwise an image registry is assumed.strings
--tokenDocker bearer token. Can also be provided with environment variableEnv DOCKER_TOKEN.string
--exclude-pathsComma separated list of paths to exclude from scanstring
--namespaceDocker namespace (organization or user). For non-Docker Hub registries, include the registry address as well (e.g., ghcr.io/namespace or quay.io/namespace).string
--registry-tokenOptional Docker registry access token. Provide this if you want to include private images within the specified namespace.string

Access

How the scanner authenticates and what it’s allowed to read. Write access is highlighted.

Auth methods

  • Unauthenticated
  • Docker keychain
  • Basic authentication
  • Bearer token

If Docker keys leak

The credentials you give this connector are secrets too. These detectors find Docker keys anywhere TruffleHog scans, not only inside Docker.

Sources and related tools

Docs OSS codeScraped, not reviewedArtifact repositories

Evidence

Docs scraped 2026-11-17. Each docs page was fetched with Firecrawl twice (an overview pass and a detail pass for capabilities, options, permissions and notes) and read by an extraction prompt. Descriptions are short paraphrases. Open-source CLI facts are parsed from main.go at the pinned TruffleHog commit. Not reviewed by a person. Pinned commit ffdee00. Check the source before quoting a detail, or review this connector so the badge says so.

Amazon ECRGoogle Artifact Registry