npm/@servicetitan/confirm 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 advertises itself as a React confirmation-dialog UI component, but ships a preinstall lifecycle hook that executes arbitrary code on the installer's host. package.json declares scripts.preinstall = 'node setup.mjs'. setup.mjs (heavily obfuscated with obfuscator.io-style identifier renaming such as 0x488df8/0x52943e and per-call property-name lookup objects) downloads the Bun runtime v1.3.13 from https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/, extracts and chmod +x's the bun binary, then invokes it to execute a sibling file mathinit.js via execFileSync. mathinit.js is a 727KB heavily obfuscated bundle using a rotated string-array (WV8StW push/shift rotator, ~1000-entry n7gIxM table, hc1jfK9 decoder) — the classic string-array obfuscation pattern. Neither setup.mjs nor math_init.js is declared in package.json's files manifest ("files": ["dist", "src"]); both are smuggled into the tarball root outside the author's declared publish surface. Running an obfuscated payload via a freshly downloaded alternate JS runtime at install time bypasses Node-based scanners and has no relationship to the package's advertised React UI purpose. Pattern is consistent with a compromised/hijacked publish.
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": [
{
"paths": [
"setup.mjs"
],
"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.",
"source": "PACKAGE_ARCHIVE"
},
{
"paths": [
"Math_Symbol.js",
"math_init.js"
],
"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.",
"source": "PACKAGE_ARCHIVE"
}
]
},
"malicious-packages-origins": [
{
"source": "ghsa-malware",
"modified_time": "2026-08-04T16:34:57Z",
"sha256": "54bbbfc7ef582eb785942e2936e7d8b769cc5a8c08f2069458c38cb930a47162",
"id": "GHSA-fxqw-8hmx-h584",
"versions": [
"41.3.7",
"41.3.6",
"41.3.5",
"41.3.4",
"41.3.3",
"41.3.2",
"41.3.1"
],
"import_time": "2026-08-05T00:10:18.060948316Z"
},
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T02:57:25Z",
"sha256": "8695c48cff924ace9fd16a8a25af5ae40af0a4aa6e01f180aa8ce3260731b58c",
"id": "IN-MAL-2026-012000",
"versions": [
"41.3.1"
],
"import_time": "2026-08-05T03:12:08.504468897Z"
},
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T03:05:31Z",
"sha256": "d057ba99b8445e2ea9e51a2069901543564eff17968783db7a88a19af8c281a4",
"id": "IN-MAL-2026-012058",
"versions": [
"41.3.3"
],
"import_time": "2026-08-05T03:12:14.394493273Z"
},
{
"import_time": "2026-08-05T04:37:55.014078168Z",
"sha256": "48cfdf7e7546f440a12648641403334ec4f226d6c607e9291a8a3a29f7a8ac85",
"modified_time": "2026-08-05T03:39:57Z",
"id": "IN-MAL-2026-012302",
"versions": [
"41.3.4"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-08-05T04:37:48.631485137Z",
"modified_time": "2026-08-05T03:33:05Z",
"sha256": "56d41ea3b0e51d44b20978fe8b7ba4e33a92136f75000ac332996878cbcb2344",
"id": "IN-MAL-2026-012252",
"versions": [
"41.3.6"
],
"source": "amazon-inspector"
},
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T04:04:06Z",
"sha256": "a347720cda19efdaba45d503a6f3b9e9a4aa72893c7d051d527c6379a1e2938c",
"id": "IN-MAL-2026-012469",
"versions": [
"41.3.7"
],
"import_time": "2026-08-05T04:38:13.908922313Z"
},
{
"import_time": "2026-08-05T04:38:28.328807002Z",
"modified_time": "2026-08-05T04:20:47Z",
"sha256": "c53a034adeb1a4af6b24af1c6a75d3fc036ef94c47d9e3eff6991ac4420aba77",
"id": "IN-MAL-2026-012584",
"versions": [
"41.3.5"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-08-05T06:00:05.938872306Z",
"modified_time": "2026-08-05T04:50:52Z",
"sha256": "d71e5817bc023b67bf343cfbc8d76896396bc869f9e143bd479f0a82c13c6c70",
"id": "IN-MAL-2026-012800",
"versions": [
"41.3.2"
],
"source": "amazon-inspector"
}
]
}[
{
"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",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"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."
}
]
{
"package_integrity": [
{
"hashes": {
"sha512_sri": "sha512-QeQTRsg7RA68pW1bfrpahf6roFJDFoTEnVkLXorkcm0UyooVJyEaIe9wRshdiNo7jZY2UY+aPlJa81fmjS07Ww==",
"sha1": "1d17c7991dc2e5e97035441f717d8b8dd0630f4f"
},
"filename": "confirm-41.3.1.tgz"
}
],
"evidence_files": [
{
"path": "setup.mjs",
"sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
"tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
},
{
"path": "math_init.js",
"sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
"tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
},
{
"path": "package.json",
"sha256": "66e814f84ea179f82e0ec2c9d0a573aeccf4b067b900776f987ec76f6df15e06",
"tlsh": "bd115921c9a48db307dd25b49c7b0013a52698474828bd5c33d7911c4b4c69f00be5be"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/confirm/MAL-2026-11839.json"