Bug in NPM Empowers Hackers to Transmit Malware

  • By Patrick Ryan
  • Apr 28, 2022

Hackers are exploiting an NPM bug to send malware that appears to be harmless packages. The bug in question is referred to as a “logical flaw” by those in the digital security community. NPM is used as the default package management tool for JavaScript’s Node.js runtime environment.  

Why is the NPM Bug a Major Problem?

The bug in question empowers malevolent individuals to make it appear as though certain libraries are harmless when they are actually rogue libraries that can lead to installation and subsequent harm. In particular, inexperienced developers who don’t suspect libraries will pose a latent threat are especially likely to be fooled by the NPM bug.

Who Initially Disclosed the NPM Bug?

Digital security researchers working at Aqua, a cloud security firm, revealed the NPM bug. The bug was disclosed to the public on February 10. Aqua’s digital security gurus have named the bug “package planting” as it poses a serious supply chain threat.  

What Has NPM Done in Response to the Bug Disclosure?

NPM proactively remediated the bug in question in late April. However, up until this week, the bug posed a significant threat. It is possible that the bug compromised several systems, yet those victims might not know that their systems have been breached until problems pop up down the line.  

Why is the Digital Security Community Critical of NPM?

It must be noted that NPM allowed for the unrestrained addition of individuals as maintainers of the package without any sort of consent or notification. The details of this careless approach to authorization for maintaining packages were detailed in a recent report written by Yakir Kadkoda, a digital security professional with Aqua.

Kadkoda made it clear that NPM’s openness to permitting anyone to act as a package maintainer was a negligent oversight. In plain terms, NPM’s lack of foresight on this issue allowed adversaries to generate packages with malware and assign them to maintainers without notifying those parties.

Hackers took advantage of the flaw to expedite and facilitate the addition of legitimate owners tied to other NPM libraries that became popular. The digital miscreants then poisoned packages controlled by the hacking community. This honey pot strategy drew the attention of unsuspecting developers, who proceeded to download the poisoned package. In the end, the flawed supply chain created an unjustified rapport between developers and set the stage for damaging the reputations of package maintainers who were otherwise legitimate.

Are There any Other Flaws of Note in the NPM Platform?

Indeed, several additional weaknesses within the NPM platform are worth mentioning. Aqua’s digital security researchers also identified flaws tied to 2FA, short for two-factor authentication. These flaws allow for abuse that permits the illegitimate takeover of accounts for the publishing of harmful packages. In short, the vulnerability empowers NPM users to take over accounts without any sort of clearance or authorization to do so.
 

About the Author
IDStrong Logo

Related Articles

Instagram Vulnerability Allowed Hackers Access to Control Your Phone

Security experts Check Point Research discovered a critical vulnerability while examining Instagra ... Read More

Alien Malware Infects More than 226 Mobile Apps and Steals Bank Data

As reported on September 24, 2020, by ZDNet and ThreatPost, a new strain of malware named “Alien ... Read More

Universal Health Systems Hit by Ransomware Attack

Universal Health Systems (UHS), a Fortune 500 company owning more than 400 hospitals across the co ... Read More

Exchange Server Bug Exposes a Big Risk to Hackers

Months after Microsoft released a patch to fix a serious flaw in MS Exchange Server, more than 61% ... Read More

Clients’ Bank Data Exposed in Blackbaud Ransomware Attack

Blackbaud software was victim to a ransomware attack last May, and new information suggests that c ... Read More

Latest Articles

Flagstar Bank Breach Impacts More Than a Million Customers

Flagstar Bank Breach Impacts More Than a Million Customers

Flagstar Bank is in the news for the wrong reason. The bank recently publicized the fact that it discovered a digital breach.

Weekly Recap June 24 2022

Weekly Recap June 24 2022

We are nearly halfway through 2022. News stories detailing hacks and other digital breaches continue to roll in on a daily basis.

Cybercrime Related to Travel Soars at the Year’s Halfway Point

Cybercrime Related to Travel Soars at the Year’s Halfway Point

There has been a significant spike in tourism following the gradual decline of the coronavirus pandemic.  The increase in travel has caught the attention of digital miscreants looking to scam tourists as well as travel services providers.

Featured Articles

How to Buy a House with Bad Credit

How to Buy a House with Bad Credit

Buying your own home is the American Dream, but it might seem out of reach to those with bad credit. However, the good news is, if your credit is less than perfect, you do still have options and in most cases, can still buy a home.

How Secure Is Your Password? Tips to Improve Your Password Security

How Secure Is Your Password? Tips to Improve Your Password Security

Any good IT article on computers and network security will address the importance of strong, secure passwords. However, the challenge of good passwords is that most people have a hard time remembering them, so they use simple or obvious ones that pose a security risk.

Top 10 Senior Scams and How to Prevent Them

Top 10 Senior Scams and How to Prevent Them

Senior scams are becoming a major epidemic for two reasons. First, seniors often have a lot of money in the bank from a life of working hard and saving.