Use read-only registry credentials in pipelines

When it fails: Pipelines hold registry credentials that can publish packages.

CB-DEP-CI-002highdraftpartialprofile baseline

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

Description

Credentials used to download packages in pipelines can only read. Publishing uses separate, short-lived credentials limited to the release job.

Rationale

A stolen read-write token lets an attacker publish a malicious version of the organization's own packages, turning one compromise into many.

Impact

Separate credentials must be managed for publishing.

Audit

  1. List registry credentials available to pipelines.
  2. Check that install steps only have read access.

Remediation

  1. Create read-only credentials for installs.
  2. Restrict publish credentials to the release job, preferably short-lived and issued per run.

References

Mappings

FrameworkIDRelationNote
NIST SP 800-53 Rev. 55.1.1AC-6related

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

Threats mitigated

  • related CB-DEP-CI-001 Install dependencies in a step without secrets

People and lifecycle

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