Supply-chain threat intelligence

Incident detail

criticalnpm·maintainer compromise·osv

Malicious code in flow-lending-sdk (npm)

flow-lending-sdk

Risk score

92

AI summary

Indexed incident for flow-lending-sdk (npm).

Description

flow-lending-sdk@9.9.9 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.

Any 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.

Technical details

Affected versions

=9.9.9>=0

Indicators

  • Advisory IDs
    90%
  • affected version=9.9.975%
  • affected version>=075%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents