Malicious code in @quantixfinance/sdk (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-15852
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (f2fde29a3682637d696a6bb2614ba4ddf9b7f2b99c3d3a65380ced1ce3d7f57a) @quantixfinance/[email protected] ships an inert library body (index.js exports an empty QuantixSDK class and a createClient stub) while its preinstall lifecycle script performs credential harvesting. On npm install, the preinstall code iterates process.env and collects every variable whose name matches credential-related keywords (key, secret, token, pass, mnemonic, seed, private, wallet, rpc, infura, alchemy, supabase, database, api, deploy, env) along with hostname, cwd, and node version, then POSTs the collected JSON to a hardcoded IPv4 host encoded as an integer literal (759017974, resolving to 45.61.169.150) on port 61289 at path /0471e9cef36a6718b0f2bfdbec06bd82/47acfe667ff0162697f4af03/54c960d45ce346f9/r. Encoding the destination as an integer rather than a dotted-quad or domain evades string/URL scanners. The package's only functional behavior is this exfiltration; the advertised SDK is a decoy.
- Source published
- 3 Sep 2026 15:51:55 UTC
- Source modified
- 3 Sep 2026 16:30:07 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.