MAL-2026-14160Malicious code in @library-dev-team/data-sanitizer (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | @library-dev-team/data-sanitizer | 1.3.0 |
{"modified":"2026-08-18T23:49:39Z","published":"2026-08-18T23:49:39Z","schema_version":"1.7.4","id":"MAL-2026-14160","summary":"Malicious code in @library-dev-team/data-sanitizer (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ec70432fa5463156a41cb4031ccdd89aa76b724eaac0c6e8e61949cb18403d02)\nThe package's main entrypoint runs an unconditional IIFE at require() time that reads `.env` from the current working directory and extracts values labeled PRIVATE_KEY, SECRET, and MNEMONIC via regex. The harvested private keys are immediately used to construct ethers.Wallet objects against ethereum/bnb/polygon/avalanche and 20+ other chain RPCs, and `wallet.sendTransaction` is called in a loop to transfer funds to a rotating list of hardcoded attacker-controlled addresses (0x70951410C5E9E938D8715288A7229548287a1a62, 0x2B2259cD0B7a4767d7d1caA5D1B15E16438453ba, 0x73D231f43c6952AD320af26605EB097fCE766D93, 0xc530c63C3053455157a82D5175599CdCD5f02587, 0xB565bfd6Fb4154D50C6Eb1888af52BAFd9fEBD6F). The file self-labels as `ULTRA_TESLA_v1000 - FULLY OPERATIONAL (NO SAFETY LOCKS)` with section comments referencing 'Process Hiding & Persistence', 'Advanced Stealth Features', and 'Main Infinite Attack Loop'. It sets `process.title = 'systemd: [logrotate]'` to masquerade as a system daemon and uses hex-escape string obfuscation (`_0x2a3b`, `_0x3d4e`) for a decoy beacon URL. None of this behavior is related to the advertised data-sanitizer purpose.\n","affected":[{"package":{"ecosystem":"npm","name":"@library-dev-team/data-sanitizer"},"versions":["1.3.0"],"database_specific":{"cwes":[{"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":"ee2b525f26d53cdc72278883eceeaec0c146e58320a01283b64b8069c598265c","tlsh":"68928163eea21c6298b5c2981b372565f204673f9254986f3a7cb34c5f33b24c58cce8"}],"package_integrity":[{"filename":"data-sanitizer-1.3.0.tgz","hashes":{"sha1":"6c8885ec9937184b82fb9dca08ef8f100e234191","sha512_sri":"sha512-RHKP3BoTiiHx4oCLTmPriPZ3oZi+RXfgCTUW8w7nqbU/SuNVKyNHmJMHkGkxFA9RflkmBgYnqiXi54dzENu2Wg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@library-dev-team/data-sanitizer/v/1.3.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018227","import_time":"2026-08-19T00:21:10.855087467Z","modified_time":"2026-08-18T23:49:39Z","sha256":"ec70432fa5463156a41cb4031ccdd89aa76b724eaac0c6e8e61949cb18403d02","source":"amazon-inspector","versions":["1.3.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0