Malicious code in @zettle-bo/shell (npm)
Summary
MAL-2023-8210: Malicious code in @zettle-bo/shell (npm). Affects @zettle-bo/shell versions 35.0.0. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The @zettle-bo/shell package is an npm package that provides shell functionality for Node.js applications. It allows developers to execute shell commands and interact with the command line from within their Node.js code. This package is widely used in various projects and provides a convenient way to perform system operations. However, it has been discovered that the package contains malicious code, which poses a significant security risk to any computer that has it installed or running.
Vulnerability Detail
The malicious code in @zettle-bo/shell has been identified as a serious security threat. Any computer that has this package installed or running should be considered fully compromised. The malicious code can give complete control of the computer to an outside entity, potentially leading to unauthorized access, data theft, and other malicious activities. As a result, all secrets and keys stored on the affected computer should be rotated immediately from a different computer. Simply removing the package may not be sufficient, as there is no guarantee that all malicious software resulting from its installation will be removed.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @zettle-bo/shell
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to follow the steps mentioned in the 'how_to_fix' section to mitigate the risk and ensure the security of the affected computer.
Conclusion
The presence of malicious code in the @zettle-bo/shell package poses a significant security risk to any computer that has it installed or running. It is crucial to take immediate action by rotating all secrets and keys, removing the package, and conducting a thorough security audit. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for @zettle-bo/shell →
FAQ
@zettle-bo/shell is an npm package that provides shell functionality for Node.js applications. It allows developers to execute shell commands and interact with the command line from within their Node.js code.
The malicious code in @zettle-bo/shell can give complete control of the computer to an outside entity. This can lead to unauthorized access, data theft, and other malicious activities.
If you have @zettle-bo/shell installed, it is crucial to take immediate action. Rotate all secrets and keys stored on the affected computer from a different, secure computer. Remove the @zettle-bo/shell package and perform a thorough security audit.
There is no guarantee that simply removing the @zettle-bo/shell package will remove all malicious software resulting from its installation. It is recommended to perform a thorough security audit to identify and remove any potential malicious software.
After removing the @zettle-bo/shell package, it is essential to update and patch all other software and packages on the affected computer. Additionally, performing a thorough security audit can help identify and address any potential security vulnerabilities.