Join our Newsletter — 33% off our NHI Course

Docker Image Tag

A Docker image tag is a version label that points to a specific image in a repository. Tags help teams reference different builds, releases, or variants of the same application. From a secrets perspective, each tag can carry different layers and different exposure risk, so tags should be treated as separate scan targets.

Expanded Definition

A Docker image tag is the mutable label that points to a particular image in a registry. In practice, teams use tags to name release versions, build variants, and environment-specific images, but the tag itself is not a security boundary and does not guarantee immutability unless the publishing workflow enforces it.

That boundary matters because tags are often treated as if they describe a single artifact when they may be reassigned to a different digest over time. A tag such as OWASP Non-Human Identity Top 10 is not the right way to read the concept; tags are about image reference and release management, while identity and secret handling belong to the image contents and the pipeline around it. For that reason, a tag should be understood as a pointer in a distribution system, not as evidence of provenance, trust, or entitlement.

Examples and Use Cases

Docker image tags appear in everyday delivery workflows, and the same repository can hold many tags for one application. Common examples include:

  • Release labels: teams publish

    stable

    or semantic version tags such as

    1.4.2

    to mark a production release.

  • Environment variants: a single image may be tagged for

    dev

    ,

    test

    , or

    prod

    promotion flows.

  • Build markers: CI systems often attach a commit-derived tag so operators can trace which build produced the image.

  • Mutable shortcuts:

    latest

    or other rolling tags are used for convenience when the consuming system always wants the newest approved build.

  • Scanner targets: security teams often treat each tag as a separate scan input because a new tag can expose different packages, layers, or embedded secrets.

The practical tradeoff is convenience versus traceability. Mutable tags simplify deployment, but immutable digest pinning gives stronger assurance that the running workload matches the reviewed artifact.

Security Implications

Misunderstanding a Docker image tag can lead to stale scanning, weak provenance, and inconsistent rollout behavior. If a tag is reused, one deployment may point to a different image than the one originally reviewed, which creates drift between what engineers think is running and what is actually running.

This matters especially when image layers contain credentials or other sensitive material. GitGuardian reports that around 100,000 valid secrets were found in public Docker images, with ENV instructions alone accounting for 65% of all secret leaks in containers. That is a reminder that a tag can become the label attached to a compromised artifact, not just a clean release artifact.

Operational symptoms include surprise changes after a redeploy, scanner results that do not match the currently served image, and incident response delays when teams cannot prove which digest was pulled. In other words, the tag itself is lightweight, but the failure mode is real: it can hide change, mask exposure, and blur accountability.

Domain and Governance Relevance

In container governance, the tag is the first reference point for image selection, but not the last word on trust. Secure release processes therefore need to distinguish between human-friendly labels and verifiable artifact identity. That distinction becomes more important as organisations rely on registries, CI/CD systems, and policy gates to decide what reaches runtime.

For NHI and secrets management, the term matters because container images frequently carry machine credentials, API tokens, and configuration material used by non-human workloads. A tag that points to a reused or republished image can therefore affect secret exposure, service account hygiene, and the confidence operators have in workload identity boundaries. NHIMG research notes that 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, which makes image hygiene and tag discipline part of broader machine-identity control.

The governance question is not just “what is the tag,” but “what exactly does that tag resolve to, and who can change that mapping.”

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK address the attack and risk surface, while CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
CIS Controls v8 8.1 — Defend Assets with Inventories and Control Tags identify images that should be inventoried and controlled.
12.1 — Establish and Maintain a Vulnerability Management Process Each tag can expose a distinct image requiring separate review.
16.11 — Define and Maintain Secure Software Deployment Processes Tagging affects release integrity and deployment traceability.
Recommendation — Inventory image tags and restrict who can create or retarget them. Scan each tagged image independently before promotion or deployment. Pin deployments to approved digests instead of mutable convenience tags.
NIST CSF 2.0 PR.DS — Data Security Tagged images may carry secrets or sensitive data in layers.
Recommendation — Protect image contents and prevent secrets from being baked into tagged releases.
MITRE ATT&CK T1552 — Unsecured Credentials Image layers and tags can expose embedded credentials.
Recommendation — Hunt for credentials in images and treat leaked secrets as compromised.