Paul Krill
Editor at Large

WhiteSource report warns of NPM registry risks

news
Feb 10, 20222 mins

Provider of open source vulnerability scanning software finds malicious packages on widely used JavaScript package registry.

Skull and crossbones emerge from a stream of digital cubes / malicious code / hacking / threat
Credit: Gonin / Getty Images

The popular NPM registry of JavaScript packages was described as a playground for malicious actors by software scanning services provider WhiteSource Software, which has published a report of its vulnerability analysis of the registry.

The WhiteSource research report, released Februay 2, was based on data culled using the WhiteSource Diffend malware detection platform. WhiteSource said it has reported more than 1,300 malicious packages to NPM in the past six months. Malware subsequently removed by NPM was found to be stealing both credentials and cryptocurrency and running botnets, said WhiteSource. The company said that nearly 14% of the malicious packages detected were designed to steal sensitive information such as credentials present in environment variables. While attackers using malicious packages often do not target particular companies or entities, some packages were designed to target certain systems.

Note that NPM does contain nearly two million packages, so 1,300 malicious packages amount to significantly less than one percent. WhiteSource described NPM as the most widely used package manager of any language, with the number of packages in the registry having grown from 1.3 million in April 2020 to more than 1.8 million today. Some 32,000 new packages were published monthly in 2021, according to WhiteSource.

The NPM registry has had some noteworthy issues pertaining to dependencies. In January, malicious code was committed to the Faker and Colors libraries, impacting thousands of projects. GitHub, which oversees NPM, removed the packages and suspended the user account. And in 2016, the unpublishing of a small JavaScript package broke multiple dependencies.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author