SafeDep reported that attackers published a malicious npm package, react-refresh-update, designed to impersonate the widely trusted react-refresh library used across the JavaScript ecosystem. By mimicking a dependency associated with Meta and benefiting from the credibility of a package with roughly 42 million weekly downloads, the campaign appears aimed at deceiving developers into installing a lookalike package on their workstations.
The package reportedly modified runtime.js to inject a two-layer obfuscated dropper that then deployed a cross-platform trojan on developer machines. The incident underscores an open-source software supply chain attack in the npm ecosystem, using package impersonation or typosquatting tactics to steal trust and gain execution inside development environments.

Trace attribution and downstream blast radius.
2 events from the most recent confirmed update back to the earliest known activity.
SafeDep reported that the malicious package injects a two-layer obfuscated dropper into runtime.js and deploys a cross-platform trojan. The use of the trusted react-refresh name, which has about 42 million weekly downloads, likely increased the package's credibility as a lure.
SafeDep identified an npm package named react-refresh-update that impersonates Meta's legitimate react-refresh library. The package was described as a software supply chain threat targeting developer machines through package impersonation or typosquatting.
Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.
Indicator values are masked on this page. View all 12 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.
See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
3 references tracked. Mallory keeps watching after this page renders.
safedep.io
Open sourcesafedep.io
Open sourcegithub.com
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.