Discord tokens are being targeted by malicious npm packages

(Image credit: Discord)

A large number of new malicious packages have been found in the npm repository, whose goal is to steal login credentials of Discord users (also known as Discord tokens). 

DevOps security firm JFRog found a total of 17 malicious packages and reported them to the repository’s managers. 

The researchers noted that the attack is simple to pull off and does not require extensive knowledge to be leveraged.

Discord attacks

"This type of attack has severe implications if executed well, and, in this case, public hack tools made such an attack easy enough for even a novice hacker to perform," said Shachar Menashe, senior director of JFrog security research. "We recommend organizations take precaution and manage their use of npm for software curation to reduce the risk of introducing malicious code into their applications."

The packages’ payloads come with all sorts of nasties, from infostealers to remote access backdoors. The attackers have used different strategies to distribute the malware, from typosquatting, to dependency confusion. 

Discord’s popularity is growing, and with more than 350 million registered users, it has become an important target for malicious actors looking to compromise endpoints and systems.

"Due to the popularity of this attack payload, there are quite a lot of Discord token grabbers posted with build instructions on GitHub. An attacker can take one of these templates and develop custom malware without extensive programming skills -- meaning any novice hacker can do this with ease in a matter of minutes," the blog post reads.

All have since been removed from the repository, “before they could rack up a large number of downloads”, the researchers said.

Npm’s popularity, its trustworthiness and ease of communication have also made it an important distribution vector for cyber-crooks. 

"The repository's server is a trusted resource, and communication with it does not raise the suspicion of any antivirus or firewall. In addition, the ease of installation via automation tools, such as the npm client, provides a ripe attack vector.”

Via: ZDNet

Sead is a seasoned freelance journalist based in Sarajevo, Bosnia and Herzegovina. He writes about IT (cloud, IoT, 5G, VPN) and cybersecurity (ransomware, data breaches, laws and regulations). In his career, spanning more than a decade, he’s written for numerous media outlets, including Al Jazeera Balkans. He’s also held several modules on content writing for Represent Communications.