NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

ecto-corsair-flag-7kq3mznpm

Advisory published Updated

ecto-corsair-flag-7kq3mz is a confirmed malicious npm package (MAL-2026-6699) that steals credentials and exfiltrates sensitive data (malicious versions 1.0.0, 1.0.1, 1.0.2). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in ecto-corsair-flag-7kq3mz (npm)

MAL-2026-6699
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall ecto-corsair-flag-7kq3mz

What this malware does

Package wires preinstall, install, and postinstall lifecycle hooks to run postinstall.js, which executes unconditionally on npm install. The script collects hostname, cwd, uid, and environment variables matching FLAG/CTF/NPM/REGISTRY/CI/GITHUB/RUNNER, reads candidate flag files, and uses child_process.execSync to recursively grep installer-side directories (/app, /workspace, /challenge, /home/runner/work/repo/repo,.,..,../..) for flag-shaped strings. The collected manifest is base64-encoded and PUT to http://154.57.164.76:30728/api/modules/<id>, with an additional GET beacon to webhook.site/755defab-ea42-4c1f-9804-43ec567439f5. postinstall.js also tests npm_config_registry against /verdaccio/i to detect successful dependency-confusion landings, and the shipped publish-and-arm.sh and README self-describe the package as an 'armed' dependency-confusion probe. Regardless of the CTF/probe framing, installing this package causes unconsented exfiltration of installer environment and filesystem contents to an attacker-controlled IP.

Malicious versions

3 flagged
1.0.01.0.11.0.2

Indicators of compromise (SHA-256)

2a4dfa9f4805e5b44c7ccf3e4c3859abf8e9f0388f11e3daf6065f43c49e09ed
54d9460656276821368471252c6a7b1c42dc2fdfd89432aa796d71d5463a1fc7
b18aadaf5087b19b63d12456642141e5bfff9146bf1bf4fcfb11eed833b8c78c

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for ecto-corsair-flag-7kq3mz (3 malicious versions).

  2. If you installed it — respond

    ecto-corsair-flag-7kq3mz is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If ecto-corsair-flag-7kq3mz 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

No. ecto-corsair-flag-7kq3mz on npm has been identified as a malicious package (versions 1.0.0, 1.0.1, 1.0.2 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-007821IN-MAL-2026-007822IN-MAL-2026-007823

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks ecto-corsair-flag-7kq3mz-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

ecto-corsair-flag-7kq3mz (npm) malicious package — MAL-2026-6699 | O3 Security