Join our Newsletter — 33% off our NHI Course

What do teams get wrong about monitoring egress in CI/CD pipelines?

The most common mistake is treating all unexpected egress as either benign or malicious without checking context. Teams need to look at process, timing, and destination together. When build tools such as node, terraform, or go make new calls during package download stages, that pattern deserves investigation because it may indicate a platform change or a supply chain risk.

Why CI/CD Egress Monitoring Is Commonly Misread

Teams often miss egress patterns in CI/CD because they focus on the destination alone and ignore what the pipeline job was supposed to do at that moment. A package installer reaching out during dependency resolution is not the same as a deployment script reaching out during a normally offline build step. The distinction matters because egress can be a control signal, a dependency signal, or an abuse signal, depending on process context. The OWASP Non-Human Identity Top 10 helps practitioners think about how machine-run workloads and their access paths become security-relevant when they are not governed like human users.

In practice, many security teams encounter pipeline egress anomalies only after a build runner, helper task, or third-party package has already widened the trusted path.

How Egress Signals Should Be Read in a Pipeline

Monitoring egress in CI/CD works best when teams treat it as a three-part question: what process made the call, when in the job it happened, and where the traffic went. A build step that fetches dependencies from an approved registry is expected. The same process making a new outbound request to an unfamiliar host during a package installation phase may still be legitimate, but it should be explainable. The point is not to block every new destination; it is to identify when the runtime behaviour no longer matches the pipeline’s declared purpose.

That distinction is important because CI/CD jobs are often composed of many short-lived tools with different network needs. OWASP Non-Human Identity Top 10 is useful here because it reminds teams that pipeline components, service accounts, tokens, and automation paths can all carry machine-level trust, even when the immediate question looks like a network-monitoring problem. If those identities are over-privileged or poorly scoped, an egress event can become an indicator of abuse rather than just a noisy exception.

  • Review the job phase first, then decide whether the outbound call fits the expected workflow.
  • Compare destination, time, and process identity together instead of alerting on destination alone.
  • Separate routine dependency retrieval from unexpected post-build, deploy-time, or cleanup-time callbacks.
  • Check whether the process should have outbound access at all, especially for tasks that claim to be deterministic or offline.

This guidance breaks down when teams lack a baseline for normal job behaviour, because without that reference point every new endpoint looks equally suspicious.

Where False Comfort and False Alarm Both Begin

Tighter egress controls often increase operational friction, so organisations must balance build reliability against visibility and containment. The common tradeoff is between allowing broad outbound access to avoid breaking jobs and restricting traffic enough to make suspicious behaviour stand out.

One frequent error is assuming that allowlisted destinations solve the problem by themselves. They do not, because a compromised build step can still abuse a trusted registry, mirror, or webhook endpoint. Another common mistake is treating any new host as malicious without checking whether a tool update, new dependency source, or platform migration changed the legitimate traffic pattern. Guidance on this point is still evolving across the industry, so teams should be explicit about what they classify as normal versus exceptional.

Teams also underestimate how much egress monitoring depends on ownership. If the platform team, security team, and application team each assume another group understands the job’s network behaviour, anomalies go untriaged or are dismissed too quickly. The best programs document which pipeline stages are allowed to reach out, which destinations are expected, and which exceptions require manual review before they become accepted noise.

What teams get wrong most often is not the presence of outbound traffic, but the failure to tie that traffic back to a specific phase, purpose, and identity. If they cannot explain that connection, they are not really monitoring egress in CI/CD.

Risk and Threat Considerations

CI/CD egress becomes risky when automation has broader network reach than the job actually needs. That creates an opportunity for supply chain abuse, malicious dependency retrieval, webhook abuse, or covert data exfiltration through a trusted build path.

Failure mechanism: an attacker, compromised dependency, or injected build step uses the pipeline’s allowed outbound access to fetch payloads, stage tooling, or send sensitive data to an external host that blends in with normal build traffic.

Impact: defenders lose visibility into whether the pipeline is contacting legitimate build infrastructure or an attacker-controlled endpoint, and a single compromised job can expose source code, secrets, or release integrity.

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 and MITRE ATT&CK address the attack and risk surface, while CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-01 — Inventory and Ownership of Non-Human Identities CI/CD jobs and automation paths depend on machine-level trust and access.
NHI-03 — Least Privilege and Scoped Access Overbroad pipeline access turns routine egress into an abuse path.
NHI-07 — Monitoring and Detection Unexpected build egress is a detection problem that needs behavioural context.
Recommendation — Inventory pipeline identities and tie every outbound path to an accountable owner. Scope CI/CD credentials and network access to the minimum required destinations. Correlate process, stage, and destination telemetry to spot abnormal pipeline egress.
MITRE ATT&CK T1195 — Supply Chain Compromise Pipeline egress can be abused through compromised dependencies or build steps.
Recommendation — Map suspicious pipeline outbound activity to supply-chain attack paths and investigate staging.
CIS Controls v8 CIS-12 — Network Infrastructure Management Egress control and segmentation are central to limiting pipeline reach.
Recommendation — Restrict outbound access for build infrastructure to approved services and protocols.
NIST CSF 2.0 DE.CM-01 — Security Continuous Monitoring The question is about distinguishing normal from anomalous pipeline network behaviour.
Recommendation — Continuously monitor CI/CD traffic for deviations from established baselines.

Practitioner Guidance

What to prioritise: Start with the pipeline stages that should be deterministic and low-noise, such as compile, package, and test jobs. Those are the easiest places to spot unexpected egress because legitimate network needs are usually narrow and repeatable.

What to verify: Confirm that the alerting logic can answer three questions for every outbound connection: which process made it, which stage was running, and whether the destination has a documented purpose. If any one of those is missing, the signal is too weak for confident triage.

Common mistake: Do not collapse every unplanned outbound call into a single “malicious” bucket. That shortcut hides platform changes, dependency updates, and package-manager behaviour that need different responses, and it also lets genuine abuse hide inside expected build noise.

Practitioner takeaway: The strongest egress programs do not ask whether traffic is unexpected in isolation; they ask whether the traffic matches the job’s purpose, phase, and authority.