{"id":"MAL-2026-10902","summary":"Malicious code in solana-web3-patched (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e99e6f959c8df3e2933c860ba3d36dc5dbbd27d97a69a3e97a5a7feaf7e24899)\nPackage name 'solana-web3-patched' resembles the legitimate '@solana/web3.js' library and is published as an unscoped lookalike at version 1.0.0. The bundled lib/index.cjs.js and lib/index.esm.js contain co-occurring patterns of child_process import, fetch/POST/GET calls, and shell utilities (curl, ping) within the same files. Pattern matches alone in a minified/bundled file cannot conclusively distinguish legitimate Solana RPC client behavior from exfiltration, and traced-code corroboration is unavailable. Given the typosquat-shaped name plus presence of child_process + outbound HTTP + curl/ping primitives in the bundle, the package warrants human review before allowing into installer environments. A reviewer should verify whether the child_process and curl/ping references are reachable at require/install time and whether any hardcoded destinations are attacker-controlled.\n","aliases":["GHSA-p492-8qvf-j49c"],"modified":"2026-09-01T11:31:27.691313532Z","published":"2026-07-20T10:59:24Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.0"],"id":"RLMA-2026-05624","import_time":"2026-07-20T13:14:52.02403844Z","modified_time":"2026-07-20T10:59:24Z","sha256":"13702864205b5765c6d58ae6826703e1368c2fefa58e7220ff983af4f1956dea","source":"reversing-labs"},{"versions":["1.0.0"],"id":"IN-MAL-2026-012969","import_time":"2026-08-05T06:00:25.851717665Z","modified_time":"2026-08-05T05:15:06Z","sha256":"e99e6f959c8df3e2933c860ba3d36dc5dbbd27d97a69a3e97a5a7feaf7e24899","source":"amazon-inspector"},{"sha256":"3b78ec8bd31aee7c11ed93989d76308c36496b53f9eda8683953edd1cba69219","source":"reversing-labs","id":"RLUA-2026-06505","import_time":"2026-09-01T11:18:25.170284378Z","modified_time":"2026-08-24T17:11:41Z"}]},"references":[{"type":"WEB","url":"https://research.jfrog.com/post/solana-fakefix"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/solana-web3-patched/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-p492-8qvf-j49c"}],"affected":[{"package":{"name":"solana-web3-patched","ecosystem":"npm","purl":"pkg:npm/solana-web3-patched"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/solana-web3-patched/MAL-2026-10902.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"sha256":"f5d62c50dac9bc82c50b7b5a3b230009127f1f4b04d766db109fcb7a80b86262","tlsh":"1c74a2097af260a2499330a61f2b6485a736d007350cd8757dce93742f5ebbc86b7fa4","path":"lib/index.cjs.js"},{"path":"lib/index.esm.js","sha256":"84138890f476d20b59bb586f2f24856c61ba20d389984718c1b33a7b94e67c24","tlsh":"ae74b4497af221a20d5330a66f2b6045a736a107390cdc647dce93641f5ebbc87b7fa4"}],"package_integrity":[{"filename":"solana-web3-patched-1.0.0.tgz","hashes":{"sha1":"029214ca4e3f16dfbe2da7968c0b18278efcc32e","sha512_sri":"sha512-LlT5ioq080PVlGzTREE/zkLRBceWVGjWKpCGIYA55+JdITtHGvKNQllp8s2bURvIVh7cyLCaAmNkJgOvBqrzew=="}}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}