{"id":"MAL-2026-17179","summary":"Malicious code in wallet-connect-adapter (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4135dd91724bdca6fc36f3a49906d219acc67afde7802cb1bd114d128984ca3d)\nThe package's postinstall hook runs `node./loader.js`, which base64-decodes an ~8 KB embedded blob, XOR-decrypts it with a hardcoded 32-byte key, and pipes the resulting bytes into a detached, window-hidden `python -c -` child process via stdin. The loader also silently `pip install`s `requests` if missing. The advertised library surface in `index.js` is an explicit stub whose `connect()` throws, and `package.json` restricts installation to `os: [\"win32\"]`, so the tarball has no functional wallet-adapter behavior — its only effect on install is to execute the obfuscated Python payload on a Windows developer's machine. The combination of a hidden opaque payload, XOR-obfuscated delivery, detached hidden Python execution at `npm install` time, an inert cover-story main module, and OS pinning to Windows is a targeted install-time dropper.\n","modified":"2026-09-25T03:00:07.534025931Z","published":"2026-09-25T02:38:56Z","database_specific":{"malicious-packages-origins":[{"sha256":"4135dd91724bdca6fc36f3a49906d219acc67afde7802cb1bd114d128984ca3d","source":"amazon-inspector","versions":["1.4.2"],"id":"IN-MAL-2026-020531","import_time":"2026-09-25T02:45:28.52017284Z","modified_time":"2026-09-25T02:38:56Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/wallet-connect-adapter/v/1.4.2"}],"affected":[{"package":{"name":"wallet-connect-adapter","ecosystem":"npm","purl":"pkg:npm/wallet-connect-adapter"},"versions":["1.4.2"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"659956d8936ad347f41c1af3831d301e90f743eaf49596e3aa223defcf82c945","tlsh":"a1429fa53c3ae839223186fc1a7716e8125fc454566ee0c0b6cd8af6ed95cf85e770c1","path":"loader.js"},{"tlsh":"0ad0722d927693b0030b2140880adc50e7f84030a22196800a84c2989024e8ccaa27ca","path":"index.js","sha256":"dd8bd3467ca1c7cb2e9c8beebbd5f89255af044dc54cf2054db1add7f35b38a3"}],"package_integrity":[{"filename":"wallet-connect-adapter-1.4.2.tgz","hashes":{"sha512_sri":"sha512-wLZ9LvWp03ifk0O4tv5Js+VU/JsButlHGIMbpaiXTu8RRGoalIsJyK2W/gI4Yr1GS6h0pV7zLirhEMSAY+pxow==","sha1":"dfd8d0539f7adb0500f6b4ac3f03aafb956766ab"}}]},"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/wallet-connect-adapter/MAL-2026-17179.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}