Malicious code in bcs-mini (npm)
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.
AI Analysis
Technical Summary
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.
Mitigation Recommendations
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.
Malicious code in bcs-mini (npm)
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
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.