MAL-2026-14076

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bcs-mini/MAL-2026-14076.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-14076
Aliases
  • GHSA-9q3f-qc6p-62mm
Published
2026-08-14T21:44:26Z
Modified
2026-08-18T21:45:20.133575011Z
Summary
Malicious code in bcs-mini (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (90e476c27d0fcb2d394107a3fa8131c7b278152340ef508f1a13658e19cbbed5)

bcs-mini presents itself as a BCS codec but contains an install/require-time payload in index.js that steals Sui wallet material. On module load, a self-invoked IIFE reads ~/.sui/sui.keystore, files under ~/.sui/suiconfig/, and local.env* files matching SUI/PKB64/PRIVATEKEY markers, base64-encodes their contents, and PUTs them to a hardcoded attacker-controlled GitHub repository via api.github.com/repos/<owner>/<repo>/contents/fingerprints/<ts>-<pid>.json. The destination host, owner, repo, and Bearer token are hidden as XOR-obfuscated character arrays reassembled at runtime using the key 'bcs-c0mpact-v10'. After exfiltration, the code overwrites index.js on disk to remove the /* compat-probe:start /... / compat-probe:end */ region so post-install inspection shows only a benign codec. A CI-environment check gates execution to reduce detection in build systems. The embedded GitHub Bearer token is the credential that authenticates the upload to the attacker's repository.

Source: ghsa-malware (2cabaabc178202b26609f4cd403279782d153548af197b164715fd8f795f41eb)

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": [
        {
            "import_time": "2026-08-17T04:43:13.977507Z",
            "sha256": "2cabaabc178202b26609f4cd403279782d153548af197b164715fd8f795f41eb",
            "modified_time": "2026-08-14T21:44:26Z",
            "source": "ghsa-malware",
            "id": "GHSA-9q3f-qc6p-62mm",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ]
        },
        {
            "import_time": "2026-08-18T04:47:05.06599668Z",
            "sha256": "90e476c27d0fcb2d394107a3fa8131c7b278152340ef508f1a13658e19cbbed5",
            "modified_time": "2026-08-18T04:41:41Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-017983",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "import_time": "2026-08-18T21:42:00.606162768Z",
            "sha256": "a4da964d5f6af3f84c7ac1686ddc3069629de4aa40c6e15f57b63af536163858",
            "modified_time": "2026-08-18T21:16:22Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-018096",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / bcs-mini

Package

Affected ranges

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

Affected versions

1.*
1.0.0
1.0.1

Database specific

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