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

目标: 1000 元 · 已筹: 1359 元

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

spf-analytics

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

Summary

Malicious code in spf-analytics (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
200
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmspf-analytics*
npmspf-analytics1.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-14486","published":"2026-08-25T08:30:04Z","modified":"2026-10-07T14:31:07.578929612Z","aliases":["GHSA-fj97-8h42-crgr"],"summary":"Malicious code in spf-analytics (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8dece44c5ce884af66714dbff1f022e0345e860d0090cb7bcb30fd7b352cdd77)\nindex.js is a heavily obfuscated browser script (obfuscator.io-style string-array + rotation) advertised for inclusion via unpkg on Shopify-style storefronts. At runtime it listens for the 'gokwik_events' window event and harvests customer name, phone, email, full address, city, state, country, pincode, cart line items, order total, and payment method. The captured PII is encrypted with a hardcoded RSA-OAEP public key wrapping an AES-GCM session key and POSTed to https://connector.internalwebhooks.com/spf-analytics, a destination the storefront operator did not configure. A localStorage key ('shopify_analytics_cache_7f4c91d8b2e64a0f9c37d5ab81e26f43') holds up to 500 fingerprints to suppress duplicate uploads, and a __spfAddressForwarderLoaded flag guards against double-loading. The endpoint URL, PEM key, event name, and field names are all indirected through the obfuscator string table, concealing the destination and captured fields from casual inspection of the CDN-served bundle. The package presents itself as 'analytics' but the relay is to a non-first-party endpoint hardcoded by the author, encrypted to prevent network inspection, and never disclosed to the operator embedding the script.\n\n## Source: ghsa-malware (80bf3cd2f3401671c464f9ff2b58588e8f4c6b29cf36ad71e841e42abb706241)\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":"spf-analytics","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"dcaf41c676f03579a68b2526efd7df76f4576611784e6ad0ad80404191631595","tlsh":"aa923f41aec56ea113c34f2b7b57f1f0d21b499d368048cbc628bda52464737fba5a31"}],"package_integrity":[{"filename":"spf-analytics-1.0.0.tgz","hashes":{"sha1":"7026376523615fdb7bb2de3660f3b9419501c293","sha512_sri":"sha512-tC1oks+Kfscs6nr1xSa6ltmQLbGLbBodiERyepU0lYaFJdm3W6jnC+rxrfdHgkuvD5v+n2fFRpNKmLNrRGVU+A=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/spf-analytics/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-fj97-8h42-crgr"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018732","import_time":"2026-08-25T08:49:17.968010753Z","modified_time":"2026-08-25T08:30:04Z","sha256":"8dece44c5ce884af66714dbff1f022e0345e860d0090cb7bcb30fd7b352cdd77","source":"amazon-inspector","versions":["1.0.0"]},{"id":"GHSA-fj97-8h42-crgr","import_time":"2026-10-07T14:29:05.949581509Z","modified_time":"2026-10-07T13:42:14Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"80bf3cd2f3401671c464f9ff2b58588e8f4c6b29cf36ad71e841e42abb706241","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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