The provenance triad: cosign, Syft and Trivy
“Where did this image come from?” is the central question of supply chain security. It breaks into three, and each has a mature open tool to answer it.
1. Who built this? — cosign (Sigstore)
cosign, from the Sigstore project, signs artifacts: container images, SBOMs, blobs. The signature ties the artifact to a key (or to an identity, in keyless mode). Whoever receives the image runs cosign verify and knows it was signed by whoever claims to have produced it — and that it was not swapped on the way. It is the artifact signing that turns “trust me” into “verify.”
One detail matters: the signature applies to a digest, not a tag. That is why deploys must pin by digest (see why pin images by digest).
2. What is inside? — Syft (SBOM)
Syft generates the SBOM: the inventory of every package and version inside the image, in an open format such as CycloneDX or SPDX. Without that inventory, no question about risk has a fast answer. With it, “do we use the affected library X?” becomes a query, not a hunt.
3. Is it vulnerable? — Trivy (scanning)
Trivy crosses what is inside with databases of known vulnerabilities, and also looks for secrets left in the image and misconfigurations. It is the step that turns the inventory into an action list: “these packages have a published flaw, and these have a fix available.”
How the three fit together
Separately, they are three utilities. Together, in a pipeline, they form a provenance chain:
- the image is built from source, in a CI that records the originating commit;
- Syft generates the SBOM and attaches it to the image as an OCI reference;
- Trivy scans; the gate blocks publishing when there is a critical CVE with a fix — not when the fix does not yet exist, so production is not stalled for no gain;
- cosign signs the image and the SBOM, tying it all to the digest;
- the deploy pins by digest, and anyone who wants can repeat steps 2–4 themselves and check.
ZTGIT uses this same chain, with one difference: the CycloneDX SBOM is produced by Trivy itself (instead of Syft), and Grype comes in as a second, independent scanning engine. The tools enter the catalogue as ZTGIT-SBOMscan, alongside ZTGIT-VulnScan (host) and ZTGIT-VAscanner (network). The result for each image — originating commit, signed digest, date, SBOM and two independent scans — is published as verifiable evidence in JSON.
Why this differs from “trusting the registry”
Pulling an official image from a public registry hands all three answers to third parties you do not control. The triad gives all three back to you: you can verify the signature, read the inventory and repeat the scan. Provenance stops being a promise and becomes something anyone can check.