Skip to main content
Mallory
← Back to News
package-repository-poisoningcredential-stealer-activitybuild-pipeline-compromisecloud-misconfiguration

npm Supply-Chain Attacks Steal Developer Tokens and Enable Cloud Compromise

Supply Chain Risk · 2 sources · Updated 5mo ago · First seen Mar 11, 2026

npm Supply-Chain Attacks Steal Developer Tokens and Enable Cloud Compromise

Threat actors are using malicious npm packages to steal developer credentials and CI/CD secrets, enabling rapid escalation into cloud environments. Google reported that UNC6426 leveraged keys stolen during the earlier compromise of the nx npm ecosystem to pivot from a stolen developer GitHub token into AWS administrative access within 72 hours, abusing GitHub-to-AWS OpenID Connect (OIDC) trust to create a new admin role. The actor then used that access to exfiltrate data from AWS S3 and conduct destructive actions in production cloud environments; the initial nx compromise involved a GitHub Actions pull_request_target workflow abuse (“Pwn Request”) that enabled publishing trojanized packages containing a postinstall chain that executed the QUIETVAULT JavaScript credential stealer and uploaded stolen data to a public GitHub repo (/s1ngularity-repository-1).

Separately, researchers reported new waves of the PhantomRaven npm supply-chain campaign distributing 88 additional malicious packages (via ~50 disposable accounts) that target JavaScript developers by exfiltrating secrets from files like .gitconfig and .npmrc, environment variables, and CI/CD tokens (e.g., GitHub/GitLab/Jenkins/CircleCI). The campaign uses slopsquatting (LLM-suggested lookalike package names) and a stealth technique called Remote Dynamic Dependencies (RDD), where package.json pulls a dependency from an external URL so the malicious payload is fetched at install time (npm install) and can evade static package inspection; researchers indicated many of these packages remained available in the npm registry at the time of reporting.

Why it matters

Impact assessment

Malicious npm packages are enabling direct compromise of developer workstations, CI/CD pipelines, and downstream cloud environments. The most affected populations are JavaScript developers, organizations using npm-based build chains, and enterprises that federate GitHub Actions into AWS via OIDC; impact ranges from credential theft to full administrative cloud takeover, data exfiltration, and destructive production outages.

This exposure is both widespread and active. The UNC6426 intrusion demonstrates confirmed real-world exploitation leading to AWS admin access, S3 data theft, EC2 and RDS termination, and public exposure of internal GitHub repositories, while PhantomRaven shows an ongoing broad campaign with many malicious packages still available in npm at reporting time.

Supporting facts

  • Affected ecosystems:
    • npm / JavaScript developer supply chain
    • GitHub and GitHub Actions environments
    • AWS environments using GitHub-to-AWS OIDC trust
    • CI/CD platforms including GitHub, GitLab, Jenkins, and CircleCI
  • Threat actors and campaigns:
    • UNC6426
    • QUIETVAULT credential stealer
    • PhantomRaven npm campaign
  • Confirmed business impact from UNC6426:
    • Full cloud breach within 72 hours
    • AWS administrative access obtained
    • Data exfiltrated from AWS S3
    • Production EC2 and RDS resources terminated
    • Application keys decrypted
    • Internal GitHub repositories renamed and made public
  • Scope indicators:
    • PhantomRaven initially involved 126 malicious npm packages
    • Additional 88 packages were later identified across three waves
    • 81 PhantomRaven packages reportedly remained available on npm at the time of reporting
    • Activity used about 50 disposable npm accounts
  • Severity drivers:
    • Theft of developer tokens and CI/CD secrets
    • Abuse of trusted identity federation rather than malware-only persistence
    • Destructive actions in production environments
    • Potential reputational damage from public repository exposure
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

6 events · Jan 1, 2025 – Mar 11, 2026
  1. Mar 11, 20269mo ago

    Endor Labs documents ongoing PhantomRaven activity

    By March 2026, Endor Labs reported that PhantomRaven infrastructure and payload code remained consistent across waves and that many malicious packages were still available on npm. This indicated the campaign was ongoing at the time of reporting.

  2. Mar 11, 20269mo ago

    UNC6426 exfiltrates data and disrupts production AWS resources

    After gaining AWS administrator privileges, UNC6426 exfiltrated data from S3, terminated production EC2 and RDS resources, decrypted application keys, and exposed internal GitHub repositories by renaming and making them public. Google reported the full compromise unfolded in less than 72 hours.

  3. Mar 11, 20269mo ago

    UNC6426 compromises victim cloud environment in under 72 hours

    Using credentials stolen from the nx package compromise, UNC6426 accessed a victim's GitHub environment, extracted more CI/CD secrets, abused GitHub-to-AWS OIDC trust, and obtained AWS STS tokens. The actor then deployed a permissive CloudFormation stack to create a new IAM role with AdministratorAccess.

  4. Nov 1, 20251y ago

    Additional PhantomRaven attack waves hit npm

    Endor Labs identified three more PhantomRaven waves spanning November 2025 through February 2026, expanding the campaign to dozens of malicious packages and many disposable publisher accounts. The actor used slopsquatting package names and Remote Dynamic Dependencies to fetch payloads at install time.

  5. Oct 1, 20251y ago

    PhantomRaven npm campaign first reported by Koi

    Koi initially reported the PhantomRaven supply-chain campaign targeting the npm registry with malicious JavaScript packages that steal developer and CI/CD credentials. The activity was identified in October 2025.

  6. Jan 1, 20252y ago

    nx npm supply-chain compromise enables credential theft

    In 2025, attackers compromised the nx npm package through a vulnerable pull_request_target workflow, leading to trojanized Nx-related packages that executed the QUIETVAULT credential stealer. The malware harvested tokens and other sensitive data and uploaded them to a public GitHub repository.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Threat actors

1 linked

Affected products

1 linked
Github

Organizations

2 linked
Amazon Web ServicesGitHub
Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.