Join our Newsletter — 33% off our NHI Course
Home FAQ Threats, Abuse & Incident Response How do organisations know if their CI/CD environment…
Threats, Abuse & Incident Response

How do organisations know if their CI/CD environment is still exposed after an npm supply chain attack?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated August 26, 2026 Domain: Threats, Abuse & Incident Response

Look for signs of persistence and credential abuse, not just malware binaries. Validate whether new GitHub Actions workflows were added, whether self-hosted runners were registered unexpectedly, and whether build hosts fetched runtimes from external sources. Confirm that secrets were rotated, package versions were pinned, and lifecycle scripts are blocked in sensitive pipelines.

Why This Matters for Security Teams

An npm supply chain attack rarely ends with a malicious package alone. In CI/CD, the real risk is persistence through workflows, runners, cached credentials, and build-time trust that survives long after the package is removed. NHI Management Group’s research on the Shai Hulud npm malware campaign shows why defenders must look for credential abuse and pipeline tampering, not just binaries. The same pattern appears in other supply-chain incidents, including the Reviewdog GitHub Action supply chain attack, where exposure extended into automation paths that teams often forget to inventory.

This matters because CI/CD systems are built for speed, not long-term trust. A compromised workflow can rehydrate secrets, register new runners, fetch code from attacker-controlled endpoints, or quietly continue building from poisoned inputs. NHI Management Group’s 52 NHI Breaches Analysis consistently shows that non-human identities are a durable attacker foothold when they are not rotated, scoped, and monitored as aggressively as human accounts. In practice, many security teams discover exposure only after pipeline behaviour changes have already been used to stage the next compromise.

How It Works in Practice

After an npm supply chain event, exposure assessment should start with the control plane, not the package name. Review GitHub Actions history, runner registrations, deployment keys, and any change to secrets handling. Compare what the pipeline did before and after the event: new workflow files, unexpected triggers, altered action versions, or step additions that pull runtimes and scripts from external sources. The key question is whether the attack established persistence inside the automation layer.

Practitioners should also validate whether non-human credentials are still valid. If package install scripts or build hooks touched secret stores, assume tokens may have been copied. NHI Management Group’s Nx Package Attack analysis reinforces that secret theft in build environments is often the primary objective, not an incidental side effect. Use the operational guidance from the OWASP Non-Human Identity Top 10 alongside CISA cyber threat advisories to prioritize revocation, rotation, and access-path review.

  • Check for newly added or modified GitHub Actions workflows and reusable actions.
  • Validate whether self-hosted runners were registered, renamed, or re-imaged unexpectedly.
  • Confirm package versions are pinned and lockfiles were not silently altered.
  • Block lifecycle scripts where they are not required, especially in sensitive pipelines.
  • Rotate secrets that were available to build jobs, including tokens in caches and artifacts.

These controls tend to break down when build systems share credentials across repositories, because one compromised pipeline can become a pivot point into many others.

Common Variations and Edge Cases

Tighter pipeline controls often increase operational overhead, requiring organisations to balance deployment speed against blast-radius reduction. That tradeoff is especially visible when teams rely on self-hosted runners, temporary environments, or shared service accounts. Current guidance suggests treating those components as high-value NHIs with separate monitoring, because they often hold broader access than the application code they build.

There is no universal standard for how deeply to inspect every build after a supply chain attack, but best practice is evolving toward runtime attestation, short-lived credentials, and policy checks at execution time. Some environments only need secret rotation and workflow review, while regulated or high-trust build systems may also need provenance verification, artifact re-signing, and runner re-provisioning. The State of Secrets Sprawl 2026 highlights why this matters: if secrets are not revoked quickly, detection alone does not close the exposure window. For broader threat framing, the 52 NHI Breaches Analysis is a useful reference point for how persistent non-human access survives initial cleanup.

In practice, the hardest edge case is a compromised pipeline that looks healthy because its outputs still build successfully. That is usually where exposure remains hidden the longest.

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, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Covers secret rotation and exposure cleanup after pipeline compromise.
OWASP Agentic AI Top 10A-03Agentic controls apply to autonomous CI/CD actions and tool execution.
CSA MAESTROM1Addresses identity and trust in machine-to-machine automation paths.
NIST AI RMFGOVERNSupports governance for autonomous workflows and post-incident accountability.
NIST CSF 2.0PR.AC-4Least-privilege access is central to limiting CI/CD blast radius.

Assign ownership for pipeline risk and require documented review of autonomous build behavior.

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