# MAL-2026-10061: Malicious code in cursed-ecto-d3ab00 (npm)


- **Type:** Malicious package
- **Package:** `cursed-ecto-d3ab00` (npm)
- **Published:** 9 Jul 2026
- **Also known as:** GHSA-9x5f-jcqq-j88c

## What is MAL-2026-10061?

MAL-2026-10061 is a malicious package in cursed-ecto-d3ab00, published on 9 Jul 2026. 

### Official description

The package has no legitimate functionality (index.js is an empty module) and exists solely to run an install-time attack payload. All four lifecycle hooks (preinstall.js, install.js, postinstall.js, prepare.js) execute the same shell command via child_process.execSync that recursively scans host filesystem paths (/app, /opt, /root, /home, /srv, /data, /var, /etc, /tmp, /flag*, /) for HTB{...} flag patterns, enumerates flag-named files with their contents, captures env, hostname, id, and pwd, base64-encodes the collected data, and exfiltrates it via HTTPS GET to a hardcoded Cloudflare quick-tunnel endpoint at forward-amber-prairie-ruled.trycloudflare.com. In addition, each lifecycle script fans out HTTP PUT requests to internal hostnames and loopback ports (127.0.0.1:3000/8080/80/5000/4000 and hostnames app, web, frontend, console, ecto, registry, backend, nginx) targeting path /api/modules/ECT-839201 with a crafted ecto_module manifest named PWNED, attempting to register a malicious module on adjacent services reachable from the install environment. Behavior fires unconditionally on npm install.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

## What should I do about MAL-2026-10061?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-10061 is a malicious package: cursed-ecto-d3ab00 (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-10061/ (Markdown: https://insights.sbomify.com/MAL-2026-10061/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-10061

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-10061/
Summaries are generated and may contain mistakes; the official description above is the record.
