template-projection-map is a dependency-confusion package: it was published on 2026-11-07 under an unscoped name in versions 22.1.1 and 99.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.=-
template-projection-map@22.1.1 is a functionally empty npm package whose only behavior is a reconnaissance beacon. The package.json postinstall hook executes beacon.cjs, which POSTs the installer's hostname (os.hostname()), install path (__dirname), current working directory (process.cwd()), and Node.js version to the hardcoded plain-HTTP bare-IP endpoint http://13.140.137.222:8787/_ah/dc. The same beacon is also fired from index.js at require() time via require('./beacon.cjs').fire(). index.js otherwise exports a Proxy whose every property returns a no-op, confirmed by the module's self-description as a Compatibility shim. The destination is a bare IPv4 address over cleartext HTTP, unrelated to any legitimate publisher infrastructure, and the package provides no advertised functionality that could justify such telemetry. The shape (install- and import-time outbound POST of host identifiers to an attacker-controlled endpoint on a stub/name-squat package) matches dependency-confusion reconnaissance tooling.
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.
{
"iocs": {
"files": [
{
"digests": {
"sha256": "16c12f1df35c895b81fda5a233b4df764f2779bd78e01b800fc472cf938381bc"
},
"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-xx2g-pxvx-74hr",
"import_time": "2026-11-09T19:17:53.615312623Z",
"modified_time": "2026-11-09T17:32:59Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "39336416a695a52c21d74f7d971565610ee17c230d6af786821e4f69a240ff04",
"source": "ghsa-malware"
},
{
"id": "IN-MAL-2026-022615",
"import_time": "2026-11-11T21:05:24.042860108Z",
"modified_time": "2026-11-11T21:04:35Z",
"sha256": "859881aae3408aa5db5bc1da4c13c86dee8848d719f0452582f7d7fd7b8c6a37",
"source": "amazon-inspector",
"versions": [
"99.1.3"
]
},
{
"id": "IN-MAL-2026-022612",
"import_time": "2026-11-11T21:05:23.839686825Z",
"modified_time": "2026-11-11T21:04:15Z",
"sha256": "fe3cf14f1af4fe35fdc9c8635c3a4fa24e1d64610782d298d3e428446ce7f02c",
"source": "amazon-inspector",
"versions": [
"22.1.1"
]
}
]
}[
{
"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"
}
]
{
"evidence_files": [
{
"path": "beacon.cjs",
"sha256": "16c12f1df35c895b81fda5a233b4df764f2779bd78e01b800fc472cf938381bc",
"tlsh": "d33120eba4e1e048aaaa7498c54f1409f277f4068501ab50fd5c82959f6153c33fa8dc"
},
{
"path": "index.js",
"sha256": "a86a4da763bbb34c16f361abe7aab66d5df591b66867ac8160041f932159b08d",
"tlsh": "2201d0d7225661b10b5221a4978f43c4a3b99d74027941d0d84a9226365108c463b8ee"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/template-projection-map/MAL-2026-18802.json"