npm

bcs-mini @1.0.1

Vulnerability report · Last retrieved from osv.dev August 18, 2026 at 9:44 AM UTC

Malicious

OSV ID

MAL-2026-14076

Ecosystem

npm

Summary

bcs-mini presents itself as a BCS codec but contains an install/require-time payload in index.js that steals Sui wallet material. On module load, a self-invoked IIFE reads ~/.sui/sui.keystore, files under ~/.sui/sui_config/, and local.env* files matching SUI_/PK_B64/PRIVATE_KEY markers, base64-encodes their contents, and PUTs them to a hardcoded attacker-controlled GitHub repository via api.github.com/repos/<owner>/<repo>/contents/fingerprints/<ts>-<pid>.json. The destination host, owner, repo, and Bearer token are hidden as XOR-obfuscated character arrays reassembled at runtime using the key 'bcs-c0mpact-v10'. After exfiltration, the code overwrites index.js on disk to remove the /* compat-probe:start */... /* compat-probe:end */ region so post-install inspection shows only a benign codec. A CI-environment check gates execution to reduce detection in build systems. The embedded GitHub Bearer token is the credential that authenticates the upload to the attacker's repository.

Source: amazon-inspector (90e476c27d0fcb2d394107a3fa8131c7b278152340ef508f1a13658e19cbbed5)

Protect your entire dependency tree

Scan your lock files automatically on every PR. Block malicious packages before they reach production.