{"id":"MAL-2026-13722","summary":"Malicious code in fsbrowse (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5b7866973ba5f2971efedd027cce57aefb5b8f27d7304de323261832c29bbd82)\nThe package's main entry file (index.js) contains a legitimate Express file-server module followed by a unicode-escape-obfuscated IIFE appended after whitespace padding. When the module is loaded (via `require('fsbrowse')`, `server.js`, or the `fsbrowse` bin), the trailing code queries Ethereum RPC endpoints (eth.blockscout.com, 1rpc.io/eth, eth.drpc.org, ethereum-rpc.publicnode.com, eth-mainnet.public.blastapi.io) for the latest outgoing transaction of hardcoded address 0xa322E5f3D311D3080e6f0121063e9aDC2490Ef1a, decodes two IPv4 addresses from the transaction `to` field, then fetches XOR-encrypted payloads from those hosts over http://\u003cip\u003e:443/0x/cls and executes the decrypted Node code via `eval` and via `spawn('node', ['-e',...], { detached: true, stdio: 'ignore' })`. Core module names (`http`, `https`, `zlib`, `url`, `child_process`), method names (`spawn`, `eth_getBlockByNumber`, `eth_getTransactionCount`), destination URLs, the Ethereum address, and XOR keys are all written as `\\u00XX` escape sequences to hide the behavior from casual review. This is the EtherHiding technique: on-chain resolution of C2 IPs to defeat static blocklists, followed by fetch-and-execute of attacker-supplied code with the installer's privileges at import time.\n\n## Source: ghsa-malware (f9a611d53c7fd672a4e95a139a4eb18692d4a5a265c22c328e20a99b59ac432e)\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","aliases":["GHSA-pvvh-h7rh-2c7g"],"modified":"2026-08-11T12:30:12.916547143Z","published":"2026-08-10T16:09:09Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-08-11T00:38:01.346356664Z","modified_time":"2026-08-10T16:09:10Z","sha256":"f9a611d53c7fd672a4e95a139a4eb18692d4a5a265c22c328e20a99b59ac432e","source":"ghsa-malware","versions":["0.2.28"],"id":"GHSA-pvvh-h7rh-2c7g"},{"source":"amazon-inspector","versions":["0.2.28"],"id":"IN-MAL-2026-017291","import_time":"2026-08-11T12:23:05.232317161Z","modified_time":"2026-08-11T11:58:55Z","sha256":"5b7866973ba5f2971efedd027cce57aefb5b8f27d7304de323261832c29bbd82"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-pvvh-h7rh-2c7g"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/fsbrowse/v/0.2.28"}],"affected":[{"package":{"name":"fsbrowse","ecosystem":"npm","purl":"pkg:npm/fsbrowse"},"versions":["0.2.28"],"database_specific":{"indicators":{"evidence_files":[{"tlsh":"b9b2c78657226b7a4a327358cd32990eeb72c9a375068264fe6f75806f738d08351fdc","path":"index.js","sha256":"f2a3c35cd49fce09824cbebb3a6c065b2749a672312e38e49c17c47999660174"}],"package_integrity":[{"hashes":{"sha1":"2c8fc0f6f39897039c46cb48d19674423888cbf8","sha512_sri":"sha512-II1ptMbTiBjpwPoVb/YjJBJFQiDPbSAeVb4JSkyax7yJmxySGfpvDT5yc4UE0k9P0hJxmy8T2BUXcY6Y181ZUw=="},"filename":"fsbrowse-0.2.28.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/fsbrowse/MAL-2026-13722.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}