move-bcs-codec@1.0.0
Malicious code in move-bcs-codec (npm)
Analysis
The postinstall hook (install.js) of this package steals Sui wallet keys and environment secrets and exfiltrates them to a remote GitHub repository. On install it reads ~/.sui/sui.keystore (Sui private keys), ~/.sui/sui_config/client.yaml and sui_config.yaml, and scans the current directory and home directory for .env files containing SUI_, PK_B64, or PRIVATE_KEY. All found files are base64-encoded, gzipped, and uploaded via the GitHub API (api[.]github[.]com) to the repository butongwan/sui-research-notes on the 'reports' branch under the path fingerprints/<timestamp>-<pid>.json.gz, authenticated with a hardcoded GitHub personal access token. The upload is silent (errors swallowed) and runs automatically on install.
- analyzed by
- Leitwacht
- first seen
- Aug 6, 2026, 04:43 PM
- analyzed
- Aug 6, 2026, 04:43 PM
Related advisories
- python-bitcoinlib@1.0.2
- simple-date-formatter-new-6@1.0.0
- simple-date-formatter-new-3@1.0.0
- simple-date-formatter-util-13@1.0.0
- simple-date-formatter-util-11@1.0.0
- simple-date-formatter-util-10@1.0.0
- simple-date-formatter-util-9@1.0.0
- simple-date-formatter-util-6@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.