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

目标: 1000 元 · 已筹: 1359 元

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

analytics-widget

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

Summary

Malicious code in analytics-widget (npm)

凭据/密钥窃取
AI 分析整理claude-sonnet-4-6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
320
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.0.0archived——VIP 下载
1.0.1unavailable———
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmanalytics-widget*
npmanalytics-widget1.0.0
npmanalytics-widget1.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17163","published":"2026-09-24T14:53:59Z","modified":"2026-09-30T06:45:03.208463765Z","aliases":["GHSA-548g-r2c9-6chm"],"summary":"Malicious code in analytics-widget (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4b78f3ed716380da74c5d54de6e24b6b128536a7ce5772e8b05d03108a1d9b74)\nThe package is published as 'analytics-widget' with an empty description, but its main module contains no analytics functionality. On load, index.js schedules a 2-second timer that reads the 'token' key from browser localStorage, falls back to a JSON serialization of the entire localStorage store if that key is missing, and POSTs the result to the relative endpoint '/addPost' via fetch. When bundled into a consumer's frontend, every end-user session that loads the page has their auth token (or the full localStorage contents) sent to whichever origin serves the bundle, enabling session hijacking of the consuming application's users. The package name and empty metadata serve as a cover story; no legitimate analytics code is present.\n\n## Source: ghsa-malware (399579776689b5ab6b5fe78e2c79da4ddf4950f898e9017333bdadaf3603a7f3)\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":"analytics-widget","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0","1.0.1"],"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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"775898de2fc58b3a5f8988282921e41803227599568a3840c86cb518501f7986","tlsh":"69d02b93146a68019b79d9fa1cf1e03816354419b0ab48a02dd2848d1fceb0c53b60c8"},{"path":"package.json","sha256":"99b436357d60930761c6dc23d536a0b458cc914ab042f8a3d8fedf393668728c","tlsh":"94d0a7145a22943305c152620d1a8443b360cf5f10407c0c57cf581c42cf6b35dfa30c"}],"package_integrity":[{"filename":"analytics-widget-1.0.0.tgz","hashes":{"sha1":"c1a7fbcca75159b1a8358ee195a42362e3b3afe9","sha512_sri":"sha512-+ENqAVm/OQj2qYXMhxFcGWvdaAiXehSaLCHqLWFwpTAeiUiDJJ8byQ3LN7jrqxPsArRdnBwV/eCeolAQUbnCiw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/analytics-widget/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/analytics-widget/v/1.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-548g-r2c9-6chm"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020518","import_time":"2026-09-24T15:18:50.041207129Z","modified_time":"2026-09-24T14:54:07Z","sha256":"4b78f3ed716380da74c5d54de6e24b6b128536a7ce5772e8b05d03108a1d9b74","source":"amazon-inspector","versions":["1.0.0"]},{"id":"IN-MAL-2026-020517","import_time":"2026-09-24T15:18:49.928282524Z","modified_time":"2026-09-24T14:53:59Z","sha256":"82d3b7c57f6ef962fd5de4bb10adaaacac2c030aa5598c173aba084c37633c2c","source":"amazon-inspector","versions":["1.0.1"]},{"id":"GHSA-548g-r2c9-6chm","import_time":"2026-09-30T06:43:04.817884401Z","modified_time":"2026-09-30T05:51:33Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"399579776689b5ab6b5fe78e2c79da4ddf4950f898e9017333bdadaf3603a7f3","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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