目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%
← 返回恶意软件包
npm active

bcs-compact

MAL-2026-13925
2026-08-14 14:53:28
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in bcs-compact (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.0.1archivedVIP 下载
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmbcs-compact*
npmbcs-compact1.0.0
npmbcs-compact1.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-13925","published":"2026-08-12T17:15:19Z","modified":"2026-08-14T14:53:27.924986814Z","aliases":["GHSA-xr26-x39h-746w"],"summary":"Malicious code in bcs-compact (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (85b93f1a0694dc37c94e18c12eb32ebe9cab96ded318e46ee5c774db80f4a648)\nOn require('bcs-compact'), index.js runs a self-scrubbing IIFE that reads the installer's Sui wallet keystore at ~/.sui/sui.keystore, ~/.sui/sui_config/*.yaml, and any.env* files containing SUI_/PK_B64/PRIVATE_KEY 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.\n\n## Source: ghsa-malware (26785e267ea5dbbb1a77bd9745feb4eed05a2579f8855af25bacd40264a837e4)\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","affected":[{"package":{"name":"bcs-compact","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1","1.0.0"],"database_specific":{"cwes":[{"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.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"b965d04fa7d40492502fbeb5372ee3baf1c338cb0e17fc5b98768f61f966b744","tlsh":"7f81d6412faa9071565be9d990c6ce03b7f8d244316ff0cfd95d84892f3ac08857bd88"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xr26-x39h-746w"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/bcs-compact/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/bcs-compact/v/1.0.0"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-xr26-x39h-746w","import_time":"2026-08-12T17:38:23.142009183Z","modified_time":"2026-08-12T17:15:20Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"26785e267ea5dbbb1a77bd9745feb4eed05a2579f8855af25bacd40264a837e4","source":"ghsa-malware"},{"id":"IN-MAL-2026-017620","import_time":"2026-08-12T20:49:31.382688925Z","modified_time":"2026-08-12T20:45:53Z","sha256":"85b93f1a0694dc37c94e18c12eb32ebe9cab96ded318e46ee5c774db80f4a648","source":"amazon-inspector","versions":["1.0.1"]},{"id":"IN-MAL-2026-017882","import_time":"2026-08-14T14:51:45.337980372Z","modified_time":"2026-08-14T14:50:21Z","sha256":"3e9c520372b9443e28c0d6ec08744dfe78f9df51d9633e08de025219d1f49367","source":"amazon-inspector","versions":["1.0.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

数据来源:OpenSSF Malicious Packages · Apache-2.0