Skip to main content
Menu
Advisories

Malicious code in monkey-tags-ip (npm)

GHSA-88VX-PPHM-QG2XPublished Updated GitHubMalware

Description

npm user 'conx3993' published this package in a dependency confusion campaign. It squats a name that looks like an internal package and uses version 53.4.1 so misconfigured resolvers pick it over the real one. Version 0.0.0-stage is an empty placeholder. A 'preinstall' hook runs 'ip.js', which poses as an IP geolocation helper. On install it sends an HTTPS GET to attacker-controlled host realwbx.com (/ip?f=json) with a hard-coded 'Authorization' value ('Bearer xHlT6gllTfGbKgdivAKTzWKxrILWlNlv') unique to this package, then discards the response. The token tells the operator which internal package name the victim installed, and the request reveals the victim's public egress IP.

---

Credit: OpenSSF (source)

Affected versions

References