MAL-2026-18447

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/zystcdemo/MAL-2026-18447.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18447
Published
2026-10-29T07:22:48Z
Modified
2026-11-13T02:45:08Z
Summary
Malicious code in zystcdemo (npm)
Details

zystcdemo presents itself as a simple date formatting utility and runs its postinstall payload on npm install with node postinstall.js. The payload collects the whoami result, hostname, platform, and current time, then sends them in a POST request to https://srctest.zystcc.cn/collect; npm account zyst published it on 2026-10-29 (UTC).


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

Source: amazon-inspector (98788be1bdd54ff0f5d2551e7d8369cd790109aa31644c173b78893d8cbb28bf)

Package self-describes as a date-formatting utility but ships a postinstall lifecycle script (postinstall.js) that runs automatically on npm install. The script executes whoami via child_process and collects os.hostname() and os.platform(), then POSTs the resulting JSON payload to the hardcoded endpoint https://srctest.zystcc.cn/collect. The data-collection behavior is unrelated to the advertised date-utility purpose and the destination host is not associated with the package's stated functionality.

Database specific
{
    "iocs": {
        "domains": [
            "srctest.zystcc.cn"
        ],
        "files": [
            {
                "digests": {
                    "sha256": "b6c29c2cef0bd04855139d27a212f9b22e65d5e1f3b6eecdb80817d23c2c4715"
                },
                "note": "postinstall script: node postinstall.js",
                "paths": [
                    "package.json"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "547a4a4aabd7457ac739bd65076e85fa267d75ae5fced8572d4f1621683183b2"
                },
                "note": "Executed by the postinstall script of zystcdemo@1.0.0.",
                "paths": [
                    "postinstall.js"
                ],
                "source": "PACKAGE_ARCHIVE"
            }
        ],
        "ips": [
            "49.233.127.33"
        ],
        "urls": [
            "https://srctest.zystcc.cn/collect"
        ]
    },
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-022654",
            "import_time": "2026-11-13T02:36:58.609040043Z",
            "modified_time": "2026-11-13T02:34:54Z",
            "sha256": "98788be1bdd54ff0f5d2551e7d8369cd790109aa31644c173b78893d8cbb28bf",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / zystcdemo

Package

Affected ranges

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": "547a4a4aabd7457ac739bd65076e85fa267d75ae5fced8572d4f1621683183b2",
            "tlsh": "343144e941f946702be668a46abb6248b133d10b7d0aadf5b9cd03200f898bc42312dd"
        }
    ],
    "package_integrity": [
        {
            "filename": "zystcdemo-1.0.0.tgz",
            "hashes": {
                "sha1": "186a4bfb8a50c2e2b07f172e9b98bd33dd9daf62",
                "sha512_sri": "sha512-yr3sG8LqkNImhm605/pbKI0rnB9Oprji3+5GgbVCU1hRCIV1dnbC+PHhxJl8wnGDnlUeXxQIB2KJIksPHWhggA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/zystcdemo/MAL-2026-18447.json"