MAL-2026-13925

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bcs-compact/MAL-2026-13925.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13925
Aliases
  • GHSA-xr26-x39h-746w
Published
2026-08-12T17:15:19Z
Modified
2026-08-12T21:00:11.005235974Z
Summary
Malicious code in bcs-compact (npm)
Details

-= 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/suiconfig/.yaml, and any.env files containing SUI/PKB64/PRIVATEKEY 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "id": "GHSA-xr26-x39h-746w",
            "import_time": "2026-08-12T17:38:23.142009183Z",
            "sha256": "26785e267ea5dbbb1a77bd9745feb4eed05a2579f8855af25bacd40264a837e4",
            "modified_time": "2026-08-12T17:15:20Z",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-017620",
            "import_time": "2026-08-12T20:49:31.382688925Z",
            "sha256": "85b93f1a0694dc37c94e18c12eb32ebe9cab96ded318e46ee5c774db80f4a648",
            "modified_time": "2026-08-12T20:45:53Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / bcs-compact

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.1

Database specific

cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "index.js",
            "tlsh": "7f81d6412faa9071565be9d990c6ce03b7f8d244316ff0cfd95d84892f3ac08857bd88",
            "sha256": "b965d04fa7d40492502fbeb5372ee3baf1c338cb0e17fc5b98768f61f966b744"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bcs-compact/MAL-2026-13925.json"