# MAL-2026-5803: Malicious code in flow-lending (npm)


- **Type:** Malicious package
- **Package:** `flow-lending` (npm)
- **Published:** 15 Jun 2026
- **Also known as:** GHSA-pgcr-8w67-72j9

## What is MAL-2026-5803?

MAL-2026-5803 is a malicious package in flow-lending, published on 15 Jun 2026. 

### Official description

Sentinel-high (9.9.9) dependency-confusion squat of an internal Cardano/DeFi lending pkg. preinstall `node index.js || true` auto-execs a credential exfil: harvests env secrets (mnemonic/private key/token/blockfrost API key) and POSTs to raw attacker C2 2.25.140.71:8443/surflending/npm-confusion. 2-pkg campaign (flow-lending + surf-lending). c913 + c252.

On `npm install`, the package's preinstall lifecycle hook executes index.js, which collects host identity (hostname, username, cwd) and enumerates process.env, filtering keys against the regex /key|seed|secret|token|private|mnemonic|password|blockfrost|redis|telegram|batcher/i. The collected JSON is POSTed over HTTPS to a hardcoded bare IP destination (https://2.25.140.71:8443/surflending/npm-confusion). The package provides no legitimate functionality; the path component 'surflending/npm-confusion' and the 9.9.9 version (a version-bump pattern used to win dependency-confusion resolution) indicate a directed dependency-confusion attack against an internal Cardano/SundaeSwap-related package name. Any installer with wallet-related secrets in environment variables (mnemonics, private keys, blockfrost tokens, telegram bot tokens, redis credentials, batcher keys) loses them at install time.

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.

## What should I do about MAL-2026-5803?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-5803 is a malicious package: flow-lending (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-5803/ (Markdown: https://insights.sbomify.com/MAL-2026-5803/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-5803

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-5803/
Summaries are generated and may contain mistakes; the official description above is the record.
