Breach Tracker
BT-2026-0001

npm chalk and debug packages hijacked via maintainer phishing

A phished maintainer login was used to push crypto-stealing code into 18 popular JavaScript packages (~2.6B weekly downloads). Bad versions were pulled within hours.

Confirmed
Critical
Supply-chain compromise
Resolved
Disclosed
September 7, 2025
Last reviewed
October 31, 2026
npm chalk and debug packages hijacked via maintainer phishing
Impact

18 packages exposed for a few hours; under $50 in crypto stolen

Records exposed
50
Reported loss
Crypto wallet transactions (payment destinations rewritten)
Data exposed
Credentials or secrets exposed
Financial data exposed
Plain English

What happened, in plain words

What happened

Attackers tricked the volunteer who maintains a set of tiny but extremely common coding building blocks into logging in on a fake npm site. They used his account to publish versions that quietly swap crypto wallet addresses when someone sends a payment from a website built with those packages.

Like tampering with a common ingredient at the factory: every bakery that restocked that afternoon baked it into their bread.

Why it matters

One phished login reached code that ships inside thousands of apps. The attackers chose a narrow crypto scam; a stealthier payload could have stolen secrets from far more companies.

Am I affected?

Developers and companies who installed or updated JavaScript dependencies on September 8 to 9, 2025, and shipped a web front end from that build. End users were only at risk if they sent crypto through an affected site during that window.

What to do now

If you run a business: check lockfiles for the affected versions, rebuild and redeploy any web bundle produced September 8 to 9, 2025, and pin known-good versions.

If you are an individual: double-check the full wallet address before confirming any crypto send.

Technical deep dive

For engineers and security teams

A lookalike domain (npmjs[.]help) sent a fake mandatory 2FA update email. The fake login captured the maintainer's password and TOTP code. Malicious versions carried an obfuscated browser-side clipper that hooked fetch, XMLHttpRequest, and wallet APIs to replace recipient addresses with similar-looking attacker addresses.

Attack chain

Initial Access

Spearphishing link to a credential-harvesting page on a lookalike domain registered days earlier.

Execution

Malicious package versions published to npm; code runs in the browser of any site that bundled them.

Impact

Crypto payment destinations rewritten for Ethereum, Bitcoin, Solana, Tron, Litecoin, and Bitcoin Cash.

MITRE ATT&CK
T1566.002, T1195.002
CVE IDs
Affected versions and assets
chalk 5.6.1, debug 4.4.2, ansi-styles 6.2.2, supports-color 9.5.1, strip-ansi 7.2.1, plus 13 more (full list in IOCs)

Indicators of compromise

Defanged so nothing is clickable. Copy one indicator per line into your tools.

  • npmjs[.]help: lookalike phishing domain
  • ansi-regex@6.1.1
  • ansi-styles@6.2.2
  • backslash@0.1.1
  • chalk-template@0.5.1
  • chalk@5.6.1
  • color-convert@2.1.1
  • color-name@1.2.1
  • color-string@1.10.2
  • debug@4.4.2
  • error-ex@1.4.1
  • has-ansi@3.1.1
  • is-arrayish@0.4.1
  • simple-swizzle@0.2.3
  • slice-ansi@5.1.1
  • strip-ansi@7.2.1
  • supports-color@9.5.1
  • supports-hyperlinks@3.1.1
  • wrap-ansi@8.1.1
  • wrap-ansi@9.0.1

All package versions above are malicious releases published September 8, 2025.

Detection and remediation

Detect: search lockfiles for the affected versions and scan bundles for the obfuscation marker published by researchers. Run npm audit with current advisories.

Fix: pin known-good versions with overrides, clear caches, reinstall, rebuild and redeploy front ends from the window.

Prevention

What would have stopped it

Who was involved

Companies, tools and attackers

Affected companies
Affected AI tools
No items found.
Where it started
Threat actor
Timeline

How it unfolded

  • Sep 4, 2025: Lookalike phishing domain registered
  • Sep 8, 2025: Fake 2FA-update email captures the maintainer's password and one-time code
  • Sep 8, 2025: Malicious versions of 18 packages published; researchers flag them within hours
  • Sep 8, 2025: npm begins removing the malicious versions
  • Sep 9, 2025: Most malicious versions removed; advisories and audit data updated

Company response

The maintainer disclosed the compromise publicly the same day and worked with npm and researchers to remove the versions.

FAQ

Questions people ask

Was my data exposed?

No personal data was taken. The code only tried to redirect crypto payments made through affected websites during a few hours on September 8 to 9, 2025.

Is it safe to use chalk and debug now?

Yes. The malicious versions were removed. Pin to known-good versions and rebuild anything made during the window.

How do I protect my projects from this kind of attack?

Pin dependency versions, wait a few days before adopting new releases, and require phishing-resistant MFA for anyone who can publish your packages.

Sources and verification
Confidence notes

Add the maintainer statement and the GitHub security advisories as sources before publishing. Loss figure is from researcher reporting.

Every entry needs a primary source before it is published. Badges change when new facts confirm, dispute or debunk a report, and the page stays up as the corrected record.

Related incidents

Same campaign, actor or cause

No items found.
Guides

Guides that cover this attack

No items found.