By NHI Mgmt Group Editorial TeamDomain: Breaches & IncidentsSource: VeracodePublished September 9, 2025

TL;DR: Recent npm attacks showed how phishing, maintainer account takeover, and browser-based malware can combine to compromise packages with billions of weekly downloads, exfiltrate environment variables, and reroute crypto transactions before defenders can react, according to Veracode. The lesson is that supply chain security now depends on behavioural detection, rapid blocking, and tighter identity controls around maintainers and build systems.


At a glance

What this is: This is an independent analysis of recent coordinated npm supply chain attacks and their key lesson: trusted open-source packages can be weaponised within hours of maintainer compromise.

Why it matters: It matters because software supply chain defence is now inseparable from identity governance, especially where developer accounts, CI secrets, and publishing privileges can be hijacked and abused at speed.

👉 Read Veracode's analysis of the recent npm supply chain attacks


Context

npm package compromise is not just a software integrity problem. It is also an identity and access problem, because attackers repeatedly start by stealing maintainer credentials, abusing publishing privileges, and then using that trust to distribute malicious code across the ecosystem. In practice, the fastest path to impact is often account takeover rather than code exploitation.

The article shows how open-source dependency risk now spans developers, CI pipelines, browsers, and end users. For IAM and NHI teams, the overlap is clear: developer accounts, API tokens, build secrets, and package publishing rights behave like high-value non-human identities when they can trigger downstream execution at scale.


Key questions

Q: Why do maintainer accounts create supply chain risk in open source?

A: Maintainer accounts often control release publishing, merge rights, and artifact signing, so they sit on the trust path into downstream environments. If those identities are weakly protected or over-permissioned, a single compromise can affect many consumers at once. That makes maintainer MFA, signed publishing, and release segregation core supply chain controls, not optional hygiene.

Q: Why do package ecosystems create such a large blast radius for identity compromise?

A: Package ecosystems amplify one identity failure across many consumers because downstream systems trust registry activity by default. If a maintainer, token, or publish session is hijacked, the malicious release can propagate through transitive dependencies and automated updates. This makes release authority a high-impact identity control, not a minor developer convenience.

Q: What do security teams get wrong about dependency scanning?

A: They often assume a clean manifest means a clean environment. In reality, package managers can resolve transitive code dynamically and execute scripts during installation. A scan can confirm what should have been installed, but it cannot prove what actually ran or what secrets the code reached.

Q: How should organisations respond when a package they trust is suddenly compromised?

A: Block the affected package immediately, identify every environment that installed it, and verify whether any secrets, tokens, or browser sessions were exposed. Then review publishing identities, CI permissions, and any downstream systems that could have inherited the compromise.


Technical breakdown

How phishing turns maintainer accounts into supply chain entry points

Attackers used phishing emails that impersonated npm support and redirected maintainers to fake login pages. Once credentials were harvested, the attacker could lock out the legitimate owner and publish trojanized packages through the same trusted account. This is a classic trust-abuse pattern: the code repository and package registry remain intact, but the identity behind the publishing action has been compromised. In supply chain attacks, the account is often the real asset, because package trust is inherited from the maintainer identity behind it.

Practical implication: Protect publishing identities with phishing-resistant authentication and strict recovery controls.

Why browser-based malware increases the blast radius of package compromise

The malicious payload did more than steal secrets from build environments. It hooked browser APIs such as fetch and XMLHttpRequest, and it intercepted wallet interfaces to manipulate transactions in the user session. That means the package was not only a delivery mechanism for server-side compromise, but also a runtime control point inside the browser. This broadens the threat from developer tooling into fraud, wallet abuse, and downstream user manipulation, which is why package review alone is insufficient.

Practical implication: Treat package risk as a runtime execution problem, not only a dependency approval problem.

Why signatures and SBOMs did not stop these attacks

The packages looked legitimate because they came from trusted maintainers, used familiar names, and passed conventional checks. SBOMs still matter, but they do not prevent rapid post-install compromise or retroactive tainting of a package that was safe when first installed. Behavioral detection becomes the deciding control when attackers publish malicious updates faster than human review can keep up. That is especially true in ecosystems where thousands of downstream consumers inherit risk from one compromised maintainer identity.

Practical implication: Pair SBOM visibility with behavioural blocklists and rapid remediating controls.


Threat narrative

Attacker objective: The objective was to convert trusted package maintainer identities into a high-reach delivery channel for malware, credential theft, and transaction manipulation.

  1. Entry occurred through phishing emails that impersonated npm support and directed maintainers to fraudulent login pages.
  2. Credential access followed when attackers harvested maintainer credentials and locked the owners out of their accounts.
  3. Impact came from trojanized package releases and browser malware that stole secrets, hijacked transactions, and amplified compromise across billions of downloads.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Identity compromise is now the most efficient supply chain entry vector. These npm attacks did not require exotic exploit chains. They relied on phishing, account takeover, and trust in publishing workflows, which means the true control failure sits in identity governance rather than code review alone. When a maintainer account can publish to a package used billions of times a week, that identity functions like a privileged production credential. The practitioner conclusion is straightforward: publishing rights need the same scrutiny as any other high-risk access path.

Package compromise has become an NHI governance problem as much as a software problem. API tokens, CI secrets, build credentials, and maintainer sessions all behave like non-human identities when they can trigger downstream execution without user presence. The article’s pattern matches what NHI governance already warns about: trusted credentials with unclear lifecycle ownership become reusable attack infrastructure. The practitioner conclusion is that software supply chain controls must include identity inventory, credential lifecycle discipline, and strict publishing authorization.

Speed is now a control requirement, not a tuning preference. Veracode’s reported under-four-hour window shows that manual review and daily scan cycles are too slow for modern open-source compromise. Security teams need policy enforcement that can block known-bad packages and anomalous publishing behaviour in near real time. The practitioner conclusion is that detection without immediate prevention leaves the organisation exposed to the same blast radius.

Behavioural detection is the only reliable discriminator when trust signals are forged. Valid signatures, familiar names, and reputable maintainers were not enough to stop these packages from carrying malicious payloads. That means defenders must look for obfuscation, unusual API hooking, and abnormal publication patterns, then feed those signals into automated enforcement. The practitioner conclusion is to shift from static trust checks to runtime and behavioural controls.

Dependency governance is becoming a board-level resilience issue. These attacks reached developers, browsers, and end users through the same open-source trust path, which expands the impact well beyond the SDLC team. The named concept here is dependency identity risk: the failure mode where trusted publishing identities, not just packages, become the primary attack surface. The practitioner conclusion is to treat maintainer identity assurance and package integrity as one governance problem.

From our research:

What this signals

Dependency identity risk is now part of the software supply chain model. The article shows that a maintainer account can behave like a high-impact NHI if it can publish code, trigger CI, and propagate to thousands of downstream environments. That pushes security teams toward identity-centric dependency governance, especially where package publication rights and CI secrets overlap.

Open-source teams should expect more attacks that blend phishing, publishing abuse, and runtime payloads rather than single-stage package tampering. The right response is to connect package intelligence, account assurance, and enforcement controls so that a compromised identity cannot move from login to distribution unchecked.

For identity programmes, the key lesson is that access lifecycle discipline applies to developers and maintainers as much as to service accounts. Review who can publish, who can recover accounts, and which secrets are exposed if that identity is abused.


For practitioners

  • Harden maintainer authentication and recovery paths Require phishing-resistant MFA for package maintainers and remove weak recovery routes that let an attacker seize publishing access after credential theft. Focus on npm accounts with broad ecosystem reach and any identity that can publish code into production pipelines.
  • Block malicious package updates in minutes, not days Replace daily review cycles with automated policy enforcement that can quarantine newly confirmed malicious packages as soon as threat intelligence arrives. This matters most where a package has downstream reach into CI, browsers, or customer-facing applications.
  • Correlate dependency risk with CI secret exposure Map which build systems, developer environments, and release pipelines can expose environment variables, API keys, or other secrets if a package is compromised. Prioritise the paths where malicious package code could reach CI secrets first.
  • Add behavioural detection for package publishing anomalies Watch for unusual obfuscation, suspicious API hooking, and abnormal publishing velocity from maintainers whose accounts should not suddenly change behaviour. Feed those signals into blocklists and incident response playbooks that can stop propagation before the next release wave.

Key takeaways

  • Recent npm attacks show that maintainer identity compromise, not just vulnerable code, can drive large-scale supply chain exposure.
  • The evidence points to a narrow exploitation window and a massive downstream blast radius, which makes manual review too slow to be dependable.
  • Teams need identity hardening, behavioural detection, and rapid blocking to govern packages as trust-bearing assets rather than static artefacts.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKTA0001 , Initial Access; TA0006 , Credential Access; TA0009 , Collection; TA0011 , Command and Control; TA0040 , ImpactThe attack chain uses phishing, credential theft, browser abuse, and downstream impact.
NIST CSF 2.0PR.AC-1Maintainer access and publishing permissions are the central governance issue.
NIST SP 800-53 Rev 5IA-5Credential and token management is central to preventing maintainer compromise.
CIS Controls v8CIS-5 , Account ManagementMaintainer account takeover shows why account governance matters in supply chains.

Map package-takeover controls to these tactics and prioritise detection where maintainer identities publish to high-reach ecosystems.


Key terms

  • Dependency Identity Risk: The risk that a trusted software dependency becomes dangerous because the identity behind it is compromised. In supply chain attacks, the maintainer account, token, or publishing workflow can matter more than the package itself because it can distribute malicious code at scale.
  • Browser-based Malware: Malicious code that executes inside the browser context and intercepts user actions, wallet interfaces, or API calls. In package compromise scenarios, this turns a dependency into a runtime control point that can manipulate transactions and steal data from sessions already in use.
  • Behavioral Detection: A monitoring approach that looks for unusual activity rather than relying only on static inventories. For SaaS integrations, it detects drift in token use, data movement, timing, and endpoint behavior so teams can spot compromise, misuse, or automation that no longer matches its expected pattern.

What's in the full article

Veracode's full blog covers the operational detail this post intentionally leaves for the source:

  • Affected package list and version details for rapid exposure checking in build pipelines
  • Package Firewall and SCA workflows for blocking malicious updates in customer environments
  • Behavioural indicators used to distinguish trojanised packages from legitimate releases
  • Developer-facing remediation guidance for teams that need to respond at speed

👉 The full Veracode post covers the attack timeline, affected packages, and response guidance.

Deepen your knowledge

NHI Mgmt Group covers identity security, NHI governance, and agentic AI through independent research, practitioner guides, and the NHI Foundation Level course, the industry's only accredited NHI security programme. It is designed for teams that need to connect access governance with broader security operations.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org