Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Runner Egress
Cyber Security

Runner Egress

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Cyber Security

Runner Egress is the outbound network traffic a CI/CD runner or build agent initiates to reach package registries, source hosts, cloud APIs and other destinations. Unrestricted egress lets a compromised build or malicious dependency send out secrets and tokens. Defenders apply allowlists for destinations and log outbound connections to spot unexpected endpoints.

Runner Egress and why it matters

Runner egress is the outbound traffic a CI/CD runner or build agent creates while it fetches dependencies, reaches source control, calls package registries, and talks to cloud services. It matters because the runner is often executing with broad pipeline context, so every destination it can reach becomes part of the trust boundary for the build.

In practice, egress is not just a networking detail, it is a control surface. A runner that can reach anything on the internet can also leak artifacts, environment variables, tokens, or signing material if a job is compromised or a dependency behaves maliciously. That is why outbound reachability should be designed as deliberately as inbound access.

How runner egress creates security exposure

The main exposure is exfiltration. If an attacker lands in a workflow through a poisoned dependency, script injection, or a compromised runner, unrestricted egress gives them a ready-made channel to send secrets and metadata out of the environment. The same channel can be used to stage tooling, fetch second-stage payloads, or contact command-and-control infrastructure.

Egress also affects blast radius. When build infrastructure can talk freely to internal services, cloud APIs, or ephemeral endpoints, a compromise can pivot beyond the original job. Limiting destinations reduces the number of places an attacker can reach from a stolen build context.

For a broader control lens, M1037 Filter Network Traffic is the relevant mitigation pattern: only the destinations that the build genuinely needs should remain reachable, and everything else should be treated as suspicious by default.

What defenders should verify in the environment

Exposure checks should start with a complete inventory of runners, build agents, and the networks they sit in. Defenders need to know which runners are self-hosted, which are ephemeral, which projects can use them, and which destination categories those jobs require. Without that inventory, allowlists become guesswork.

Internet exposure matters too. A runner that can resolve arbitrary domains, reach public package sources, or open arbitrary outbound sessions should be treated as a higher-risk execution point than one constrained to known registries and approved APIs. Logging outbound connections helps distinguish ordinary build traffic from unexpected destinations that may indicate compromise.

For operational context on runner hardening and monitoring, Self-hosted CI/CD Runners and Build Agents covers the surrounding trust model, while CI/CD Pipeline Identity Security Guide is useful where egress control intersects with pipeline credentials, federation, and publishing flows.

How to reduce exposure when egress cannot be fully closed

The strongest pattern is default-deny outbound access with explicit allowlists for the registries, hosts, and cloud endpoints a pipeline actually needs. That should be paired with DNS and proxy controls where possible, because destination filtering is only useful if the runner cannot bypass it through alternate paths.

When a full block is not practical, compensating controls should narrow the abuse window. Examples include short-lived credentials, separation of build and release duties, restricted artifact publishing paths, and clean runner teardown after each job. These controls do not remove egress risk, but they make theft and reuse harder.

For teams evaluating tooling, CI/CD Security Tooling Buyer's Guide is helpful where egress monitoring, workflow analysis, and runtime visibility need to be part of the selection criteria.

Detection and post-incident review for runner egress

Egress monitoring is valuable because compromise often shows up first as an unexpected destination rather than a failed login. Look for outbound traffic to unfamiliar domains, unusual ports, uncommon geographies, or bursts of requests that do not match the normal dependency and publishing pattern for the job.

After an incident, the review should include what the runner could reach, what secrets were present in the job environment, and whether any publishing tokens, cloud credentials, or signing material may have been exposed. If an attacker had time to run commands, the investigation should assume that outbound communication may have been used to move data or pull additional tools.

For detection patterns around credential misuse and breach discovery, NHI Breach Detection Gaps Lessons Guide provides a useful detection mindset, especially where compromised build credentials or tokens are involved.

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 addresses the attack and risk surface, while CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-12 — Network Infrastructure ManagementRunner egress depends on controlling network paths and destination reachability.
Recommendation — Restrict runner outbound paths to approved destinations and monitor unexpected connections.
NIST SP 800-53 Rev 5SC-7 — Boundary ProtectionEgress filtering is a boundary-control problem for build and runner traffic.
AU-12 — Audit Record GenerationOutbound connection logging is essential to detect unexpected runner destinations.
Recommendation — Enforce outbound boundary restrictions for runners and log allowed and denied destinations. Generate and retain logs for runner outbound connections and review anomalies promptly.
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageCompromised runners can exfiltrate secrets and tokens through unrestricted egress.
NHI-04 — Insecure AuthenticationRunner egress is often abused after stolen tokens or credentials are used in a job context.
Recommendation — Limit runner destinations and protect secrets so they cannot be exfiltrated during job execution. Reduce exposed credentials in build jobs and constrain where authenticated runner traffic can go.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org