Malicious package · npm
Malicious code in nxxpi-session (npm)
1.17.12No safe version. Remove it.What it does
nxxpi-session is a copy of express-session whose session/cookie.js fetches hxxps://api[.]npoint[.]io/975bf804dbec2c578b87 with axios when the module loads (getCookie() is called at file end) and passes the response's 'cookie' field to eval(). In the OpenSSF sandbox the fetched second stage wrote and ran Python payloads (~/.npl, ~/.n2/bow, ~/.n2/pay) and connected to 144.172.106[.]7 on ports 1224 and 2248. That matches the BeaverTail / InvisibleFerret malware used in the Contagious Interview campaign, which steals credentials and browser and crypto-wallet data and gives the attacker remote access. Version 1.17.12, the only version, is affected. Hosts that required the package should be treated as compromised. Reported to npm on 2026-11-26 and replaced with a security holding package (0.0.1-security) on 2026-11-26.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
No fix · Remove and contain
npm uninstall nxxpi-sessionSources