Limit network access of builds to approved registries

When it fails: Build environments can reach any host on the internet.

CB-DEP-CI-003mediumdraftpartialprofile hardened

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

Description

Build and install steps can only reach the organization's registries and the services the build requires. Other outbound traffic is blocked and logged.

Rationale

Blocks malicious install code from exfiltrating secrets or downloading a second stage, and stops builds from silently fetching unvetted code.

Impact

Builds that download from the internet break until their sources are proxied.

Audit

  1. From a build environment, try to reach an arbitrary internet host: it must fail.
  2. Check that blocked attempts are logged.

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

postmortem

harden-runner egress policy; network-level egress is not visible

command: postmortem harden --json
control: CB-DEP-CI-003
coverage: partial

Remediation

  1. Apply an egress allowlist to build environments, limited to approved registries and required services.

References

Mappings

FrameworkIDRelationNote
NIST SP 800-53 Rev. 55.1.1SC-7related

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

Threats mitigated

TaxonomyIDNote
MITRE ATT&CKT1041
  • related CB-DEP-SRC-001 Resolve all packages through an organization-controlled registry

People and lifecycle

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