Malicious npm package ‘fallguys’ removed from the official repository

The npm security team removed a malicious JavaScript library from the npm repository that was designed to steal sensitive files from the victims.

The npm security team has removed the JavaScript library “fallguys” from the npm portal because it was containing a malicious code used to steal sensitive files from an infected users’ browser and Discord application.

The fallguys library claimed to provide an interface to the “Fall Guys: Ultimate Knockout” game API. The package was available the repository for two weeks and was downloaded nearly 300 times.

“fallguys contained malicious code that attempted to read local sensitive files and exfiltrate information through a Discord webhook.” reads the npm’s advisory.

Every project that integrated the malicious library, upon execution will get the malicious code executed.

Experts noticed that the malicious package was designed to steal only specific sensitive information from the infected developers’ systems.

This malicious code would attempt to access the content of the following five local files and then post the data inside a Discord channel:

/AppData/Local/Google/Chrome/Userx20Data/Default/Localx20Storage/leveldb/AppData/Roaming/Operax20Software/Operax20Stable/Localx20Storage/leveldb/AppData/Local/Yandex/YandexBrowser/Userx20Data/Default/Localx20Storage/leveldb/AppData/Local/BraveSoftware/Brave-Browser/Userx20Data/Default/Localx20Storage/leveldb/AppData/Roaming/discord/Localx20Storage/leveldbThe first four files are LevelDB databases used common browsers like Chrome, Opera, Yandex Browser, and Brave. The files contain a user’s browsing history data.

The /AppData/Roaming/discord/Localx20Storage/leveldb file is a sort of LevelDB database for the Discord Windows client that is used to store information on the channels a user has joined.

Experts speculate the malicious package was used to gather information on developers using it, such as the sites they were accessing.

“Remove the package from your system and ensure any compromised credentials are rotated.” concludes the advisory.

window._mNHandle = window._mNHandle || {};
window._mNHandle.queue = window._mNHandle.queue || [];
medianet_versionId = “3121199”;

try {
window._mNHandle.queue.push(function () {
window._mNDetails.loadTag(“762221962”, “300×250”, “762221962”);
catch (error) {}

Pierluigi Paganini

(SecurityAffairs – hacking, npm)

The post Malicious npm package ‘fallguys’ removed from the official repository appeared first on Security Affairs.