sui-bcs-codec (npm) · Malicious Code
Affects sui-bcs-codecSource GCVE Database
Malicious package : remove sui-bcs-codec and rotate any secrets on hosts that installed it.
Data as of 12 Aug 2026, 16:41 UTC
Malicious package
Published to npm · OSV MAL-2026-13767
What to do
Remove sui-bcs-codec from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmsui-bcs-codec | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package 'sui-bcs-codec' versions 1.0.0, 1.0.1, and 1.0.2 contains malicious code that exfiltrates sensitive private key files and environment variables from the user's system. Upon requiring the package, it reads wallet keystore files and environment variables containing private keys, encodes them, and sends the data to a GitHub repository controlled by the attacker. After exfiltration, the package modifies its own source code to remove the malicious payload, making detection harder. Installation of this package results in immediate compromise of on-chain wallet keys and potentially full system compromise.