Security tools inspired by a recent case where a package maintainer became a scammer
The tools – npm-secure-install, package-checker, and npm_issues_statistic – are designed to address some of the trickiest security issues associated with using open source software packages.
Among other things, they validate whether package versions can be trusted, secure installations, and monitor applications for potentially troublesome components.
However, the convenience of using open source packages comes with some security trade-offs. Recent security incidents involving vulnerabilities in open source software have raised concerns about who should take responsibility for controlling and securing the code in these packages and how.
Development of the new JFrog NPM security tools was prompted by a recent incident in which a developer intentionally modified two NPM packages and rendered them useless, disrupting applications that depended on them.
“This incident has simply brought attention to the broader discussion taking place in the industry around software supply chain security in the modern world of software development,” said Ilya Khivrich, senior director of advanced technologies at JFrog Security Research. The daily sip.
Developers often blindly trust NPM packages, while in many cases developer tools extract code from them and embed it into applications without the developer’s knowledge. These applications will therefore inherit all the vulnerabilities contained in the packages.
JFrog’s new suite of security tools is intended to secure the supply chain with respect to NPM dependencies. Packet checker checks whether a specific version of an NPM package can be trusted. It looks for signs of packages used in supply chain attacks and can identify potential risks with recently released versions.
NPM-Secure-Installmeanwhile, is a package installer that enforces secure practices, such as disallowing global installation of packages unless they contain npm-shrinkwrap.json, a specification that ensures that all everyone gets the same version of all dependencies.
Learn about the latest DevSecOps news
And npm_issues_statistics monitors applications for problematic packages before they are flagged as having breaking changes in updated versions.
“Of the three tools, two can be used directly in the development lifecycle,” Khivrich said. “npm-secure-install can be directly used by developers as a replacement for npm-install, and package_checker can be used manually or automatically when the developer decides to override the dependency version in use.”
Npm_issues_statistics can also be used when upgrading dependencies, “but then only manually and not as part of an automated process,” Khivrich added.
JFrog plans to integrate these and similar features into its CLI tool to provide secure management of NPM repositories.
“Whether or not the tools are maintained as part of the JFrog CLI or in a standalone form, we plan to further improve the tools and expand the set of intuitive shortcuts that aid problem solving and probability judgments. “, Khivrich said.
YOU MIGHT ALSO LIKE SnapFuzz: New fuzzing tool speeds up network application testing