ecto-corsair-flag-7kq3mz (npm) · Malicious Code
Affects ecto-corsair-flag-7kq3mzSource GCVE Database
Malicious package : remove ecto-corsair-flag-7kq3mz and rotate any secrets on hosts that installed it.
Data as of 30 Jun 2026, 23:39 UTC
Malicious package
Published to npm · OSV MAL-2026-6699
What to do
Remove ecto-corsair-flag-7kq3mz from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmecto-corsair-flag-7kq3mz | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package ecto-corsair-flag-7kq3mz (versions 1.0.0, 1.0.1, and 1.0.2) contains malicious code that executes during installation. Its postinstall.js script collects sensitive environment information and searches the filesystem for flag-like strings, then exfiltrates this data to an attacker-controlled server. The package also attempts to detect successful dependency confusion attacks. Installing this package results in unauthorized data exfiltration.