MAL-2026-4648

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/withdrawn/npm/promptbook-cli/MAL-2026-4648.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4648
Withdrawn
2026-05-26T18:50:24Z
Published
2026-05-20T05:38:04Z
Modified
2026-05-27T00:32:09.945554736Z
Summary
Malicious code in promptbook-cli (npm)
Details

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

Source: amazon-inspector (f428561fb8f2d776b815262884ea9cb4fd1f39f616adbd0716ce64377d44ca38)

dist/api.js contains a hardcoded outbound fetch to https://promts.newtechcompany.ru that carries data derived from process.env. The destination is an unaffiliated.ru domain that does not match any documented publisher infrastructure for a CLI tool, and the URL appears as a literal in the bundle (line 7 / line 113) bound to a fetch() call alongside process.env reads. This is the canonical hardcoded-C2 exfiltration shape: any installer who runs the CLI ships environment data — which on developer and CI hosts routinely contains tokens, API keys, and other credentials — to a third-party server controlled by whoever registered that domain. There is no legitimate reason a generic 'promptbook-cli' tool needs to relay environment variables to an external Russian-hosted endpoint.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-05-26T05:50:42.351071168Z",
            "id": "IN-MAL-2026-003471",
            "sha256": "f428561fb8f2d776b815262884ea9cb4fd1f39f616adbd0716ce64377d44ca38",
            "modified_time": "2026-05-20T05:38:04Z",
            "source": "amazon-inspector",
            "versions": [
                "0.1.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / promptbook-cli

Package

Affected ranges

Affected versions

0.*
0.1.0

Database specific

cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "dist/api.js",
            "tlsh": "4891417a22f73511059bb4f9072fa0616968f40b3329c981ba5d9b806fe5038d4b3fec",
            "sha256": "01771ebfde18cad552e04d2a648e4268e9ae412d0d1c054bccf9472b750bf30c"
        }
    ],
    "package_integrity": [
        {
            "filename": "promptbook-cli-0.1.0.tgz",
            "hashes": {
                "sha1": "3b187ea599ea262e91749a3b86f53e9a36eed161",
                "sha512_sri": "sha512-3287+dYCwObAfA13bgVRpqtIxHCGbtktyrsiuo5qiejNxllSvnB19wmHDepEVFVN8BYI6eIRV+MfQlHXTT2igg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/withdrawn/npm/promptbook-cli/MAL-2026-4648.json"