Safeguard
Supply Chain•

What is the OCI referrers API and why do signatures and SBOMs use it?

The referrers API lists artifacts that point at an image digest, like signatures and SBOMs. See how the endpoint and tag fallback work and what to verify.

Safeguard Security Team
3 min read

The OCI referrers API lets a registry list artifacts that point at an image by digest, such as signatures and SBOMs. A client calls GET /v2/NAME/referrers/DIGEST and gets an index of manifests whose subject matches. If the call returns 404, clients fall back to a tag schema.

What problem it solves

An image digest is the stable identity of an image. Signatures, SBOMs and attestations should be found by that digest, not by naming conventions. The OCI distribution spec defines a subject field, an association from one manifest to another that is typically used to attach an artifact to an image.

How it works

PieceBehavior per the spec
EndpointGET /v2/NAME/referrers/DIGEST
FilterOptional artifactType query parameter
ResponseAn image index of manifests with a matching subject
No matchesAn empty list
Push orderA registry must accept a manifest whose subject is not yet present
UnsupportedClient must fall back to the referrers tag schema

The fallback tag is built from the subject digest, with the algorithm and encoded value joined by a hyphen, and the tag holds an image index matching the API response.

Why security teams care

If you verify that every deployed image has a signature and an SBOM, you need a reliable way to list what is attached. Without the API, tooling may rely on tag naming that anyone with push rights could imitate. With it, discovery follows the digest.

What to check in your registry

  1. Does it support the referrers API, or only the fallback?
  2. Can you restrict who may push referrers to a repository? Anyone who can push can attach artifacts to a digest, so treat the list as untrusted until verified.
  3. Do your verification tools query by artifactType and then verify signatures, not just presence?
  4. Does copying an image to another registry keep its referrers? Test it, since this post did not confirm tool behavior.

The key rule

Presence is not proof. A referrer listed for a digest is a lead. A verified signature from an expected identity is evidence. For more on that distinction, see what a container image signature proves and does not.

Try it yourself

Try it yourself

Click through it at your own pace, or open it full screen. Look at which artifacts and metadata hang off a scanned image and ask which of them you could verify.

Quick check

Is the referrers API required for signing to work?

Not necessarily. The spec provides a fallback tag schema, so clients can work with registries that lack the API.

Who can add a referrer to my image?

Anyone with push access to the repository. Restrict that access and verify signatures rather than trusting the list.

Safeguard asset discovery and container image scanning give you an inventory of the images you run.

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.