MAL-2026-5687

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ecto-flag-read-m7p2/MAL-2026-5687.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5687
Aliases
  • GHSA-ggf2-rhq7-qqgg
Published
2026-06-12T14:32:51Z
Modified
2026-07-09T22:17:01Z
Summary
Malicious code in ecto-flag-read-m7p2 (npm)
Details

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

Source: amazon-inspector (8fb2ef2851c6365e6198a67c4d395a1f3e7ca634559651063ce2e3b68a610cd3)

The package's postinstall.js imports child_process and references HTTP GET calls and hostname lookups during the install lifecycle. The co-occurrence of these primitives in an install-time script is a known shape for both legitimate behavior (CTF/flag-read demos, hostname reporting, telemetry) and exfiltration/dropper attacks, but the available evidence does not show the destination URL, the data being sent, or whether fetched content is executed. The package name ("ecto-flag-read") and small file count are consistent with a CTF or test artifact rather than a recognized library, but intent cannot be confirmed from the current evidence alone. A human reviewer should inspect postinstall.js to determine whether it exfiltrates installer data or executes remote content before this version is allowed in production installs.

Source: ghsa-malware (47c876fa0bc683b97fe06619068fb4b205e5813e95917d8cd6d9df7a732b1499)

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": [
        {
            "id": "GHSA-ggf2-rhq7-qqgg",
            "import_time": "2026-06-12T15:23:25.130477063Z",
            "modified_time": "2026-06-12T14:32:52Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "47c876fa0bc683b97fe06619068fb4b205e5813e95917d8cd6d9df7a732b1499",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-009454",
            "import_time": "2026-07-09T22:02:33.121022959Z",
            "modified_time": "2026-07-09T21:58:11Z",
            "sha256": "8fb2ef2851c6365e6198a67c4d395a1f3e7ca634559651063ce2e3b68a610cd3",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / ecto-flag-read-m7p2

Package

Name
ecto-flag-read-m7p2
View open source insights on deps.dev
Purl
pkg:npm/ecto-flag-read-m7p2

Affected ranges

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

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "postinstall.js",
            "sha256": "c9e72a640329d2608f5de319e3856e0e54c2f93b6d49c6b1836e46462cf96c3d",
            "tlsh": "c26152e491faa43057e365ad1967b14af67bd893314ed8e0fb4c01663f8d4ac01b348d"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ecto-flag-read-m7p2/MAL-2026-5687.json"