Appearance
Why It Matters
latest and implicit latest tags are mutable by design. They make rebuilds drift over time and weaken incident response because the committed Dockerfile does not identify a stable artifact.
What Triggers
SEC751 matches FROM instructions when the selected base image uses either:
- no explicit tag at all, which implies
latest - an explicit
:latesttag
The rule skips digest-pinned images and previously defined stage aliases in multi-stage builds.
False Positives
The rule is intentionally narrow: it does not flag reviewed explicit version tags such as alpine:3.20, and it excludes FROM build style stage-alias reuse.
Remediation
Replace latest or implicit-latest references with a reviewed explicit version tag or a digest pin.