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

目标: 1000 元 · 已筹: 1359 元

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

@servicetitan/html-sketchapp

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

Summary

Malicious code in @servicetitan/html-sketchapp (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2,421
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@servicetitan/html-sketchapp4.2.10
npm@servicetitan/html-sketchapp4.2.11
npm@servicetitan/html-sketchapp4.2.12
npm@servicetitan/html-sketchapp4.2.13
npm@servicetitan/html-sketchapp4.2.14
npm@servicetitan/html-sketchapp4.2.8
npm@servicetitan/html-sketchapp4.2.9
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-11878","published":"2026-08-04T15:27:50Z","modified":"2026-08-05T06:02:51.626691421Z","aliases":["GHSA-97vr-59jg-x83f"],"summary":"Malicious code in @servicetitan/html-sketchapp (npm)","details":"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 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 (78569ef919db1a63d5ac87f07c0fc46c027a58149071eef17d217b6c5094b0b8)\nThe 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.\n\n## Source: ghsa-malware (d970f3c09cd35c6f124b015d20b233e923d772b9ddd1f40be125fa2511d24f41)\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/html-sketchapp","ecosystem":"npm"},"versions":["4.2.8","4.2.9","4.2.10","4.2.11","4.2.12","4.2.13","4.2.14"],"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":"html-sketchapp-4.2.10.tgz","hashes":{"sha1":"35f81095e670a67f0b8583ac9bc0242a17edb859","sha512_sri":"sha512-UIKIoM3iRVe1b9Odthfho7GNiaV+kuLX5pi9BSLrxRGjpf82GHyZTdmOCDQDsGvwukzKWQG0Dn6mDVT/HNMwsA=="}}]}}}],"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/html-sketchapp"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-97vr-59jg-x83f"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/html-sketchapp/v/4.2.10"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/html-sketchapp/v/4.2.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/html-sketchapp/v/4.2.12"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/html-sketchapp/v/4.2.13"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/html-sketchapp/v/4.2.11"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/html-sketchapp/v/4.2.14"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@servicetitan/html-sketchapp/v/4.2.9"}],"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-97vr-59jg-x83f","import_time":"2026-08-05T00:10:18.000387252Z","modified_time":"2026-08-04T16:42:38Z","sha256":"d970f3c09cd35c6f124b015d20b233e923d772b9ddd1f40be125fa2511d24f41","source":"ghsa-malware","versions":["4.2.14","4.2.13","4.2.12","4.2.11","4.2.10","4.2.9","4.2.8"]},{"id":"IN-MAL-2026-011467","import_time":"2026-08-05T00:44:53.34953417Z","modified_time":"2026-08-05T00:19:57Z","sha256":"108a94f64116bc496b5e37c9be8344d6c3325323d8b44a6e422683b0742b5f9e","source":"amazon-inspector","versions":["4.2.10"]},{"id":"IN-MAL-2026-011473","import_time":"2026-08-05T01:39:30.583312169Z","modified_time":"2026-08-05T00:56:55Z","sha256":"ffa8a6063e6d342d53e8e671bb06420406df6fd02aebef35cee63d5472330fac","source":"amazon-inspector","versions":["4.2.8"]},{"id":"IN-MAL-2026-011998","import_time":"2026-08-05T03:12:08.267947803Z","modified_time":"2026-08-05T02:57:10Z","sha256":"de9683b24a9e95ffccb4cc28b80afe1d90526f3b88ac363b27fd9a38c5508ff1","source":"amazon-inspector","versions":["4.2.12"]},{"id":"IN-MAL-2026-012511","import_time":"2026-08-05T04:38:18.969524078Z","modified_time":"2026-08-05T04:10:12Z","sha256":"1d9e3734ec694c055bac06ed4de2821bbaf4d6b240a43fc1eb1eca1ac7629956","source":"amazon-inspector","versions":["4.2.13"]},{"id":"IN-MAL-2026-012642","import_time":"2026-08-05T04:38:34.871052714Z","modified_time":"2026-08-05T04:28:44Z","sha256":"c33984ac33c018761b0e474c37d51d658b99079d41e8469df32ec0ba5a8f7625","source":"amazon-inspector","versions":["4.2.11"]},{"id":"IN-MAL-2026-012458","import_time":"2026-08-05T04:38:12.700104118Z","modified_time":"2026-08-05T04:02:35Z","sha256":"fd54d17e51f6e98b53153f216c570e37dbc47ed649e67fe2f57b6d1d528b7061","source":"amazon-inspector","versions":["4.2.14"]},{"id":"IN-MAL-2026-012773","import_time":"2026-08-05T06:00:02.565348452Z","modified_time":"2026-08-05T04:47:03Z","sha256":"78569ef919db1a63d5ac87f07c0fc46c027a58149071eef17d217b6c5094b0b8","source":"amazon-inspector","versions":["4.2.9"]}]},"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