Third-party package dependencies · Locking & integrity

Verify package integrity against recorded hashes

When it fails: Downloaded packages are not checked against a known hash.

CB-DEP-LOCK-003highdraftpartialprofile baseline

Status draft: not part of any release yet, may still change.

Description

The lockfile records a cryptographic hash for every package, and the package manager verifies the downloaded content against it on every install. Where the ecosystem does not do this by default, hash checking is turned on explicitly.

Rationale

Hashes guarantee that what is installed today is byte-for-byte what was reviewed when the lockfile was changed, even if a registry, mirror or cache serves something else.

Impact

None known, once lockfiles contain hashes. Older lockfiles may need to be regenerated.

Audit

  1. Check that lockfiles contain a hash for every entry.
  2. Check that hash verification is not disabled in configuration or pipeline flags.

Automated: every check must pass. Scanners report each check by its id.

postmortem

a hash per package in the lockfile; config that turns verification off

command: postmortem harden --json
control: CB-DEP-LOCK-003
coverage: auto

Remediation

  1. Regenerate lockfiles with hashes.
  2. Turn on mandatory hash checking where it is optional.

References

Mappings

FrameworkIDRelationNote
NIST SP 800-53 Rev. 55.1.1SI-7related
NIST SP 800-53 Rev. 55.1.1SR-4related

How this control relates to the other framework's: equivalent, stricter, looser, partial or related.

Threats mitigated

  • related CB-DEP-LOCK-001 Commit a lockfile for every deployable application

People and lifecycle

AuthorsAlice
Introduced inv1.0.0
Created, updated2026-10-16, 2026-10-16