Security advisories

NPM Library Supply Chain Attack

October 26, 2021 | 1 MIN READ

Speak With A Security Expert Now

TALK TO AN EXPERT

THE THREAT

On October 22, 2021, unidentified threat actors compromised the UA-Parser-JS NPM library and used the library to distribute malware to victims. UAParser.js is a JavaScript Library used by websites to detect the Browser, Rendering Engine, OS, CPU, and Device type/model from User-Agent data of visitors; it has a user-base of over seven million.

Three malicious packages (0.7.29, 0.8.0, 1.0.0) were published and made available for download on the UA-Parser site. Installation of these packages results in the deployment of the XMRig cryptocurrency miner and a password-stealing trojan.

eSentire has detected intrusions related to this supply chain attack. Impacted organizations are recommended to update to the most recent UA-Parser versions as soon as possible. Malicious versions have since been removed from the UA-Parser library.

What we’re doing about it

What you should do about it

Additional information

The supply chain attack occurred after a threat actor was able to compromise a UA-Parser developer account. The account was used to publish the three malicious versions of UA-Parser. Information relating to the initial compromise is not publicly available at this time.

It should be noted that Windows and Linux Operating Systems are impacted. It is unlikely that MacOS was impacted in this attack.

eSentire has observed the distribution of malicious content via the supply-chain attack against UA-Parser users. Incidents have been observed impacting organizations in the technology, financial, and government sectors. This threat is believed to be opportunistic, rather than targeting specific industries, sectors, or organizations. eSentire continues to track this campaign for additional details and detection opportunities.

References:

[1] https://us-cert.cisa.gov/ncas/current-activity/2021/10/22/malware-discovered-popular-npm-package-ua-parser-js
[2] https://www.npmjs.com/package/ua-parser-js

View Most Recent Advisories