Agentic AI Module Added To NHI Training Course

What is the difference between provenance and integrity in container security?

Integrity means the artifact has not been altered since it was signed or produced. Provenance means you can trace where it came from, who approved it, and which controls were applied. Both matter, but provenance is stronger for governance because it helps teams decide whether a container should be trusted, not just whether it was changed.

Why This Matters for Security Teams

Container integrity and provenance answer different operational questions, and teams often blur them during supply chain reviews. Integrity tells you whether a container image has been changed after it was signed or published. Provenance tells you whether the image came through a trusted build path, who approved it, and whether the right controls were applied before release. That distinction matters when a seemingly intact image still arrives from a weak or untrusted pipeline.

Current guidance from NIST Cybersecurity Framework 2.0 is to treat software supply chain trust as a governance problem, not just a checksum problem. A valid hash can confirm preservation, but it cannot prove whether the build used approved sources, hardened runners, or reviewed dependencies. That is why NHIMG consistently frames provenance as the stronger control for trust decisions, especially in environments that consume third-party images or automated release artifacts. The same lesson appears in the DeepSeek breach, where exposure was not just about what existed, but about how quickly secrets, records, and build-adjacent systems became operational risk.

In practice, many security teams discover provenance gaps only after a clean image has already been deployed from a compromised or opaque pipeline, rather than through intentional verification during release.

How It Works in Practice

Integrity checks are usually the easier layer: sign the image, verify the signature, and confirm the digest at admission time. This answers whether the artifact is the same object that left a trusted point in time. Provenance is broader. It asks for evidence about the build chain itself: source repository, commit reference, build environment, signer, approver, dependency inputs, and any policy gates that were passed before publication. For container security, that often means pairing signature verification with attestations and release metadata.

Practitioners often use this distinction to separate detection from authorisation. Integrity is a control to detect tampering. Provenance is a control to decide whether the artifact should be trusted at all. A container can be intact and still be unacceptable if it was built from an unreviewed branch, produced by an unknown CI runner, or assembled with unapproved base layers. The NIST Cybersecurity Framework 2.0 supports this risk-based view by linking asset trust to governance and verification practices, not just technical inspection.

  • Use integrity checks to confirm the image has not changed since signing.
  • Use provenance attestations to confirm where the image came from and what controls were applied.
  • Require policy gates at build and admission time so trust is evaluated before deployment.
  • Keep evidence for approvers, source commits, and dependency inputs so review is auditable.

The Ultimate Guide to NHIs — What are Non-Human Identities is useful here because container pipelines are managed by NHIs, not humans, and those identities often hold the power to sign, publish, and promote images. When those NHIs are weakly governed, provenance evidence becomes unreliable even if the image hash still matches. These controls tend to break down in fast-moving multi-team CI/CD environments because approval records, signer identity, and build context are scattered across tools.

Common Variations and Edge Cases

Tighter provenance requirements often increase release overhead, so organisations must balance stronger trust decisions against pipeline speed and developer friction. That tradeoff is real, especially where teams deploy many short-lived images each day. Best practice is evolving, and there is no universal standard for every environment yet, but current guidance suggests treating provenance as the default for anything that reaches production.

One common edge case is a perfectly valid image that was rebuilt from the same source but with different tooling. Integrity alone may say both images are fine, while provenance reveals that only one passed the approved build path. Another edge case is third-party base images: they may be signed and intact, yet still lack enough upstream evidence to satisfy policy. That is why teams often combine internal build attestations with external source review, especially when using trusted registries or mirrored artifacts. The DeepSeek breach is a reminder that trust failures frequently begin upstream, long before a container ever reaches runtime.

For governance, the practical rule is simple: integrity answers “was it altered?”, while provenance answers “should it be trusted?”. In mature programs, both are required, but provenance usually drives the final deploy decision because it captures the chain of custody that integrity alone cannot prove.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Container pipelines rely on NHIs that sign and publish images, so credential hygiene matters.
NIST CSF 2.0 PR.DS-6 Integrity verification maps to protecting data and artifacts from unauthorized alteration.
NIST AI RMF Provenance is a governance pattern for trustworthy automated systems and release decisions.

Track and rotate signing and publishing NHI credentials before they can be reused in the build chain.