flow-lending-sdknpm
Malicious code in flow-lending-sdk (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
[email protected] declares preinstall: node index.js || true in package.json, causing index.js to execute automatically on npm install. The script collects host identity (hostname, username, cwd) and iterates process.env, filtering for keys matching /key|seed|secret|token|private|mnemonic|password|blockfrost|redis|telegram|batcher/i — i.e., wallet seed phrases, private keys, API tokens, and infrastructure credentials. The collected JSON is HTTPS-POSTed to the bare IP 2.25.140.71:8443 at path /surflending/npm-confusion. The package ships no real SDK functionality (description is the placeholder flow-lending-sdk SDK, version is 9.9.9), and the exfil URL path explicitly names this as a dependency-confusion attack — almost certainly targeting developers of Cardano/Flow lending infrastructure who expect a private internal package of this name.
Malicious versions
Indicators of compromise (SHA-256)
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Scan your dependencies
O3 Security blocks malicious packages like this at install time and in CI.
Supply-chain protection