MAL-2026-16123

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/pinochiomathm/MAL-2026-16123.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-16123
Published
2026-09-10T18:08:42Z
Modified
2026-09-10T18:30:36Z
Summary
Malicious code in pinochiomathm (npm)
Details

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

Source: amazon-inspector (135c673bb3925502b10f92d9819d956004ade25faa9c358f6d3fb2c67cd6114e)

The package impersonates picomatch (name 'pinochiomathm', description copied from picomatch, homepage pointing at github.com/micromatch/picomach). On require, lib/pinochiomathm.js reads lib/parse.ts.map, base64-decodes it into parsetmp.js, and requires it. The decoded module performs an HTTP GET to https://www.jsonkeeper.com/b/V6NBX with a decoded 'x-secret-key' header, AES-256-CBC-decrypts the response using a hardcoded password, and passes the plaintext to eval(). A second disguised file lib/init.ts.map contains an additional base64-wrapped payload of the same shape. After execution the loader unlinks lib/parse.ts.map, parsetmp.js, lib/init.ts.map and config.js to remove the staged payload from disk. The result is arbitrary remote code execution in the installer's Node process, controlled by whoever edits the jsonkeeper paste, with anti-analysis evasion via sourcemap-filename disguise, base64+AES wrapping, and post-execution cleanup.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-019951",
            "import_time": "2026-09-10T18:20:43.122914853Z",
            "modified_time": "2026-09-10T18:09:01Z",
            "sha256": "135c673bb3925502b10f92d9819d956004ade25faa9c358f6d3fb2c67cd6114e",
            "source": "amazon-inspector",
            "versions": [
                "2.3.4"
            ]
        },
        {
            "id": "IN-MAL-2026-019952",
            "import_time": "2026-09-10T18:20:43.173622488Z",
            "modified_time": "2026-09-10T18:09:11Z",
            "sha256": "e904cc2e2811b5386aaa2fe68f76462ea4f20c5bb815948fb887ea35ddaadbe2",
            "source": "amazon-inspector",
            "versions": [
                "2.3.3"
            ]
        },
        {
            "id": "IN-MAL-2026-019950",
            "import_time": "2026-09-10T18:20:43.063979755Z",
            "modified_time": "2026-09-10T18:08:52Z",
            "sha256": "34bc05f26caa61320e470e7dffe7120af1e4e56e8f20a2bc7ea4751cdbe83068",
            "source": "amazon-inspector",
            "versions": [
                "2.3.2"
            ]
        },
        {
            "id": "IN-MAL-2026-019949",
            "import_time": "2026-09-10T18:20:43.025464029Z",
            "modified_time": "2026-09-10T18:08:42Z",
            "sha256": "8bad340e7ac756b19a8e0ed7021f7378855b1b4e5c7f7091636d34f291baa41a",
            "source": "amazon-inspector",
            "versions": [
                "2.3.5"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / pinochiomathm

Package

Name
pinochiomathm
View open source insights on deps.dev
Purl
pkg:npm/pinochiomathm

Affected ranges

Affected versions

2.*
2.3.2
2.3.3
2.3.4
2.3.5

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"
    },
    {
        "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": "lib/pinochiomathm.js",
            "sha256": "999cebfc5c95e73827fa2d5473777ff915e90f1ca6842219e33b0ab151a00108",
            "tlsh": "d53263b824d3611447a3b1ea42df80c5ae2bd4693f2e90d5e40c56f0af850e8e7bbdd4"
        },
        {
            "path": "package.json",
            "sha256": "bdd7a80429332a8b4b7e4ad1ba49de0a8e6b2918a4ff7765c4c5333ceac909b6",
            "tlsh": "8641a07ad8a51d632bc856a8a9ee11c3be6144478e54bc1c77ae020ccf4d12f11be6ad"
        }
    ],
    "package_integrity": [
        {
            "filename": "pinochiomathm-2.3.4.tgz",
            "hashes": {
                "sha1": "51134596ae2e89acb18ca6e12266d6ce9920f3bd",
                "sha512_sri": "sha512-jeXsCNbR28bI8L7EK/8ONPSGdjEw2DMBivdVxSVV9PfQ3HhrJoKw3H+/fAm8NavmbHqQDNzN/QntR+VECykNfA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/pinochiomathm/MAL-2026-16123.json"