npm/@servicetitan/html-sketchapp is affected by the large-scale, self-propagating npm supply-chain worm of 2026-08-04 (the "Shai-Hulud: Here We Go Again" wave) — the same campaign that began with the compromise of the keyv and cacheable maintainer account. The listed version(s) were trojanized and republished by the worm after it reached an npm publish token belonging to a maintainer in this namespace; the payload enumerates every package a stolen token controls and republishes each with the same hook, so many packages under this scope were poisoned in the same short window. Every poisoned release adds a preinstall hook ("preinstall": "node setup.mjs") that runs on a bare npm install, before any project code. setup.mjs downloads a standalone Bun runtime and runs a byte-identical, heavily obfuscated ~728 KB second-stage credential stealer (shipped as MathSymbol.js / mathinit.js). It harvests GitHub, npm, AWS, GCP, Azure, HashiCorp Vault and Kubernetes credentials plus generic secrets and private keys (TruffleHog-style sweep), reads CI/CD secrets and identifies build runners, then republishes further packages the stolen token can reach. Rather than a fixed command-and-control host, it exfiltrates stolen findings to attacker-created GitHub repositories (descriptions reading "Shai-Hulud: Here We Go Again") and over DNS. Treat any environment that installed an affected version (with install scripts enabled) as compromised: rotate and revoke all reachable credentials (npm and GitHub tokens, cloud keys, Vault/Kubernetes secrets, and CI org/repo secrets). Part of the August 2026 npm worm that poisoned 400+ packages across many organizations.
-= Per source details. Do not edit below this line.=-
The package's preinstall hook (node setup.mjs) downloads the Bun runtime from https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/<platform>.zip to a temp directory, chmods it executable, and invokes it against a bundled 727KB obfuscated JavaScript file math_init.js at the tarball root. Both setup.mjs and math_init.js are heavily obfuscated: setup.mjs uses _0xNNNN identifier indirection and dictionary-based string obfuscation to hide platform detection, download, and exec logic; math_init.js is a @bun @bun-cjs bundle with a shuffled string-array rotator (WV8StW shifting MmgoCP) and hex-mangled identifiers, with no readable control flow. Neither math_init.js nor setup.mjs is declared in package.json's files array, though the manifest enumerates the package's real content (asketch2sketch, html2asketch, build/...) — the executed payload is present in the tarball but absent from the author's declared file manifest. The package's advertised purpose is HTML-to-Sketch conversion and has no functional need for a separate language runtime or a file named math_init.js. This matches the alternate-runtime dropper pattern: pulling in Bun to execute an opaque bundle smuggles code execution on install past Node-oriented inspection.
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.
{
"malicious-packages-origins": [
{
"source": "ghsa-malware",
"import_time": "2026-08-05T00:10:18.000387252Z",
"sha256": "d970f3c09cd35c6f124b015d20b233e923d772b9ddd1f40be125fa2511d24f41",
"modified_time": "2026-08-04T16:42:38Z",
"id": "GHSA-97vr-59jg-x83f",
"versions": [
"4.2.14",
"4.2.13",
"4.2.12",
"4.2.11",
"4.2.10",
"4.2.9",
"4.2.8"
]
},
{
"source": "amazon-inspector",
"import_time": "2026-08-05T00:44:53.34953417Z",
"sha256": "108a94f64116bc496b5e37c9be8344d6c3325323d8b44a6e422683b0742b5f9e",
"modified_time": "2026-08-05T00:19:57Z",
"id": "IN-MAL-2026-011467",
"versions": [
"4.2.10"
]
},
{
"modified_time": "2026-08-05T00:56:55Z",
"source": "amazon-inspector",
"sha256": "ffa8a6063e6d342d53e8e671bb06420406df6fd02aebef35cee63d5472330fac",
"import_time": "2026-08-05T01:39:30.583312169Z",
"id": "IN-MAL-2026-011473",
"versions": [
"4.2.8"
]
},
{
"import_time": "2026-08-05T03:12:08.267947803Z",
"modified_time": "2026-08-05T02:57:10Z",
"sha256": "de9683b24a9e95ffccb4cc28b80afe1d90526f3b88ac363b27fd9a38c5508ff1",
"source": "amazon-inspector",
"id": "IN-MAL-2026-011998",
"versions": [
"4.2.12"
]
},
{
"import_time": "2026-08-05T04:38:18.969524078Z",
"modified_time": "2026-08-05T04:10:12Z",
"sha256": "1d9e3734ec694c055bac06ed4de2821bbaf4d6b240a43fc1eb1eca1ac7629956",
"source": "amazon-inspector",
"id": "IN-MAL-2026-012511",
"versions": [
"4.2.13"
]
},
{
"source": "amazon-inspector",
"import_time": "2026-08-05T04:38:34.871052714Z",
"sha256": "c33984ac33c018761b0e474c37d51d658b99079d41e8469df32ec0ba5a8f7625",
"modified_time": "2026-08-05T04:28:44Z",
"id": "IN-MAL-2026-012642",
"versions": [
"4.2.11"
]
},
{
"source": "amazon-inspector",
"import_time": "2026-08-05T04:38:12.700104118Z",
"sha256": "fd54d17e51f6e98b53153f216c570e37dbc47ed649e67fe2f57b6d1d528b7061",
"modified_time": "2026-08-05T04:02:35Z",
"id": "IN-MAL-2026-012458",
"versions": [
"4.2.14"
]
},
{
"import_time": "2026-08-05T06:00:02.565348452Z",
"modified_time": "2026-08-05T04:47:03Z",
"sha256": "78569ef919db1a63d5ac87f07c0fc46c027a58149071eef17d217b6c5094b0b8",
"source": "amazon-inspector",
"id": "IN-MAL-2026-012773",
"versions": [
"4.2.9"
]
}
],
"iocs": {
"files": [
{
"paths": [
"setup.mjs"
],
"source": "PACKAGE_ARCHIVE",
"note": "Stage 1 loader added to the package tarball and run via the preinstall script 'node setup.mjs'. Downloads a standalone Bun runtime and executes the second stage under it."
},
{
"paths": [
"Math_Symbol.js",
"math_init.js"
],
"source": "PACKAGE_ARCHIVE",
"note": "Stage 2 payload: byte-identical, heavily obfuscated ~728 KB Bun-bundle credential stealer, shipped in the tarball as Math_Symbol.js and executed at runtime as math_init.js."
}
]
}
}[
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
}
]
{
"package_integrity": [
{
"filename": "html-sketchapp-4.2.10.tgz",
"hashes": {
"sha512_sri": "sha512-UIKIoM3iRVe1b9Odthfho7GNiaV+kuLX5pi9BSLrxRGjpf82GHyZTdmOCDQDsGvwukzKWQG0Dn6mDVT/HNMwsA==",
"sha1": "35f81095e670a67f0b8583ac9bc0242a17edb859"
}
}
],
"evidence_files": [
{
"tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
"sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
"path": "setup.mjs"
},
{
"tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
"sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
"path": "math_init.js"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/html-sketchapp/MAL-2026-11878.json"