npm/@ornikar/babel-preset-kitt-universal 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 script (node setup.mjs) is itself obfuscated (obfuscator.io-style _0xXXXX identifiers and per-function string-map indirection). At install time it checks for a local bun binary and, if absent, downloads a platform-specific Bun release ZIP from https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/<platform>.zip, extracts it to a temporary directory, marks it executable, and then invokes that Bun binary against a sibling file math_init.js shipped in the tarball (execFileSync(bun, [math_init.js])). math_init.js is a ~727KB obfuscated blob (shuffled string-array with a rotation function and a custom-alphabet decoder, @bun/@bun-cjs header) whose contents are opaque without runtime deobfuscation. A babel preset has no functional need for a second language runtime or for executing an obfuscated sibling script at install; running the payload under Bun rather than Node also bypasses Node-focused install-time inspection. The filename (math_init.js) is unrelated to the babel-preset purpose declared by the package. This shape — obfuscated preinstall + alternate-runtime dispatch + obfuscated executable payload with a cover-story filename — is a compromised release of the package, delivering attacker-controlled code execution on any machine that runs npm install.
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": [
{
"import_time": "2026-08-05T00:10:18.143930626Z",
"sha256": "45a838ea6107514ed5dbb471b05de10160b1013cc9ce814c780c2e14446ad249",
"modified_time": "2026-08-04T16:44:34Z",
"id": "GHSA-mfxj-5cvr-c5xv",
"versions": [
"8.0.12",
"8.0.11",
"8.0.10",
"8.0.9",
"8.0.8",
"8.0.7",
"8.0.6",
"8.0.5",
"8.0.4",
"8.0.3"
],
"source": "ghsa-malware"
},
{
"import_time": "2026-08-05T03:11:39.176978105Z",
"sha256": "2946124390bb1cbbbd9d9fa9f0820f8f64f1d33f227d01361256f1716b8946d4",
"modified_time": "2026-08-05T02:18:33Z",
"id": "IN-MAL-2026-011724",
"versions": [
"8.0.10"
],
"source": "amazon-inspector"
},
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T02:18:16Z",
"sha256": "2ba0367d388cd26116e6687034061ea643c964531ba22417517f20158e64ab90",
"id": "IN-MAL-2026-011722",
"versions": [
"8.0.8"
],
"import_time": "2026-08-05T03:11:38.982946212Z"
},
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T02:45:30Z",
"sha256": "2d50a558565c2d119d3d362c432ed5306e6c0dbfab0d9db927fa7d2b01b6c2a9",
"id": "IN-MAL-2026-011916",
"versions": [
"8.0.9"
],
"import_time": "2026-08-05T03:11:59.727667357Z"
},
{
"import_time": "2026-08-05T03:12:03.453939892Z",
"modified_time": "2026-08-05T02:50:43Z",
"sha256": "4128e053aaed1460eea76b32e2569f7a626856ef1c116ffa22e32d6278e9edd9",
"id": "IN-MAL-2026-011953",
"versions": [
"8.0.11"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-08-05T03:11:32.103098912Z",
"modified_time": "2026-08-05T02:08:50Z",
"sha256": "5991a07636825dd40ace1487f0cc65f7ecd4bd80c1dee28eb7cd949dffed3667",
"id": "IN-MAL-2026-011657",
"versions": [
"8.0.12"
],
"source": "amazon-inspector"
},
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T02:51:38Z",
"sha256": "c61f1a4ee2574e9cb5965089c58224f61dc64085e1f58bd035cc25f4685c11ab",
"id": "IN-MAL-2026-011959",
"versions": [
"8.0.6"
],
"import_time": "2026-08-05T03:12:04.112651999Z"
},
{
"import_time": "2026-08-05T03:12:03.225770682Z",
"modified_time": "2026-08-05T02:50:29Z",
"sha256": "d405b9e9ea34be75ee681ddb2439d48f798eae8e6fe3c46fd3d6b0d362545fcc",
"id": "IN-MAL-2026-011951",
"versions": [
"8.0.3"
],
"source": "amazon-inspector"
},
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T01:56:08Z",
"sha256": "d444d50ce80eb03ae546080109ee0b4c02c7345b729c08af436a3af63c3979be",
"id": "IN-MAL-2026-011567",
"versions": [
"8.0.4"
],
"import_time": "2026-08-05T03:11:21.693396454Z"
},
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T02:18:52Z",
"sha256": "6c115e9d37aa572aa17f1c631ef74a3aaeea0184482bf2e8fdb17b9673b402d8",
"id": "IN-MAL-2026-011726",
"versions": [
"8.0.7"
],
"import_time": "2026-08-05T03:11:39.409503607Z"
},
{
"import_time": "2026-08-05T03:11:31.995860764Z",
"modified_time": "2026-08-05T02:08:43Z",
"sha256": "a49ace78a253607eb3b0e9215c03ec6dfdbc98eb6bfad8b90626760b0f4b4c68",
"id": "IN-MAL-2026-011656",
"versions": [
"8.0.5"
],
"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",
"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",
"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",
"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",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
}
]
{
"package_integrity": [
{
"hashes": {
"sha512_sri": "sha512-0JHXgKPMj+6rF3avTEAa3F7BA3FjmD1hB58FMJ8ykGipArdaDqKgD56fgAMvbKK6Z4FX1eJOwrnccwsZXyQ2TA==",
"sha1": "ea45d76316252ddbb63cd96e3ee730185727bd67"
},
"filename": "babel-preset-kitt-universal-8.0.10.tgz"
}
],
"evidence_files": [
{
"path": "setup.mjs",
"sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
"tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
},
{
"path": "math_init.js",
"sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
"tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ornikar/babel-preset-kitt-universal/MAL-2026-11741.json"