MAL-2026-5726

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ecto_module/MAL-2026-5726.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5726
Aliases
  • GHSA-qj3m-j6gv-53pg
Published
2026-06-13T03:08:41Z
Modified
2026-06-16T00:01:51.429865275Z
Summary
Malicious code in ecto_module (npm)
Details

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

Source: amazon-inspector (7e66c690abd94ee498cd359eb076451c0f6ea3956d8221616bbf8990d35a38c5)

On npm install, the package's preinstall hook (node index.js) reads /flag.txt (falling back to execSync('cat /flag*')) and transmits the captured contents in a JSON manifest field via HTTP PUT to a hardcoded endpoint at 127.0.0.1:3000/api/modules/ECT-987654. The package has no legitimate functionality — its description is simply 'Probe', it ships only index.js plus package.json, and the sole effect of installation is to read an installer-side file and ship it to whatever process is listening on the loopback port. This is a CTF/supply-chain probe payload: filesystem read + shell command execution + outbound HTTP, all auto-fired at install time.

Source: ghsa-malware (716a53c6e4c2c8319f2c08fc591f762c635e45684f35fb0c0f10e68bb95025ee)

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": [
                "100.0.0"
            ],
            "sha256": "581a4f4b080d517bbbebca62de5ce3f08b1bed05b57622132799f61b26389076",
            "source": "amazon-inspector",
            "modified_time": "2026-06-13T03:08:43Z",
            "import_time": "2026-06-13T03:48:11.074978244Z",
            "id": "IN-MAL-2026-006280"
        },
        {
            "versions": [
                "100.0.0"
            ],
            "sha256": "7e66c690abd94ee498cd359eb076451c0f6ea3956d8221616bbf8990d35a38c5",
            "source": "amazon-inspector",
            "modified_time": "2026-06-13T03:08:41Z",
            "import_time": "2026-06-13T03:48:11.028909448Z",
            "id": "IN-MAL-2026-006279"
        },
        {
            "sha256": "716a53c6e4c2c8319f2c08fc591f762c635e45684f35fb0c0f10e68bb95025ee",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware",
            "modified_time": "2026-06-15T23:34:02Z",
            "import_time": "2026-06-15T23:52:17.805963363Z",
            "id": "GHSA-qj3m-j6gv-53pg"
        }
    ]
}
References
Credits

Affected packages

npm / ecto_module

Package

Affected ranges

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

Affected versions

100.*
100.0.0

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "ecto_module-100.0.0.tgz",
            "hashes": {
                "sha512_sri": "sha512-X4ThX1nrlhnSakPTGFAGYNYVpcwd1xTeQj77PCBmthr7OERGS5Mq7VyOMKa1Hj5+NoNhii0isQw5qA5yethKkw==",
                "sha1": "647e34df162765587c5a4bd3e98d925eb4c20b0c"
            }
        }
    ],
    "evidence_files": [
        {
            "sha256": "001092e3718a5ec5cfb6a38d0d3c80b674ba1ec64494adda5ffe461067596155",
            "path": "index.js",
            "tlsh": "080115d24bf063b84ae2d15cdc774121d123d0197c035ce061c401937fa6e1846e39e4"
        }
    ],
    "ips": [
        "104.16.4.34",
        "10.1.0.2"
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ecto_module/MAL-2026-5726.json"
cwes
[
    {
        "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"
    }
]