目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

@servicetitan/startup-jest

MAL-2026-11924
2026-08-05 06:02:52
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in @servicetitan/startup-jest (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
4,407
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@servicetitan/startup-jest2.2.1
npm@servicetitan/startup-jest2.2.2
npm@servicetitan/startup-jest2.2.3
npm@servicetitan/startup-jest2.2.4
npm@servicetitan/startup-jest2.2.5
npm@servicetitan/startup-jest2.2.6
npm@servicetitan/startup-jest2.2.7
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-11924","published":"2026-08-04T15:27:49Z","modified":"2026-08-05T06:02:51.701404012Z","aliases":["GHSA-2w9r-jxr5-frfq"],"summary":"Malicious code in @servicetitan/startup-jest (npm)","details":"npm/@servicetitan/startup-jest 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 Math_Symbol.js / math_init.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.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d692cfe7c4899f23f9d8687fcd2527607a8ba71396baa3890729cc529875483d)\nThe package's preinstall hook (scripts.preinstall = \"node setup.mjs\") downloads the Bun runtime (v1.3.13) from the oven-sh releases, extracts it to a temporary directory, chmods it executable, and then invokes it against a locally-shipped 727KB obfuscated file math_init.js (execFileSync(bun, [path.join(D,'math_init.js')])). math_init.js is a single-line 727KB body using a string-array rotation cipher (function WV8StW rotating a large mixed-type constant array n7gIxM) with hex-mangled identifiers and no readable strings; the filename does not correspond to any math API surface. The package's declared purpose is a Jest startup helper (main./dist/index.js is a 532-byte re-export of./jest, peer-depends on @servicetitan/startup) — a Jest helper has no functional need to fetch a second language runtime at install time in order to execute a large obfuscated sibling file. Using an alternate runtime (Bun) to execute the obfuscated payload also evades Node-focused install-time inspection. The combination of a lifecycle-triggered alternate-runtime launcher, a heavily obfuscated 727KB payload with a deceptive filename, and a purpose mismatch with the advertised @servicetitan/startup-jest scope is consistent with a supply-chain compromise / dropper release.\n\n## Source: ghsa-malware (09e009b71cf6f31908e106d0c931000e212e73db77ee534f4174935dd41ac9bd)\nAny 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.\n","affected":[{"package":{"name":"@servicetitan/startup-jest","ecosystem":"npm"},"versions":["2.2.1","2.2.2","2.2.3","2.2.4","2.2.5","2.2.6","2.2.7"],"database_specific":{"cwes":[{"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"},{"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"}],"indicators":{"evidence_files":[{"path":"setup.mjs","sha256":"fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb","tlsh":"9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"},{"path":"math_init.js","sha256":"9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc","tlsh":"59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"}],"package_integrity":[{"filename":"startup-jest-2.2.1.tgz","hashes":{"sha1":"141c0353308c895f4e678d82617041b6d1f1d0b6","sha512_sri":"sha512-ZwbA7erkOL/q9VSN6x1Tkelz0p9/+FZKmC2CjgEFHpwN8OmL31+/T0hrqAixEL5qh9LekHWFtIz8f1rNqC0qXw=="}}]}}}],"references":[{"type":"WEB","url":"https://socket.dev/blog/popular-npm-packages-in-the-keyv-and-cacheable-namespaces-compromised-in-active-supply-chain"},{"type":"WEB","url":"https://www.aikido.dev/blog/keyv-and-friends-compromised-in-npm-supply-chain-attack"},{"type":"WEB","url":"https://safedep.io/keyv-npm-supply-chain-compromise/"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/startup-jest"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-2w9r-jxr5-frfq"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/startup-jest/v/2.2.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/startup-jest/v/2.2.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/startup-jest/v/2.2.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/startup-jest/v/2.2.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/startup-jest/v/2.2.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/startup-jest/v/2.2.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/startup-jest/v/2.2.2"}],"database_specific":{"iocs":{"files":[{"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":["setup.mjs"],"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.","paths":["Math_Symbol.js","math_init.js"],"source":"PACKAGE_ARCHIVE"}]},"malicious-packages-origins":[{"id":"GHSA-2w9r-jxr5-frfq","import_time":"2026-08-05T00:10:17.840993235Z","modified_time":"2026-08-04T16:41:10Z","sha256":"09e009b71cf6f31908e106d0c931000e212e73db77ee534f4174935dd41ac9bd","source":"ghsa-malware","versions":["2.2.7","2.2.6","2.2.4","2.2.3","2.2.2","2.2.1"]},{"id":"IN-MAL-2026-012411","import_time":"2026-08-05T04:38:07.365961119Z","modified_time":"2026-08-05T03:55:49Z","sha256":"42e23730a5e863f9bd5b687ab2a14e9cc5279e25485dfdef4bf1a8eed027ac4b","source":"amazon-inspector","versions":["2.2.1"]},{"id":"IN-MAL-2026-012561","import_time":"2026-08-05T04:38:25.503979736Z","modified_time":"2026-08-05T04:17:30Z","sha256":"76b4f051639ca215d5a2ea65c305ab76b0d5ee18b491ac28cf59dc15cd759128","source":"amazon-inspector","versions":["2.2.5"]},{"id":"IN-MAL-2026-012693","import_time":"2026-08-05T04:38:40.372176008Z","modified_time":"2026-08-05T04:35:47Z","sha256":"a4e7ed19a58a8934f4107b5f3704c21836e82c85a8b9b5c399fa0a6525ab9c2b","source":"amazon-inspector","versions":["2.2.3"]},{"id":"IN-MAL-2026-012639","import_time":"2026-08-05T04:38:34.585721566Z","modified_time":"2026-08-05T04:28:21Z","sha256":"c4593279a2df1f70d6f98ed278ee88913f8edc71cb24dee45b148633f3657676","source":"amazon-inspector","versions":["2.2.4"]},{"id":"IN-MAL-2026-012437","import_time":"2026-08-05T04:38:10.447251573Z","modified_time":"2026-08-05T03:59:38Z","sha256":"d692cfe7c4899f23f9d8687fcd2527607a8ba71396baa3890729cc529875483d","source":"amazon-inspector","versions":["2.2.7"]},{"id":"IN-MAL-2026-012532","import_time":"2026-08-05T04:38:21.896160629Z","modified_time":"2026-08-05T04:13:32Z","sha256":"eb47f8a446977c1ed67e41b967da49a76271dff8cedb1227c19119d3a95f05fd","source":"amazon-inspector","versions":["2.2.6"]},{"id":"IN-MAL-2026-012758","import_time":"2026-08-05T06:00:00.861684241Z","modified_time":"2026-08-05T04:45:00Z","sha256":"19f6c8c410dd3a147c3d665b18de12b1b99a73887f57f3fea97c0570cd64b98d","source":"amazon-inspector","versions":["2.2.2"]}]},"credits":[{"name":"Aikido Security","contact":["https://www.aikido.dev"],"type":"FINDER"},{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"},{"name":"Socket Threat Research Team","contact":["https://socket.dev"],"type":"FINDER"}]}

数据来源:OpenSSF Malicious Packages · Apache-2.0