Skip to main content
Menu
Advisories

Malicious code in @rutxploit-sec/subsplash-canny (npm)

GHSA-CW47-RFFG-XJ8XPublished Updated GitHubMalware

Description

Source: amazon-inspector (dc1ebadea2eb63a0fc7cf7446e36a589c5b87fc7d28e68b68145b98577107ebb)

npm package @rutxploit-sec/subsplash-canny declares a preinstall lifecycle script that runs node -e inline code reading os.hostname() and os.userInfo().username and issuing an HTTP GET to 127.0.0.1 with those values as query parameters, plus a package identifier. The package.json description and README self-describe the artifact as a dependency-confusion proof-of-concept impersonating the private scoped name @subsplash/canny. Installing this package on any machine automatically executes the beacon at install time and transmits the installer's hostname and OS username to the configured endpoint. The current destination is loopback (127.0.0.1:8099), which limits real-world reach in this specific tarball, but the mechanism — arbitrary code execution and identity collection on npm install — is fully wired and would function identically against any remote endpoint.

---

Credit: OpenSSF (source)

Affected versions

References