MAL-2026-18801

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/template-pictogram/MAL-2026-18801.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18801
Aliases
  • GHSA-f6cc-wp5p-cq33
Published
2026-11-07T18:10:16Z
Modified
2026-11-17T05:30:07Z
Summary
Malicious code in template-pictogram (npm)
Details

template-pictogram is a dependency-confusion package: it was published on 2026-11-07 under an unscoped name in versions 9.1.1 and 9.1.3, chosen to win version resolution over a private package of the same name. Its postinstall script runs node beacon.cjs, which sends an HTTP POST over cleartext HTTP to the hardcoded IP endpoint http://13.140.137.222:8787/_ah/dc with the package name, the machine's hostname, the install directory, the current working directory and the Node.js version; the entry point index.js sends the same request again whenever the package is loaded and otherwise exports a no-op Proxy. The README calls it an "authorized dependency-confusion test". The beacon code and endpoint are the same as in MAL-2026-18356 (@webapp-shared/login-vmok), with only the package name changed. The inert 0.0.0-stage and 0.1.0 placeholder versions carry no install script and are not affected. Any machine that installed an affected version has disclosed its hostname and filesystem layout to a third party; remove the package, pin or scope internal package names to the internal registry, and block 13.140.137.222 on build hosts.


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

Source: amazon-inspector (468486d943cd98b0ff2388a965b8579bf5fb62ab9459802da8381551f9e1660f)

Package self-describes as a 'Compatibility shim' but ships no real functionality — its main module exports a Proxy returning no-ops for any property access. The actual payload is beacon.cjs, which runs both from a postinstall hook (node beacon.cjs) and on require of index.js, which calls fire() at top level. The beacon POSTs host metadata — os.hostname(), the install __dirname, process.cwd(), and a Node-version-tagged User-Agent — to the hardcoded bare-IP endpoint http://13.140.137.222:8787/_ah/dc over plain HTTP. Shape is consistent with a dependency-confusion or name-squat reconnaissance beacon: install-time callback is the entire purpose of the package, the destination is a bare IP rather than a vendor-identifiable host, and the no-op Proxy main exists only to avoid breaking any accidental resolution.

Source: ghsa-malware (3841b6d06a61a6dca4677771af04f3a1611aecea70dda90a4672bb4b6f1fc109)

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
{
    "iocs": {
        "files": [
            {
                "digests": {
                    "sha256": "76ac6a6972303785e3f2ffc9e6c50cec29a79b707c3b51cdb3498d11e35df1dc"
                },
                "note": "postinstall: POSTs hostname, install path, cwd and Node.js version to the IP endpoint",
                "paths": [
                    "beacon.cjs"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "a86a4da763bbb34c16f361abe7aab66d5df591b66867ac8160041f932159b08d"
                },
                "note": "re-sends the beacon on require and exports a no-op Proxy",
                "paths": [
                    "index.js"
                ],
                "source": "PACKAGE_ARCHIVE"
            }
        ],
        "ips": [
            "13.140.137.222"
        ],
        "urls": [
            "http://13.140.137.222:8787/_ah/dc"
        ]
    },
    "malicious-packages-origins": [
        {
            "id": "GHSA-f6cc-wp5p-cq33",
            "import_time": "2026-11-09T19:17:53.606405205Z",
            "modified_time": "2026-11-09T17:32:59Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "3841b6d06a61a6dca4677771af04f3a1611aecea70dda90a4672bb4b6f1fc109",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-022613",
            "import_time": "2026-11-11T21:05:23.910650043Z",
            "modified_time": "2026-11-11T21:04:21Z",
            "sha256": "7eb68b10a3e28c16855bcd33931e1fb6e5e997e44d3b25d12b1e11d9c118ec74",
            "source": "amazon-inspector",
            "versions": [
                "9.1.1"
            ]
        },
        {
            "id": "IN-MAL-2026-022646",
            "import_time": "2026-11-12T04:13:27.489763108Z",
            "modified_time": "2026-11-12T04:10:39Z",
            "sha256": "468486d943cd98b0ff2388a965b8579bf5fb62ab9459802da8381551f9e1660f",
            "source": "amazon-inspector",
            "versions": [
                "9.1.3"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / template-pictogram

Package

Name
template-pictogram
View open source insights on deps.dev
Purl
pkg:npm/template-pictogram

Affected ranges

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

Affected versions

9.*
9.1.1
9.1.3

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": "beacon.cjs",
            "sha256": "76ac6a6972303785e3f2ffc9e6c50cec29a79b707c3b51cdb3498d11e35df1dc",
            "tlsh": "e8316feba4e0e048aeaa70a8c54f0408b27bf0079501ab50fd5c83959f7193c33fa8dc"
        },
        {
            "path": "index.js",
            "sha256": "a86a4da763bbb34c16f361abe7aab66d5df591b66867ac8160041f932159b08d",
            "tlsh": "2201d0d7225661b10b5221a4978f43c4a3b99d74027941d0d84a9226365108c463b8ee"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/template-pictogram/MAL-2026-18801.json"