Malicious code in @ppa-web-components/ppa-searchform (npm)
Description
Source: amazon-inspector (c9b929e77e53b5f528d874024d0cf8cfe4a0e34845796964600b0e1511e6a49c)
The package ships a beacon.cjs that is wired to run both via the postinstall lifecycle script and from top-level index.js on require(). On execution it collects host identifiers (hostname, install path, current working directory, Node.js version) and POSTs them to a hardcoded bare-IPv4 endpoint over plaintext HTTP at 185.158.107.175/index.js exports a Proxy that returns no-op functions for every property access, so the module provides no real functionality — its only effect on install or import is the beacon callback. The combination of a non-functional shim under an organisation-shaped scope with a reconnaissance beacon fired at install and import time is the fingerprint of a dependency-confusion / namesquat probe that reports successful resolution and build inside a victim's environment.
---
Affected versions
- @ppa-web-components/ppa-searchform0.0.1
- @ppa-web-components/ppa-searchform2.0.1
- @ppa-web-components/ppa-searchform3.0.0
- @ppa-web-components/ppa-searchform99.0.1
- @ppa-web-components/ppa-searchform2.0.0
- @ppa-web-components/ppa-searchform1.0.1
- @ppa-web-components/ppa-searchform1.0.0
- @ppa-web-components/ppa-searchform1.1.0
References
GitHub · ossf/malicious-packages
npmjs.com
- package/@ppa-web-components/ppa-searchform/v/0.0.1
- package/@ppa-web-components/ppa-searchform/v/1.0.0
- package/@ppa-web-components/ppa-searchform/v/1.0.1
- package/@ppa-web-components/ppa-searchform/v/1.1.0
- package/@ppa-web-components/ppa-searchform/v/2.0.0
- package/@ppa-web-components/ppa-searchform/v/2.0.1
- package/@ppa-web-components/ppa-searchform/v/3.0.0
- package/@ppa-web-components/ppa-searchform/v/99.0.1
- package/@ppa-web-components/ppa-searchform