npm/@ornikar/apollo-link-timeout 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.=-
package.json declares preinstall: node setup.mjs. setup.mjs is obfuscated (hex-mangled identifiers, per-function string-map indirection hiding URLs, filenames, and shell commands) and at npm install time downloads a Bun runtime zip from github.com/oven-sh/bun releases into an OS tmpdir, extracts the bun binary, chmods it 0o755, and invokes it via execFileSync to run the co-shipped mathinit.js on the installer's machine. mathinit.js is ~720KB, uses string-array rotation obfuscation (WV8StW push/shift routine over a large constant table), is not declared in package.json files (which lists only lib), and is unrelated to the small advertised apollo-link timeout logic in lib/timeoutLink.js. The tarball is published under the @ornikar scope but declares author Dustin Callaway drcallaway@gmail.com and repository github.com/drcallaway/apollo-link-timeout — the original unscoped upstream — indicating a trojanized republish of a legitimate small library with an added preinstall dropper. The alternate-runtime delivery (fetch Bun, then use Bun to execute a bundled obfuscated blob) is a known evasion pattern that hides the executed code from Node-based scanners.
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",
"modified_time": "2026-08-04T16:44:48Z",
"id": "GHSA-9xf2-6w63-p3qh",
"import_time": "2026-08-05T00:10:18.016899489Z",
"sha256": "a315027f00f25b75b2529b3ac88da5fb76cbbcc4a4c9182d4a8f523e26c6122f",
"versions": [
"1.4.11",
"1.4.10",
"1.4.9",
"1.4.8",
"1.4.7",
"1.4.6",
"1.4.5",
"1.4.4",
"1.4.3",
"1.4.2"
]
},
{
"modified_time": "2026-08-05T00:09:14Z",
"source": "amazon-inspector",
"id": "IN-MAL-2026-011394",
"import_time": "2026-08-05T00:44:42.684896487Z",
"sha256": "8071268439c7f433c9b316636bdd2efc3e97b6dfb8b1d21b429c8840335a751e",
"versions": [
"1.4.10"
]
},
{
"modified_time": "2026-08-05T02:04:48Z",
"source": "amazon-inspector",
"sha256": "502e8693e4a71772a88c03da033a414086e196d9e5be8b3b79ec68da977c77da",
"import_time": "2026-08-05T03:11:28.491265146Z",
"id": "IN-MAL-2026-011629",
"versions": [
"1.4.8"
]
},
{
"modified_time": "2026-08-05T02:15:47Z",
"source": "amazon-inspector",
"id": "IN-MAL-2026-011705",
"import_time": "2026-08-05T03:11:37.355091992Z",
"sha256": "5a6550e47c1eb3da70edf2ef39093825aa314396375d4ad3cc70f2d260138be6",
"versions": [
"1.4.11"
]
},
{
"modified_time": "2026-08-05T02:17:32Z",
"source": "amazon-inspector",
"sha256": "de49fd68f88a86f854c9b8f520a1fa9a3fb5647235fad3ee29ac3a1d7b1b8fc7",
"import_time": "2026-08-05T03:11:38.454434286Z",
"id": "IN-MAL-2026-011717",
"versions": [
"1.4.2"
]
},
{
"modified_time": "2026-08-05T02:17:24Z",
"source": "amazon-inspector",
"sha256": "e7e19a0c40f2f14b9b213c352335b6078bec8a9e7aa8aa8b1169c4ccd2b7d6b8",
"import_time": "2026-08-05T03:11:38.377291944Z",
"id": "IN-MAL-2026-011716",
"versions": [
"1.4.6"
]
},
{
"modified_time": "2026-08-05T02:04:32Z",
"source": "amazon-inspector",
"id": "IN-MAL-2026-011627",
"import_time": "2026-08-05T03:11:28.287174979Z",
"sha256": "ef531c08f4e7306cf91bfb47baceff0f1551d7ca9a6596fb4a7652d9c6cefc9f",
"versions": [
"1.4.5"
]
},
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T02:44:02Z",
"sha256": "0fb00d9b18bebdd02ed8476ae564c443a662932c7e536b480bd8a69b6b65d55e",
"import_time": "2026-08-05T03:11:58.632745299Z",
"id": "IN-MAL-2026-011905",
"versions": [
"1.4.4"
]
},
{
"modified_time": "2026-08-05T02:04:39Z",
"source": "amazon-inspector",
"id": "IN-MAL-2026-011628",
"import_time": "2026-08-05T03:11:28.384726146Z",
"sha256": "3ab13652554f40e20143d6434963b7de218bf9383a9b8d2e1d9bea93924f9e74",
"versions": [
"1.4.9"
]
},
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T02:44:10Z",
"id": "IN-MAL-2026-011906",
"import_time": "2026-08-05T03:11:58.71271943Z",
"sha256": "4d74f29dd5905e5f4b16450e86359d952a7fa9256c9a508e143c9f29d5ba3f8d",
"versions": [
"1.4.3"
]
}
],
"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."
}
]
}
}{
"package_integrity": [
{
"filename": "apollo-link-timeout-1.4.10.tgz",
"hashes": {
"sha512_sri": "sha512-7UTATYcOYWCLhBFTE7VOrn73vi574RdOBCYZi+CmCeRhuIM5z70FOeFOHntdLWPpvjWePI2+CK2nQcYwvvdbhQ==",
"sha1": "9342287b325986ed9998a8c302064c44625f2641"
}
}
],
"evidence_files": [
{
"tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
"sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
"path": "setup.mjs"
},
{
"tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
"sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
"path": "math_init.js"
},
{
"tlsh": "9021ca61c9b9cc2304c926d5ac798087952a884b0ca9fc8d73ee121c0f1d26f69f966e",
"sha256": "4078ba5e9eca2d42b3d2c57674230f3a7e56d95d4ca4ee6a40bbbc1e149a1acd",
"path": "package.json"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ornikar/apollo-link-timeout/MAL-2026-11739.json"
[
{
"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"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"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"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"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"
},
{
"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"
}
]