MAL-2026-10061

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cursed-ecto-d3ab00/MAL-2026-10061.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10061
Aliases
  • GHSA-9x5f-jcqq-j88c
Published
2026-07-09T15:54:19Z
Modified
2026-07-10T03:31:47.334824387Z
Summary
Malicious code in cursed-ecto-d3ab00 (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (49348969de68b56d680a46f67f817053621fa41a5220d8cd0bc1da720e77a5a1)

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 childprocess.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 ectomodule manifest named PWNED, attempting to register a malicious module on adjacent services reachable from the install environment. Behavior fires unconditionally on npm install.

Source: ghsa-malware (1a2387faa45841f316d0f93fca1e870585406c9c61abfc59049c8bd2c117cb30)

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "1.0.1"
            ],
            "id": "IN-MAL-2026-009278",
            "modified_time": "2026-07-09T15:54:19Z",
            "import_time": "2026-07-09T16:20:56.863145814Z",
            "sha256": "49348969de68b56d680a46f67f817053621fa41a5220d8cd0bc1da720e77a5a1",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "2.0.1"
            ],
            "id": "IN-MAL-2026-009279",
            "modified_time": "2026-07-09T15:54:26Z",
            "import_time": "2026-07-09T16:20:56.925212303Z",
            "sha256": "8b4c0c2a6e248fa594cf8df22a4d044dd1f7095ba8ce192696873dfd09e6988b",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "2.0.0"
            ],
            "id": "IN-MAL-2026-009280",
            "modified_time": "2026-07-09T15:54:34Z",
            "import_time": "2026-07-09T16:20:56.991348763Z",
            "sha256": "902284e51be8fd0017a0abe54daab11809653f3709fa641026ac865874934724",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.0.0"
            ],
            "id": "IN-MAL-2026-009281",
            "modified_time": "2026-07-09T15:54:43Z",
            "import_time": "2026-07-09T16:20:57.051783997Z",
            "sha256": "a14bae59a1f2886a17e3e4d3779514b06a895a224c1f196c9af83c81ebfd107c",
            "source": "amazon-inspector"
        },
        {
            "sha256": "1a2387faa45841f316d0f93fca1e870585406c9c61abfc59049c8bd2c117cb30",
            "id": "GHSA-9x5f-jcqq-j88c",
            "import_time": "2026-07-10T03:23:39.551027544Z",
            "modified_time": "2026-07-10T03:09:03Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / cursed-ecto-d3ab00

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0
1.0.1
2.*
2.0.0
2.0.1

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "cursed-ecto-d3ab00-1.0.1.tgz",
            "hashes": {
                "sha512_sri": "sha512-j5A04Jz1XWNV7OZ0eOotMvaWBMJ0LEPTkbXv/xdhihQlE1Jijg2ss57RRnSxCWGtfS3aE8o9cKvqfIWFUzSAMg==",
                "sha1": "2544da2da5eaf38124abf0166407a2a0e918aca2"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "623152f5fa70f2616e1c4438d46f4794dee3e0ab48f14c8d876b15920e946ed0c9a7e8",
            "sha256": "51712f740a0e4c1b58c739d2eaf394baebcddc363734cc8c23df7276b83673d8",
            "path": "preinstall.js"
        },
        {
            "sha256": "b5c849a94cd4fe2c3e5b65571ab97ef36fd6c1e216195b749990a7948d9002b0",
            "tlsh": "5d3152e5fa70f2616e1c4438d46f4798dee3e0ab48e14c8d876b15920e946ed0c9a7e8",
            "path": "install.js"
        },
        {
            "sha256": "fcf7e07f46bfe4ef9624fe1da2445b300606549a99acc80960a436679f5e6637",
            "tlsh": "f0d05e304c42df3378c40fd51423408966f2092b42086908a7c314299bdf26f84ef21f",
            "path": "package.json"
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cursed-ecto-d3ab00/MAL-2026-10061.json"