Skip to main content

Malicious code in move-bcs-codec (npm)

0
Critical
Published: 08/06/2026 (08/06/2026, 18:01:20 UTC)
Source: GCVE Database
Product: move-bcs-codec

Description

The npm package move-bcs-codec versions 1.0.0, 1.0.1, and 1.0.2 contains malicious code that executes a postinstall script to exfiltrate sensitive private keys and configuration files related to the Sui blockchain wallet. The script collects private keys and config files, encodes them, and uploads them to a GitHub repository using a hardcoded bearer token. It also attempts to evade detection by skipping execution in CI environments and removing evidence after execution. This compromises any system with the package installed, risking full wallet compromise and loss of on-chain funds.

Affected software

npmghsa
move-bcs-codec
Affected versions
=1.0.0=1.0.1=1.0.2

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/07/2026, 07:44:02 UTC

Technical Analysis

The move-bcs-codec npm package (versions 1.0.0, 1.0.1, and 1.0.2) includes a malicious postinstall hook that runs install.js upon installation. This script reads sensitive files such as the Sui wallet keystore (~/.sui/sui.keystore), YAML config files (~/.sui/sui_config/), and environment files containing private keys. It compresses and base64 encodes these contents and uploads them to a GitHub repository using a hardcoded bearer token obfuscated via XOR with a static key. The script avoids execution in continuous integration environments by checking environment variables. After exfiltration, it removes the postinstall hook and deletes the install.js file to hide its presence. The exposure of private keys enables attackers to fully drain wallets configured on the compromised host. Removal of the package does not guarantee system cleanup due to potential further compromise.

Potential Impact

Any system that installs move-bcs-codec versions 1.0.0, 1.0.1, or 1.0.2 is fully compromised with private keys and secrets exfiltrated to an attacker-controlled GitHub repository. This leads to complete loss of control over Sui blockchain wallets configured on the host, enabling attackers to drain all on-chain funds. The malicious code attempts to evade detection and remove traces after execution, increasing the risk of persistent compromise. Systems with this package installed should be considered fully compromised.

Defensive Guidance

No official patch or fix is currently available. Immediate removal of the move-bcs-codec package versions 1.0.0, 1.0.1, and 1.0.2 is strongly recommended. All private keys and secrets stored on the affected system should be considered compromised and must be rotated immediately from a secure, unaffected environment. Due to the high likelihood of full system compromise, a full system reinstallation or forensic analysis is advised to ensure no residual malicious software remains. Monitor for any unauthorized access to blockchain wallets and revoke any exposed credentials.

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-13450
Osv Schema Version
1.7.4
Aliases
["GHSA-3v7v-gr39-jf7v"]
Ecosystems
["npm"]

Threat ID: 6a7573b5bf8831d539d93a93

Added to database: 08/07/2026, 05:57:09 UTC

Last enriched: 08/07/2026, 07:44:02 UTC

Last updated: 09/21/2026, 23:02:57 UTC

Views: 28

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