Malicious code in bcs-compact (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (85b93f1a0694dc37c94e18c12eb32ebe9cab96ded318e46ee5c774db80f4a648) On require('bcs-compact'), index.js runs a self-scrubbing IIFE that reads the installer's Sui wallet keystore at ~/.sui/sui.keystore, ~/.sui/sui_config/*.yaml, and any.env* files containing SUI_/PK_B64/PRIVATE_KEY markers, base64-encodes their contents, and PUTs them to api.github.com/repos/futongwan/sui-research-notes/contents/fingerprints/... using a hardcoded GitHub personal access token. The destination host (api.github.com), repository slug (futongwan/sui-research-notes), and Bearer token are reconstructed at runtime via an XOR routine keyed on the string 'bcs-c0mpact-v10' to hide them from static inspection. After exfiltration the payload rewrites index.js on disk to remove the /* compat-probe:start */.../* compat-probe:end */ block so the installed file no longer contains the malicious code on subsequent inspection. The package is presented as a BCS codec; the exfiltration and anti-forensics behavior have no relationship to that stated purpose. ## Source: ghsa-malware (26785e267ea5dbbb1a77bd9745feb4eed05a2579f8855af25bacd40264a837e4) 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.
AI Analysis
Technical Summary
The 'bcs-compact' package in the npm ecosystem has been identified as containing malicious code. Installation or execution of this package results in a full compromise of the host system, potentially allowing an attacker to gain complete control. Due to the severity of the compromise, secrets and keys stored on the affected system must be rotated from a separate, uncompromised device. The package removal is necessary but insufficient to fully remediate the infection, as additional malicious software may persist.
Potential Impact
Full system compromise on any computer with the 'bcs-compact' package installed or running. Potential exposure and theft of all stored secrets and keys. The attacker may maintain persistent access beyond the presence of the package itself.
Mitigation Recommendations
Immediately remove the 'bcs-compact' package from affected systems. Rotate all secrets and keys stored on the compromised computer from a different, secure device. Conduct a thorough investigation and remediation of the affected system to identify and remove any additional malicious software. Consider rebuilding the system from a known good backup or reinstalling the operating system to ensure full removal of the compromise.
Malicious code in bcs-compact (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (85b93f1a0694dc37c94e18c12eb32ebe9cab96ded318e46ee5c774db80f4a648) On require('bcs-compact'), index.js runs a self-scrubbing IIFE that reads the installer's Sui wallet keystore at ~/.sui/sui.keystore, ~/.sui/sui_config/*.yaml, and any.env* files containing SUI_/PK_B64/PRIVATE_KEY markers, base64-encodes their contents, and PUTs them to api.github.com/repos/futongwan/sui-research-notes/contents/fingerprints/... using a hardcoded GitHub personal access token. The destination host (api.github.com), repository slug (futongwan/sui-research-notes), and Bearer token are reconstructed at runtime via an XOR routine keyed on the string 'bcs-c0mpact-v10' to hide them from static inspection. After exfiltration the payload rewrites index.js on disk to remove the /* compat-probe:start */.../* compat-probe:end */ block so the installed file no longer contains the malicious code on subsequent inspection. The package is presented as a BCS codec; the exfiltration and anti-forensics behavior have no relationship to that stated purpose. ## Source: ghsa-malware (26785e267ea5dbbb1a77bd9745feb4eed05a2579f8855af25bacd40264a837e4) 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.
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-compact' package in the npm ecosystem has been identified as containing malicious code. Installation or execution of this package results in a full compromise of the host system, potentially allowing an attacker to gain complete control. Due to the severity of the compromise, secrets and keys stored on the affected system must be rotated from a separate, uncompromised device. The package removal is necessary but insufficient to fully remediate the infection, as additional malicious software may persist.
Potential Impact
Full system compromise on any computer with the 'bcs-compact' package installed or running. Potential exposure and theft of all stored secrets and keys. The attacker may maintain persistent access beyond the presence of the package itself.
Mitigation Recommendations
Immediately remove the 'bcs-compact' package from affected systems. Rotate all secrets and keys stored on the compromised computer from a different, secure device. Conduct a thorough investigation and remediation of the affected system to identify and remove any additional malicious software. Consider rebuilding the system from a known good backup or reinstalling the operating system to ensure full removal of the compromise.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13925
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-xr26-x39h-746w"]
- Ecosystems
- ["npm"]
Threat ID: 6a7cd43fbf8831d539186c2f
Added to database: 08/12/2026, 20:14:55 UTC
Last enriched: 08/12/2026, 20:27:56 UTC
Last updated: 09/25/2026, 06:31:59 UTC
Views: 54
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.