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

目标: 1000 元 · 已筹: 1359 元

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

react-photo-views

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

Summary

Malicious code in react-photo-views (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
3
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmreact-photo-views*
npmreact-photo-views1.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-12T19:46:16Z","published":"2026-06-11T09:44:58Z","schema_version":"1.7.4","id":"MAL-2026-5634","aliases":["GHSA-f2m2-w8gp-rjgq"],"summary":"Malicious code in react-photo-views (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b0a47353c6255d7edb625c7ea890545e106900caeae477f0ebff432ae39c53e5)\nPackage name 'react-photo-views' (plural) impersonates the popular 'react-photo-view' (singular) component — README badges, downloads URLs, and documentation links in this package all point to the legitimate singular-name package and its docs at react-photo-view.vercel.app. The dist builds (dist/react-photo-view.js and the esm/modern variants) append a top-level IIFE that descrambles two large opaque string literals using a deterministic Fisher-Yates-style PRNG seeded with 2540575, looks up an 11-character property on the descrambler function (length of 'constructor', i.e. the Function constructor), and invokes the resulting function on further descrambled data with argument 7942. Before the call, `require` and `module` are stashed on the global object (`global.r=require`, `global._V=\"A6-253-331\"`), which hands the runtime-constructed code full module-loader access. Any consumer who require()s or imports this package immediately executes attacker-supplied code that was never visible to static review. The same payload is duplicated across cjs, esm and modern builds and is appended after legitimate photo-viewer code, consistent with a dropper injected into a copy of the real package's source.\n\n## Source: ghsa-malware (a99fbc6cc42b7ec545aaa5d9ade01d00d4a22c4c35fc241681eab542599503df)\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":"react-photo-views"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["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"}],"indicators":{"domains":["api.trongrid.io","bsc-dataseed.binance.org","fullnode.mainnet.aptoslabs.com","bootstrap.pypa.io"],"evidence_files":[{"path":"dist/react-photo-view.js","sha256":"23ad529589554668711c94c8f7486e96f5263eb3bbad88ab741dd6c6c40d7eaf","tlsh":"55a2d6ccb194f07892937136802f945eb73a3a44f85a5a00d27ad8c87cb4559937bfbe"},{"path":"package.json","sha256":"332d2d134b7465ea2bf6bf99f0d9c76895a7e3780ef26e1582445d5b9175bb69","tlsh":"e4112420c8506ee309db11792cb515c3619d1a0f48acbe0c7387d11d0b5e8df52fa9ad"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-f2m2-w8gp-rjgq"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-photo-views/v/1.0.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"a99fbc6cc42b7ec545aaa5d9ade01d00d4a22c4c35fc241681eab542599503df","import_time":"2026-06-11T11:47:48.922345147Z","id":"GHSA-f2m2-w8gp-rjgq","modified_time":"2026-06-11T09:44:59Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"71f60b099dad98ec8dc302081d7f3ed6d8c6a4e89ac29d3c6e9ff8f0f2290cc0","import_time":"2026-06-12T19:44:19.05208323Z","id":"IN-MAL-2026-006198","modified_time":"2026-06-12T19:11:04Z","versions":["1.0.1"]},{"source":"amazon-inspector","sha256":"b0a47353c6255d7edb625c7ea890545e106900caeae477f0ebff432ae39c53e5","import_time":"2026-06-12T19:44:18.963294684Z","id":"IN-MAL-2026-006197","modified_time":"2026-06-12T19:11:03Z","versions":["1.0.1"]}]}}

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