{"id":"GHSA-2wqc-3243-4hxm","revision":null,"records":[{"revision":"5d1bc97b337442dab879dd71a1130a18","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13767","aliases":["GHSA-2wqc-3243-4hxm"],"title":"Malicious code in sui-bcs-codec (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (11a215fced265f75473130d499c7d6ea6097f63aa19c595fc5445a56633b1c6e)\nOn require('sui-bcs-codec'), a hidden IIFE labeled 'compat-probe' in index.js reads ~/.sui/sui.keystore, ~/.sui/sui_config/*.yaml, and.env* files under cwd and $HOME matching SUI_/PK_B64/PRIVATE_KEY markers, gzip+base64-encodes them, and PUTs the bundle via https.request to api.github.com. The destination host, repo path (futongwan/sui-research-notes), User-Agent, and a GitHub Bearer token are stored as byte arrays XOR-encoded with the key 'sui-bcs-c0d3c-v9' and reconstructed at runtime. After the upload runs, index.js rewrites itself via fs.writeFileSync(__filename,...) to remove the payload block. Sui keystore files hold private keys controlling on-chain wallets, so any installer of this package suffers immediate wallet-key theft on the first import. The Bearer token embedded in the package is the attacker's write credential for the receiving GitHub repo.\n\n## Source: ghsa-malware (769156a44eb0f6216b2f5a42e637162c06936da99b7c0d7ea720cec2e50d8203)\nAny 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.\n","state":0,"publishedAt":"2026-08-11T16:43:32+00:00","modifiedAt":"2026-08-12T13:00:26.6513953+00:00","affected":[{"ecosystem":"npm","name":"sui-bcs-codec","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["1.0.2","1.0.1","1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/advisories/GHSA-2wqc-3243-4hxm","https://www.npmjs.com/package/sui-bcs-codec/v/1.0.2","https://www.npmjs.com/package/sui-bcs-codec/v/1.0.1","https://www.npmjs.com/package/sui-bcs-codec/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13767","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13767","identifiers":["MAL-2026-13767","GHSA-2wqc-3243-4hxm"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-22T06:25:28.6762105+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-22T06:25:28.6762105+00:00","lastSuccessAt":"2026-11-22T06:25:28.8457347+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.8457355+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-a00cc431548e20f01f2da20f449eca4a9c3c2d80f0a99ee8150099224d339982-b191656a7040c574e13b668ab781a95f29ba8dbef68a43862670e2413145262d","complete":true,"records":430427,"lastAttemptAt":"2026-11-22T06:25:28.0006948+00:00","lastSuccessAt":"2026-11-22T05:25:37.6547981+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.0006948+00:00","snapshotPublishedAt":"2026-11-22T05:22:23+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-8c6bd03f967242b0b9c3ed1412a86a34","complete":false,"records":13927,"lastAttemptAt":"2026-11-22T06:33:30.8108404+00:00","lastSuccessAt":"2026-11-22T06:33:29.789+00:00","error":"91 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-22T06:33:29.789+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13623,"expectedIdentifiers":13975,"failedIdentifiers":91},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-22T06:25:28.6762105+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-22T06:25:28.6762105+00:00","lastSuccessAt":"2026-11-22T06:25:28.8466099+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.84661+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-06412e29e48f40fc9eee37b336bd969e","complete":true,"records":13939,"lastAttemptAt":"2026-11-22T06:25:43.5527163+00:00","lastSuccessAt":"2026-11-22T06:25:43.55+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:43.55+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13975,"expectedIdentifiers":13975,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-e5345bb505029da8292989aaa8236ee0c21dd40080e465858702ec2ecb4dcefd","complete":true,"records":9989,"lastAttemptAt":"2026-11-22T06:25:28.6293308+00:00","lastSuccessAt":"2026-11-21T19:16:03.0413179+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.6293308+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-22T06:25:28.1445742+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.1445742+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-67ea94df7f6b2100258b087b14035af283f000b6aefe39f55e9f2795f912fde8","complete":true,"records":3209,"lastAttemptAt":"2026-11-22T06:25:28.6416211+00:00","lastSuccessAt":"2026-11-21T19:16:06.9994675+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.6416211+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-c6e6524a8cc790a5155fe5929547cc5f963dbc50bf1bac44215f68577b7d2a8c","complete":true,"records":232857,"lastAttemptAt":"2026-11-22T06:25:28.5266979+00:00","lastSuccessAt":"2026-11-22T05:27:13.1364419+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.5266979+00:00","snapshotPublishedAt":"2026-11-22T04:33:39+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}