MAL-2026-6699 Malicious code in ecto-corsair-flag-7kq3mz (npm)
Malicious package
Published
MAL-2026-6699 is a malicious package: ecto-corsair-flag-7kq3mz (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-6699/ (Markdown: https://insights.sbomify.com/MAL-2026-6699/index.md)
- Package
- ecto-corsair-flag-7kq3mz
- Registry
- npm
What is MAL-2026-6699?
MAL-2026-6699 is a malicious package in ecto-corsair-flag-7kq3mz, published on 30 Jun 2026.
Official description
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.
What should I do about MAL-2026-6699?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.