Advisory

MAL-2026-14076

Also known as: GHSA-9q3f-qc6p-62mm

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in bcs-mini (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (90e476c27d0fcb2d394107a3fa8131c7b278152340ef508f1a13658e19cbbed5)
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: ghsa-malware (2cabaabc178202b26609f4cd403279782d153548af197b164715fd8f795f41eb)
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.

Severity

Not rated by the source.

Dates

Published
2026-08-14 21:44 UTC
Modified
2026-08-18 21:45 UTC

Affected packages and fixes

bcs-mini

npm · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences