corsair-navnpm
Advisory published Updated
corsair-nav is a confirmed malicious npm package (MAL-2026-20957) that opens a backdoor for remote access (malicious version 99.9.9). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in corsair-nav (npm)
What this malware does
[email protected] 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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Backdoor / remote accessFind it
Search your lockfiles and build artifacts for corsair-nav (version 99.9.9).
If you installed it — respond
corsair-nav establishes remote access, so treat any host that installed it as fully compromised. Isolate the machine, remove the package, rotate all credentials it could reach, and rebuild from a trusted image rather than cleaning in place — a backdoor may have planted additional persistence.
Did it already run?
If corsair-nav was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks corsair-nav-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the C2 callback and severs the channel.