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

目标: 1000 元 · 已筹: 1336

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

@withgoogle/stitch-sdk

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

Summary

Malicious code in @withgoogle/stitch-sdk (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
220
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@withgoogle/stitch-sdk*
npm@withgoogle/stitch-sdk0.1.1
npm@withgoogle/stitch-sdk0.1.2
npm@withgoogle/stitch-sdk0.1.3
npm@withgoogle/stitch-sdk0.1.4
npm@withgoogle/stitch-sdk0.1.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-6256","published":"2026-06-20T12:00:00Z","modified":"2026-08-17T04:53:41.878011260Z","aliases":["GHSA-c9hc-fqm6-wjj7"],"summary":"Malicious code in @withgoogle/stitch-sdk (npm)","details":"@withgoogle/stitch-sdk is a scope-squatting package on npm that impersonates Google's Stitch AI design tool SDK. The attacker registered the @withgoogle scope to mimic Google's withgoogle.com domain and published versions 0.1.1 and 0.1.2 under the account maximus-mcmillan on June 19, 2026. The package runs a credential harvester from a preinstall hook (scripts/preinstall.js) and an identical CLI binary (bin/cli.js). On install it scrapes email addresses and credentials from Claude Code authentication, git config, ~/.git-credentials, ~/.ssh/*.pub, the GitHub CLI, ~/.npmrc, and ~/.docker/config.json, then exfiltrates them to https://stitch-production.org/api/v1 over HTTPS with TLS verification disabled (rejectUnauthorized: false). The code is unobfuscated and relies on the trust of the @withgoogle scope name.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ffe3e7f674ed72b1e7f4cc8f75f8040e8e2efd91c98f3b0484dfdc7fe5347279)\nPackage is published under the @withgoogle npm scope but the package.json author is 'Maximus McMillan' with repository github.com/maximus-mcmillan/stitch-sdk — there is no Google affiliation. scripts/preinstall.js runs automatically on `npm install` and enumerates installer-side identity and credential sources: git config user.email (--global/--system), ~/.gitconfig, ~/.config/git/config, ~/.git-credentials (which stores plaintext https://user:token@host entries), ~/.ssh/*.pub, `gh api user`, `claude auth status`, `npm config get email`, ~/.npmrc (npm auth tokens), and ~/.docker/config.json (registry auth). The harvested values are HTTP-GET'd to https://stitch-production.org/api/v1?src=...&user=... with TLS verification explicitly disabled (rejectUnauthorized:false at scripts/preinstall.js:46) to ensure delivery. The hardcoded C2 base URL is at scripts/preinstall.js:26 (`const STITCH_SERVER_BASE = 'https://stitch-production.org/api/v1'`). The combination of @withgoogle scope impersonation, preinstall lifecycle execution, enumeration of canonical credential-file paths, and exfiltration to an attacker-controlled host with TLS verification disabled is a deliberate supply-chain attack against any developer or build system that installs this package.\n\n## Source: ghsa-malware (7ca78e4d79f70f0722c7488bb22b73d1f7bd434e9daefc55de82bbdf437b9294)\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":"@withgoogle/stitch-sdk","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.1.5","0.1.4","0.1.1","0.1.3","0.1.2"],"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"}],"indicators":{"evidence_files":[{"path":"scripts/preinstall.js","sha256":"964edea555e5c959d4705dbbc8f9d845254ffffe98346f3e8b2eaf21f8d95190","tlsh":"33d132b70aeb233430d6e8ad874f5136626bf0237605d590b85db2589fcd03856e1afe"},{"path":"package.json","sha256":"c044f05e25cdc26ea7f0096cbcd8985c208805aaa55284ee93b197fe5b027263","tlsh":"68112932cf385c7317cc27a26c394291fa51984b4934fc1972e7519c8b8d26b16be5ac"},{"path":"bin/cli.js","sha256":"1cee955bd92fb57e8951e8ec82f92751d1d0e3a49b9131f8b723c138de35b178","tlsh":"72f1847b19ab233431d6e5ad834f8132b27af0177205d190b86db3885fcd0385692afa"}],"package_integrity":[{"filename":"stitch-sdk-0.1.5.tgz","hashes":{"sha1":"b61a062df2b83eb3368da1792fc9b6719f28654a","sha512_sri":"sha512-2VqODian6kN59wE0D1rKFolIfpk7KJmO/3qjM2ZrHmXGQMZrrrfrsrLQWRoFLfzXQtcQcSLWHkvHV/D2qz5OPQ=="}}]}}}],"references":[{"type":"REPORT","url":"https://safedep.io/withgoogle-stitch-sdk-scope-squat-credential-harvester/"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@withgoogle/stitch-sdk/v/0.1.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@withgoogle/stitch-sdk/v/0.1.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@withgoogle/stitch-sdk/v/0.1.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@withgoogle/stitch-sdk/v/0.1.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@withgoogle/stitch-sdk/v/0.1.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-c9hc-fqm6-wjj7"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007362","import_time":"2026-06-23T20:48:31.28226437Z","modified_time":"2026-06-23T20:36:59Z","sha256":"b2169f45b1bccbdfa6770f0df01b247787d466438732a9e99da41b721c71a940","source":"amazon-inspector","versions":["0.1.5"]},{"id":"IN-MAL-2026-007363","import_time":"2026-06-23T20:48:31.387547554Z","modified_time":"2026-06-23T20:37:03Z","sha256":"bab8846780175f96cb03d7e9026fe9377429830762509860ce735f4623ee9fc0","source":"amazon-inspector","versions":["0.1.4"]},{"id":"IN-MAL-2026-007365","import_time":"2026-06-23T20:48:31.612440061Z","modified_time":"2026-06-23T20:37:04Z","sha256":"d8050a859b7a3791ed5cb4cbcbbc5f280c75c69c916a69307c0f57e12a5f20c0","source":"amazon-inspector","versions":["0.1.1"]},{"id":"IN-MAL-2026-007366","import_time":"2026-06-23T20:48:31.712517014Z","modified_time":"2026-06-23T20:37:09Z","sha256":"ffe3e7f674ed72b1e7f4cc8f75f8040e8e2efd91c98f3b0484dfdc7fe5347279","source":"amazon-inspector","versions":["0.1.3"]},{"id":"IN-MAL-2026-007364","import_time":"2026-06-23T20:48:31.471162308Z","modified_time":"2026-06-23T20:37:03Z","sha256":"6edcc9c4a60feb2f1f4a7fbc6f461202aeab3b9dc167d746d8770bcfa6ed202a","source":"amazon-inspector","versions":["0.1.2"]},{"id":"GHSA-c9hc-fqm6-wjj7","import_time":"2026-08-17T04:43:14.020649Z","modified_time":"2026-08-14T09:44:39Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"7ca78e4d79f70f0722c7488bb22b73d1f7bd434e9daefc55de82bbdf437b9294","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}

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