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

目标: 1000 元 · 已筹: 1359 元

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

@langgraphjs/toolkit

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

Summary

Malicious code in @langgraphjs/toolkit (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
7
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@langgraphjs/toolkit*
npm@langgraphjs/toolkit1.2.10
npm@langgraphjs/toolkit1.2.11
npm@langgraphjs/toolkit1.2.12
npm@langgraphjs/toolkit1.2.13
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-08T21:29:32Z","published":"2026-04-07T12:15:13Z","schema_version":"1.7.4","id":"MAL-2026-2509","aliases":["GHSA-pq32-2vxj-cr62"],"summary":"Malicious code in @langgraphjs/toolkit (npm)","details":"Package collects and sends sensitive system info to a hardcoded server. The package masquerades as a LangGraph JS utility but contains a malicious postinstall script.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8997da61c158afa991f24db840b0117557564c2f3eca4204380b472a35dc811e)\nThe package's scripts/postinstall.js executes on npm install and collects installer-side identity and cloud/git metadata, then POSTs it as JSON to a hardcoded Google Cloud Run endpoint at npm-package-logger-228835561205.europe-west1.run.app. Collected data includes: git-configured emails from ~/.gitconfig,.git/config, and up to 15 reflog HEAD author emails; GitHub CLI login and email from hosts.yml; SSH public key comments from ~/.ssh/*.pub; GCP project and account identifiers from ~/.config/gcloud/properties; AWS profile names from ~/.aws/config; /etc/resolv.conf search domain; os.hostname(), os.userInfo().username, os.platform(), and cwd; plus parent project package.json details. The package name @langgraphjs/toolkit impersonates the legitimate @langchain/langgraph ecosystem (and the langgraphjs.guide domain referenced in the script), and declares @langchain/langgraph and @langchain/core as dependencies to appear legitimate. Its advertised main entry dist/index.js is not shipped in the tarball — only src/ and scripts/ — so the only code that actually runs on install is the harvester. Behavior is framed as anonymous telemetry/compatibility diagnostics, but the systematic enumeration of ~/.ssh, ~/.aws, ~/.config/gcloud, ~/.gitconfig, and git reflog is credential-adjacent identity theft, not telemetry.\n\n## Source: ghsa-malware (417cbe13d7382f7491f381d4d2c5cb34c2f8f90addabece3073296a1839f285f)\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":{"ecosystem":"npm","name":"@langgraphjs/toolkit"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.2.10","1.2.11","1.2.12","1.2.13"],"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"}],"indicators":{"domains":["npm-package-logger-228835561205.europe-west1.run.app"],"evidence_files":[{"path":"scripts/postinstall.js","sha256":"a336bd4fbdc46e5a3e9437baef19f9ee4cdac8716eba3a48ced1cb26a4335fa1","tlsh":"1fc1a6b253ea11123651e7ddb22b0041e7b9f2133908e8a4b96d73065fcdd3843b39ba"},{"path":"package.json","sha256":"8a824586be67088024831a1f5ea2f4ac0452494178876fafce940f3c58708c10","tlsh":"96118820e9258e3313c80a9a68250103ad36e80f8d16bc4cb7d6031dcb5e97f15be2ad"}],"package_integrity":[{"filename":"toolkit-1.2.10.tgz","hashes":{"sha1":"9fa25b10ce33b28dfaa3e1902f26875b13c99fd1","sha512_sri":"sha512-wlBU8+/TNWftn0sB9DwV6Liyg/GnU1UauDHTXZQx8BgwSBbRR/WGDkkkkkLKCaakg95uOANKSthV6Gkbr3LgrQ=="}}]}}}],"references":[{"type":"REPORT","url":"https://app.safedep.io/community/malysis/01KNKXNEVJTCVM0RAC2DGCMP01"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@langgraphjs/toolkit/v/1.2.10"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@langgraphjs/toolkit/v/1.2.11"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@langgraphjs/toolkit/v/1.2.12"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-pq32-2vxj-cr62"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@langgraphjs/toolkit/v/1.2.13"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com","inspector-research@amazon.com"]},{"name":"SafeDep","type":"FINDER","contact":["https://safedep.io"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"5da55bbb47afb596b9c1cfdb5e7e506568fe98d8f55690ef0e62af9a23a9ea4d","import_time":"2026-04-10T17:21:49.838154183Z","modified_time":"2026-04-10T17:02:58Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"274245b3c75b3f39ef78565ae52347547a651bf2a3f9c6510c6d83832c7311a2","import_time":"2026-06-12T19:43:36.55971976Z","id":"IN-MAL-2026-005818","modified_time":"2026-06-12T19:02:36Z","versions":["1.2.10"]},{"source":"amazon-inspector","sha256":"b35ab710ea743243a1edc74aad1ef0774efdd42d56a0b648fde3a9791e3a5012","import_time":"2026-06-12T19:43:36.656512267Z","id":"IN-MAL-2026-005819","modified_time":"2026-06-12T19:02:37Z","versions":["1.2.10"]},{"source":"amazon-inspector","sha256":"141df645ce9e91c3eb9e0720891753dbb78802e1f0e9d6e068f9fc7554f04cfb","import_time":"2026-06-26T20:38:47.333886148Z","id":"IN-MAL-2026-007657","modified_time":"2026-06-26T19:47:48Z","versions":["1.2.11"]},{"source":"amazon-inspector","sha256":"dff4b6945e28f0b023c4afeddcd13de383dde642860f70b9442227b0e27a5ba7","import_time":"2026-06-29T07:09:10.623879483Z","id":"IN-MAL-2026-007759","modified_time":"2026-06-29T05:51:55Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.2.12"]},{"source":"ghsa-malware","sha256":"417cbe13d7382f7491f381d4d2c5cb34c2f8f90addabece3073296a1839f285f","import_time":"2026-07-07T15:15:50.723713407Z","id":"GHSA-pq32-2vxj-cr62","modified_time":"2026-07-07T13:59:39Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"8997da61c158afa991f24db840b0117557564c2f3eca4204380b472a35dc811e","import_time":"2026-07-08T21:27:49.650787087Z","id":"IN-MAL-2026-008603","modified_time":"2026-07-08T20:34:56Z","versions":["1.2.13"]}]}}

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