MAL-2026-20957: Malicious code in corsair-nav (npm)
corsair-nav@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 corsair-nav and 2 sibling packages with the same script within four minutes on 2026-12-01.
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (85f16c472919a4698db6cc1d442a519c56df59714efd8c816a6484261527eb5b) corsair-nav@99.9.9 declares a preinstall lifecycle script that runs canary.js on npm install. The script checks for specific filesystem paths (/flag.txt, /flag, /app/flag.txt) using fs.existsSync/fs.readFileSync and then issues an http.request to http://65.108.241.149:8080/canary with the probe outcome and a package marker as query data. The destination is a hardcoded bare IP reached over plain HTTP, unrelated to any registry or declared publisher infrastructure, and the transmission is unconditional and not caller-configurable. index.js is an empty stub, so the install-time filesystem probe and outbound beacon are the package's entire behavior. The result is unconsented host reconnaissance: installing the package confirms host reachability, file presence, and file contents to the operator of that endpoint. The implausibly high version number (99.9.9) is consistent with a resolution-winning placeholder rather than a real release line.
Affected Software
Event History
Frequently Asked Questions
What conditions are required for the package's behavior to run?
The behavior runs during npm installation because corsair-nav@99.9.9 declares a preinstall lifecycle script. No application import or runtime use is required.
What information could be sent from an affected host?
The script checks for /flag.txt, /flag, and /app/flag.txt, then sends the probe outcome and a package marker to a hardcoded IP address over plain HTTP. The description states that file contents may also be confirmed to the endpoint operator.
Can this be disabled through package configuration?
No caller-configurable control is described. The outbound transmission is described as unconditional.
How can I determine whether an environment is affected?
Check dependency and lockfiles for corsair-nav version 99.9.9, including transitive dependencies. Review npm install activity and outbound HTTP requests to 65.108.241.149:8080/canary from systems where that version was installed.