Safeguard
Supply Chain•

Does deleting a container image delete its SBOM and signature?

Where SBOMs and signatures are stored as referrer artifacts, some registries expire them with the image. Check yours and keep a copy of the evidence.

Safeguard Security Team
4 min read

It depends on how they are stored. When an SBOM or signature is attached as a referrer to the image, some registries expire it with the image. Amazon ECR documents that reference artifacts expire within 24 hours of the subject image being deleted or archived. Check your registry, and keep your own copy.

Definitions

The OCI distribution specification defines a subject as an association from one manifest to another, typically used to attach an artifact to an image. A referrers list is the list of manifests that have a subject relationship to a given digest. Signatures, SBOMs and attestations are commonly stored this way, as their own manifests pointing at the image digest.

That design is neat for discovery, since you can ask the registry which artifacts refer to an image. It also means these artifacts live and die alongside registry cleanup rules.

What ECR says

ECR states that when reference artifacts are present in a repository, lifecycle policies automatically expire or archive those artifacts within 24 hours of the deletion or archival of the subject image. So a rule that expires an image takes its attached artifacts with it a day later. This is sensible, as an SBOM for a missing image is of little use in the registry, but it matters for evidence.

Other registries

Google Artifact Registry documents that cleanup policies for Docker images do not delete images referenced by a parent manifest, and that related images are deleted when the parent is deleted. That describes parent and child manifests, which is related but not the same as referrers. Read the documentation for how your registry handles attached artifacts, and test with a throwaway image: attach a test artifact, delete the subject, and see what remains.

I could not confirm from the sources checked here how every registry treats referrers on manual deletion, so verify rather than assume.

What to keep outside the registry

ItemWhy keep a copyWhere
Image digestIt identifies exactly what shippedRelease record
SBOMAnswers which components were in the releaseEvidence store or SBOM platform
Scan resultShows what was known at release timeEvidence store
Signature or attestation bundleProves who built itRelease record or evidence store

The registry copy is for operations. The evidence copy is for audits, customer questions and incident response, and it needs its own retention period. See how long to keep container scan evidence for audits and attach an SBOM to a container image with cosign.

A simple test

  1. Push a test image and attach a test SBOM.
  2. List its referrers.
  3. Delete the image, or let a rule expire it.
  4. List referrers again, and look for the SBOM by its own digest.

Record the answer in your runbook. It is a ten minute test that settles the question for your registry.

Where Safeguard fits

Safeguard's SBOM and compliance evidence automation can keep SBOMs and scan records independent of registry cleanup. A free scan is at gold.safeguard.sh/scan.

Quick check

Will my SBOM survive if the image expires?

Not necessarily. In ECR, attached reference artifacts expire within 24 hours of the subject. Keep a separate copy.

Is a signature useful without the image?

Not for pulling, but the record of who signed what can still matter for audit, so keep the evidence.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.