technology | May 31, 2026

17 malicious npm packages stole Discord tokens

Researchers found 17 more malicious packages in the npm repository, which stole credentials, tokens, other information about Discord servers and more. Tokens act as authentication cookies and allow receiving access to someone else’s Discord account.

JFrog specialists reported about the problem. They write that the payloads of malicious packages varied: from info-stealers to backdoors with full remote access. That is, it is assumed that the packages were created and distributed by different attackers.

JFrog reports that the following packages had malicious functionality:

PackageVersionPayloadInfection method
prerequests-xcode1.0.4Remote Access Trojan (RAT)Unknown
discord-selfbot-v1412.0.3Discord token thiefTypesquatting / Trojan
discord-lofy11.5.1Discord token thiefTypesquatting / Trojan
discordsystem11.5.1Discord token thiefTypesquatting / Trojan
discord-vilao1.0.0Discord token thiefTypesquatting / Trojan
fix-error1.0.0PirateStealer (Discord malware)Trojan
wafer-bind1.1.2Environment Variable ThiefTypesquatting
wafer-autocomplete1.25.0Environment Variable ThiefTypesquatting
wafer-beacon1.3.3Environment Variable ThiefTypesquatting
wafer-caas1.14.20Environment Variable ThiefTypesquatting
wafer-toggle1.15.4Environment Variable ThiefTypesquatting
wafer-geolocation1.2.10Environment Variable ThiefTypesquatting
wafer-image1.2.2Environment Variable ThiefTypesquatting
wafer-form1.30.1Environment Variable ThiefTypesquatting (wafer- *)
wafer-lightbox1.5.4Environment Variable ThiefTypesquatting (wafer- *)
octavius-public1.836.609Environment Variable ThiefTypesquatting (octavius)
mrg-message-broker9998.987.376Environment Variable ThiefConfusion of dependencies

The aforementioned Discord token theft allowed attackers to use the platform as a hidden channel to steal data, distribute malware to other Discord users, and even sell Discord Nitro premium accounts to third parties who could then use them in their campaigns.

It is also emphasized that the prerequests-xcode package was especially dangerous and functioned as a full-fledged remote access Trojan, representing a port of DiscordRAT malware on Node.JS. It had the functionality to capture screenshots, collect data from the clipboard, execute arbitrary VBScript and PowerShell code, steal passwords, and download malicious files.

Let me remind you that we wrote that the PyPI repository got rid of 11 packages that were stealing Discord tokens and passwords.