Skip to content

Added probe that scans for Docker registry creds#25

Open
jksolbakken wants to merge 5 commits intoboostsecurityio:mainfrom
jksolbakken:dockercreds
Open

Added probe that scans for Docker registry creds#25
jksolbakken wants to merge 5 commits intoboostsecurityio:mainfrom
jksolbakken:dockercreds

Conversation

@jksolbakken
Copy link

Docker and Podman stores registry creds in cleartext if credential helpers are not used.

if err != nil {
return findings, err
}
for _, registry := range registries {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry not being clear enough but the probe is used to access the files in the index but then you need to run the detectors on the content of your files to actually detect credentials. When credentials are actually detected then a finding can be created. The current implementation will just flag every docker and podman config files as having creds in clear when it is not necessarily the case

// Copyright (C) 2026 boostsecurity.io
// SPDX-License-Identifier: GPL-3.0-or-later

package detector
Copy link
Contributor

@SUSTAPLE117 SUSTAPLE117 Feb 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jksolbakken that detector is not needed. What you did in the probe is to call the detectors registry on the content of files using the existing detectors we have. That is all that is required. Detectors contain specific patterns for specific secrets but in this case it will be covered by existing ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants