MAL-2026-15625

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/evilpostinstall/MAL-2026-15625.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-15625
Published
2026-08-31T15:40:53Z
Modified
2026-09-02T04:30:05.716692783Z
Summary
Malicious code in evilpostinstall (npm)
Details

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

Source: amazon-inspector (846e500b06f58769a2cb833be8e726ab1db04b327f4c614da6642eb46ae7dfe5)

The package's postinstall lifecycle hook pipes the output of env through nc to a host reconstructed at install time from the package version string via cut -b 2-4 and cut -b 5-. For version 4127000.0.1 the destination decodes to 127.0.0.1:888; the sibling artifact evilpostinstall-192.168.1.100.tgz uses the same slicing scheme to target 192.168.1.100. On npm install, the full installer environment - including any CI secrets, tokens, and API keys present in environment variables - is transmitted to the reconstructed host over TCP port 888. package.json also declares a self-referencing dependency evilpostinstall: ^4192168.1.100, whose version field encodes a second destination IP under the same scheme, causing npm to resolve and install an additional package instance whose own postinstall repeats the exfiltration against that address. The destination is deliberately hidden from static scanners by being reconstructed from the version field rather than written as an IP literal, and no source files are shipped - the manifest itself is the payload.

Source: ossf-package-analysis (c4f0004a363677a7dc0429c4cf4bacafcd3bbdab0c95e1e7851d44b543d7e486)

The OpenSSF Package Analysis project identified 'evilpostinstall' @ 4127000.0.1 (npm) as malicious.

It is considered malicious because:

  • The package executes one or more commands associated with malicious behavior.
Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-08-31T18:22:29.642257236Z",
            "id": "IN-MAL-2026-019308",
            "versions": [
                "49.13.4074225"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-31T18:02:58Z",
            "sha256": "64ca497d518a333a571b7f978e9ce5a5f4a87649d462eb16480a258aa33b15c2"
        },
        {
            "import_time": "2026-08-31T18:22:29.150046979Z",
            "source": "amazon-inspector",
            "versions": [
                "4127000.0.1"
            ],
            "id": "IN-MAL-2026-019296",
            "modified_time": "2026-08-31T18:01:10Z",
            "sha256": "846e500b06f58769a2cb833be8e726ab1db04b327f4c614da6642eb46ae7dfe5"
        },
        {
            "import_time": "2026-09-01T00:57:09.116943582Z",
            "source": "ossf-package-analysis",
            "versions": [
                "0.2.0"
            ],
            "modified_time": "2026-08-31T18:05:48Z",
            "sha256": "29ef31366374537cb5c06da575916f1a0a0494e63df3ce4ea9d06a685f4f3bb1"
        },
        {
            "import_time": "2026-09-01T00:57:09.187843174Z",
            "source": "ossf-package-analysis",
            "versions": [
                "0.6.0"
            ],
            "modified_time": "2026-08-31T18:25:54Z",
            "sha256": "63c1e371381b8007f9f6c3347d20061d0d2e4d391ad366c6478c153056f49e32"
        },
        {
            "import_time": "2026-09-01T00:57:09.042147024Z",
            "source": "ossf-package-analysis",
            "versions": [
                "4127000.0.1"
            ],
            "modified_time": "2026-08-31T15:40:53Z",
            "sha256": "c4f0004a363677a7dc0429c4cf4bacafcd3bbdab0c95e1e7851d44b543d7e486"
        },
        {
            "import_time": "2026-09-02T02:44:33.494406283Z",
            "source": "amazon-inspector",
            "versions": [
                "0.2.0"
            ],
            "id": "IN-MAL-2026-019322",
            "modified_time": "2026-09-02T02:19:28Z",
            "sha256": "162c9883c327802cb1876ddca28f93dfabc97256f9b23e16151c3fb7f73ad59c"
        },
        {
            "import_time": "2026-09-02T02:44:33.118077792Z",
            "source": "amazon-inspector",
            "versions": [
                "0.6.0"
            ],
            "id": "IN-MAL-2026-019319",
            "modified_time": "2026-09-02T02:18:57Z",
            "sha256": "664bbacd7f9ee0dd7dd6f667d05327beb7d709c72d19e242ccd50cf2995363fe"
        },
        {
            "import_time": "2026-09-02T04:23:33.585244909Z",
            "source": "amazon-inspector",
            "versions": [
                "0.4.0"
            ],
            "id": "IN-MAL-2026-019330",
            "modified_time": "2026-09-02T03:57:58Z",
            "sha256": "138e359294e9f248e99ec42e1a3ac5d75ed26f1f11d82395448896776fb3012f"
        },
        {
            "import_time": "2026-09-02T04:23:33.496941262Z",
            "source": "amazon-inspector",
            "versions": [
                "0.3.0"
            ],
            "id": "IN-MAL-2026-019329",
            "modified_time": "2026-09-02T03:57:49Z",
            "sha256": "95ca72ee648c6a3eec3673b5b6512ffee68681f09bfd29a7e4b441555747ce33"
        },
        {
            "import_time": "2026-09-02T04:23:33.901377707Z",
            "source": "amazon-inspector",
            "versions": [
                "0.5.0"
            ],
            "id": "IN-MAL-2026-019334",
            "modified_time": "2026-09-02T03:58:34Z",
            "sha256": "cd662085adac5d58c8c0026d9dc08bc7b5752504895a93cb5c62e23e110622c1"
        }
    ]
}
References
Credits

Affected packages

npm / evilpostinstall

Package

Affected ranges

Affected versions

0.*
0.2.0
0.3.0
0.4.0
0.5.0
0.6.0
49.*
49.13.4074225
4127000.*
4127000.0.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/evilpostinstall/MAL-2026-15625.json"
indicators
{
    "evidence_files": [
        {
            "path": "package.json",
            "tlsh": "b9f027290460937328c5063e180bb8679f712f1f6516fa84919f126c02993be5eb633d",
            "sha256": "cde24c47fbf00267f9a178addb878e822d68bdd9162b69df8b7343e377f65ea3"
        }
    ],
    "package_integrity": [
        {
            "filename": "evilpostinstall-49.13.4074225.tgz",
            "hashes": {
                "sha1": "8ac49965435ab8946ca081904bd7dd836e180ebb",
                "sha512_sri": "sha512-Rx/moK66dCS+mTbXVX2RZIAKX4rzaSQY3glsSfvdvjrbMFNdE4vLjJXZkjKBOres+wvK0VMUroSxlxnwdLxKcA=="
            }
        }
    ]
}
cwes
[
    {
        "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.",
        "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.",
        "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.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]