-= Per source details. Do not edit below this line.=-
move-bcs-codec@1.0.2 declares a postinstall hook (package.json line 7: "postinstall": "node install.js") that runs install.js on npm install. install.js reads ~/.sui/sui.keystore, YAML files under ~/.sui/suiconfig/, and.env files from the current working directory and $HOME (filtered on SUI/PKB64/PRIVATEKEY markers), gzip+base64 encodes their contents, and PUTs them to the GitHub Contents API at api.github.com/repos/futongwan/sui-research-notes using a hardcoded bearer token. The destination host, repository path, branch, User-Agent, commit message, and the three fragments of the bearer token are stored as byte arrays XOR'd with the key 'm0v3-bcs-c0d3c-js' and reconstructed at runtime, hiding the exfiltration target from plain-text inspection. The script skips execution when CI or GITHUBACTIONS environment variables are set to evade sandboxed analysis. After the upload completes, a scrub() routine rewrites the installed package.json to remove scripts.postinstall and unlinks install.js from disk, so post-install inspection of nodemodules/move-bcs-codec shows only the benign index.js library. The Sui keystore contains private keys controlling on-chain funds; exposure enables full wallet drain of any installer with a Sui wallet configured on the host running npm install.
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.
{
"malicious-packages-origins": [
{
"modified_time": "2026-08-06T19:15:34Z",
"id": "IN-MAL-2026-016754",
"import_time": "2026-08-06T23:25:07.607769899Z",
"versions": [
"1.0.0"
],
"source": "amazon-inspector",
"sha256": "2bfbfa580ff1d06216165048f897ea38c1184ceea3289f80a23dfabc55f28a14"
},
{
"modified_time": "2026-08-06T19:15:44Z",
"id": "IN-MAL-2026-016755",
"import_time": "2026-08-06T23:25:07.664815813Z",
"versions": [
"1.0.1"
],
"source": "amazon-inspector",
"sha256": "aef41f9d1be779cb0779f6a0306dd075d9fd0e298c2fe4751ebd0d0fd813abdb"
},
{
"versions": [
"1.0.2"
],
"id": "IN-MAL-2026-016753",
"import_time": "2026-08-06T23:25:07.57473701Z",
"modified_time": "2026-08-06T19:15:05Z",
"source": "amazon-inspector",
"sha256": "c00077e83bd841dae96e61d432da796cf21839a32e5caf03e7256b2573225335"
},
{
"modified_time": "2026-08-06T18:01:21Z",
"id": "GHSA-3v7v-gr39-jf7v",
"import_time": "2026-08-06T23:53:00.666810683Z",
"versions": [
"1.0.2",
"1.0.1",
"1.0.0"
],
"source": "ghsa-malware",
"sha256": "77bf4aff9c9753e6d82ccd6d206c3588d41c0b95d18b08a80edfea367d30cbf3"
}
]
}[
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
}
]
{
"evidence_files": [
{
"path": "install.js",
"tlsh": "404142c62b88c079d247efccc4998d43abf2d584735e90dbe99e28c661668582026dbc",
"sha256": "683bb970e4fd3b03f58b2b9a431184319d11cfa9768202d53098d870ca7d9556"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/move-bcs-codec/MAL-2026-13450.json"