Malicious code in @ppa-web-components/ppa-hotel-collection (npm)
Description
Source: amazon-inspector (e442008a433c1edbe8fb25f9b47dd3123f5664672c3901167fc9d3add8a6bd6e)
@ppa-web-components/ppa-hotel-collection@1.1.0 is a stub package whose only functional code is a callback beacon. The package.json declares scripts.postinstall: "node beacon.cjs", and the same beacon.cjs is also triggered via the main entry on require(). beacon.cjs collects os.hostname(), __dirname, process.cwd(), and process.version/npm version and POSTs them to the hardcoded bare-IP URL 185.158.107.175/
---
Affected versions
References
GitHub · ossf/malicious-packages
npmjs.com
- package/@ppa-web-components/ppa-hotel-collection/v/1.0.0
- package/@ppa-web-components/ppa-hotel-collection/v/1.1.0
- package/@ppa-web-components/ppa-hotel-collection/v/2.0.1
- package/@ppa-web-components/ppa-hotel-collection/v/3.0.0
- package/@ppa-web-components/ppa-hotel-collection/v/99.0.1
- package/@ppa-web-components/ppa-hotel-collection