Malicious code in confusion-pkg (npm)
- GHSA-84cf-3xfp-qqpf
Description
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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/9a14e23a0b57b1c151fa047a30bea4f9a06a9901/osv/malicious/npm/confusion-pkg/MAL-2026-20956.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
confusion-pkgnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.