Image Provenance
& Dependencies
Learn where your container images come from, why their dependency chains matter, and how to evaluate trust and risk in your software supply chain.
What Is a Container Image?
A container image is a lightweight, standalone package that includes everything needed to run a piece of software: the code, runtime, libraries, and system tools. Think of it as a snapshot of a configured machine, frozen in time.
What Is Image Provenance?
Provenance is the verifiable history of an image: who built it, what source code was used, when it was built, and how it was assembled. It answers the question: "Can I trust this image?"
Understanding Dependencies
A dependency is any external component your image relies on to function: base OS images, language runtimes, libraries, and packages. Dependencies form a tree that can be hundreds of nodes deep.
Why Provenance & Dependencies Matter
Every dependency you include is code you did not write but must still trust. Attackers target the weakest link in this chain. High-profile breaches like the SolarWinds and Log4Shell attacks exploited exactly this trust relationship.
The Trust Chain Model
Every container image inherits the trust level of its least-trusted dependency. This is the fundamental security rule of image provenance:
Direct vs. Transitive Dependencies
| Direct Dependencies | Transitive Dependencies | |
|---|---|---|
| Definition | Libraries you explicitly install | Libraries your libraries depend on |
| Visibility | Listed in your Dockerfile / manifest | Often hidden several layers deep |
| Control | You choose the version and source | Chosen by upstream maintainers |
| Risk Level | Moderate: you can audit them | High: harder to track and patch |
| Example | Flask in requirements.txt | Werkzeug pulled in by Flask |
How Image Layers Work
Tools for Verification
Step-by-Step: Evaluating an Image
Example 1: Good Provenance
Example 2: Poor Provenance
Example 3: Tracing a Vulnerability
Suppose a scanner reports CVE-2024-XXXX in libcrypto 3.0.2. How do you trace where this came from?
Registry Trust Levels
Common Mistakes
Summary: Key Concepts
| Concept | What It Means | How to Address It |
|---|---|---|
| Provenance | Where an image came from and who built it | Verify signatures, check publisher |
| Direct Dependencies | Packages you explicitly include | Pin exact versions in manifests |
| Transitive Dependencies | Hidden packages pulled in by your deps | Generate SBOM, scan recursively |
| Image Layers | Stacked filesystem changes in a build | Use minimal base, reduce layers |
| Trust Chain | Security is only as strong as weakest link | Validate every component |
Question 1 of 5
What does image provenance primarily help you determine?
Question 2 of 5
A transitive dependency is best described as:
Question 3 of 5
Why is using FROM ubuntu:latest in a Dockerfile considered a security risk?
Question 4 of 5
According to the Trust Chain Principle, what determines the overall trust level of a container image?
Question 5 of 5
Which combination of tools provides the strongest assurance about an image's security posture?