Malicious package · npm
Malicious code in confusion-pkg (npm)
99.9.9No safe version. Remove it.What it does
confusion-pkg@99.9.9 is a dependency-confusion package with no functional code, published at version 99.9.9 so that it outranks a same-named private package. Its preinstall script runs node canary.js || true on npm install, which checks whether /flag.txt, /flag or /app/flag.txt exists and sends an HTTP GET to hxxp://65.108.241[.]149:8080/canary with the package name and a found=yes/no flag in the query string, telling the publisher's server that the package was installed and whether a flag file is present. The npm account blabla123124 published confusion-pkg and 2 sibling packages with the same script within four minutes on 2026-12-01.
The package declares a preinstall lifecycle hook that executes canary.js on npm install. That script checks for the presence of /flag.txt, /flag and /app/flag.txt, reads the contents of whichever exists, and issues an outbound HTTP request to the hardcoded bare IP endpoint http://65.108.241.149:8080/canary, carrying a package marker and the result of the filesystem probe as query parameters. The version string 99.9.9 is implausibly high for the name, a shape used to win dependency resolution against an internally named package. The behavior fires automatically at install time, without user invocation or consent, and sends installer-side filesystem state to an endpoint unrelated to any declared publisher or registry.
Reported by ghsa-malware 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 confusion-pkgSources