Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in bcs-mini (npm)

0
Critical
Published: 08/14/2026 (08/14/2026, 21:44:26 UTC)
Source: GCVE Database
Product: bcs-mini

Description

The npm package bcs-mini version 1.0.1 contains malicious code that exfiltrates sensitive Sui wallet credentials and private keys from the user's environment to an attacker-controlled GitHub repository. The payload activates on module load, reads specific local files containing secrets, encodes and uploads them using an obfuscated GitHub token, then modifies its own source to hide the malicious code. Execution is suppressed in CI environments to evade detection. Any system with this package installed should be considered fully compromised, and all secrets must be rotated from a clean device.

Affected software

npmghsa
bcs-mini
Affected versions
=1.0.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/18/2026, 13:44:33 UTC

Technical Analysis

The bcs-mini npm package (version 1.0.1) masquerades as a BCS codec but includes a self-invoking payload in index.js that, upon loading, reads wallet keystore files (~/.sui/sui.keystore), configuration files (~/.sui/sui_config/), and environment variables containing private keys. It base64-encodes these contents and uploads them via the GitHub API to a hardcoded repository controlled by the attacker. The GitHub credentials and repository details are XOR-obfuscated and reconstructed at runtime using the key 'bcs-c0mpact-v10'. After exfiltration, the malicious code region is removed from index.js on disk to evade detection. A check prevents execution in CI environments to reduce discovery during automated builds. The embedded GitHub Bearer token authenticates the upload, enabling stealthy data theft. This behavior effectively compromises any system running this package.

Potential Impact

Systems with bcs-mini version 1.0.1 installed are fully compromised due to the theft of private wallet keys and secrets. Attackers gain access to sensitive cryptographic material, potentially allowing unauthorized transactions or identity theft related to the Sui wallet. The malware's self-modifying behavior and CI environment evasion increase the difficulty of detection and remediation. Removal of the package alone does not guarantee system integrity, as attackers may have established persistent access or installed additional malware.

Defensive Guidance

No official patch or fix is available for bcs-mini version 1.0.1. Immediate removal of the package is recommended. All private keys and secrets stored on the compromised system must be rotated from a separate, trusted device. Due to the high likelihood of full system compromise, consider a full system audit and reinstallation from known good sources. Monitor for any unauthorized access or suspicious activity related to the stolen credentials. Avoid using this package or any untrusted npm packages that could contain malicious payloads.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-14076
Osv Schema Version
1.7.4
Aliases
["GHSA-9q3f-qc6p-62mm"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a8460a5c6e8be033245ab78

Added to database: 08/18/2026, 13:39:49 UTC

Last enriched: 08/18/2026, 13:44:33 UTC

Last updated: 08/19/2026, 00:04:13 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses