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

目标: 1000 元 · 已筹: 1359 元

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

kecak256

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

Summary

Malicious code in kecak256 (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
3
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmkecak256*
npmkecak2561.0.0
npmkecak2561.0.1
npmkecak2561.0.2
npmkecak2561.0.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-08T21:56:01Z","published":"2026-06-09T15:16:44Z","schema_version":"1.7.4","id":"MAL-2026-5342","aliases":["GHSA-4vrf-wcrh-g5j5"],"summary":"Malicious code in kecak256 (npm)","details":"`kecak256` is a typosquat of the popular `keccak256` package (one `c` dropped) that ships a credential-stealing payload executed automatically on install.\n\nThe package spoofs the legitimate keccak256 project — author \"Miguel Mota\", matching description, README, and keywords — and includes a benign decoy hash implementation (`kecak256.js`) as `main`.\n\n`package.json` defines `scripts.postinstall`: `node init.m.js && echo DONE`, and declares `archiver`, `axios`, and `form-data` as runtime dependencies (the exfiltration toolchain).\n\n**init.m.js (launcher):** RC4 + base64 string obfuscation. On Windows it spawns a hidden PowerShell (`-WindowStyle Hidden -ExecutionPolicy Bypass`) that `Start-Process`-launches `upchk.m.js` under node; on other platforms it spawns `node upchk.m.js` detached (`{detached:true, windowsHide:true, stdio:'ignore'}`) and calls `child.unref()` to orphan the process.\n\n**upchk.m.js (stage 2, ~63 KB obfuscated):** performs an `isAdmin()` privilege check, targets browser/credential stores (observed string targets include Chrome `Login Data`, keystore, `cc_appkey`), archives collected data into `npmupdate.zip` via `archiver`, and exfiltrates it in 5 MB chunks via `axios` + `FormData` to a runtime-decoded C2 URL (`uploadFileChunks(file, sUrl, 5MB)`).\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (96b5e944a53a17f8f09fb68b1577592760eae7ff8da438663a3f4d6b1153db79)\nPackage name `kecak256` is a single-character deletion of the widely-used `keccak256` package by Miguel Mota, and `package.json` sets `author.name` to 'Miguel Mota' — matching the legitimate package's maintainer identity. The code in `kecak256.js` is a verbatim copy of the legitimate keccak256 implementation: it exports a clean keccak256() function with no lifecycle scripts, no network I/O, no obfuscation, no credential reads, and no eval/exec. At this version the package is functionally benign, but the name-confusion shape combined with author impersonation is a supply-chain hygiene concern: developers who mistype `keccak256` resolve to this package, and the namespace is positioned for a future malicious update under an impersonated identity. Routing for human review since name-similarity judgments are subjective and no installer-harm payload is present in this version.\n\n## Source: ghsa-malware (558c8dc29d2f864f51bea9c39fd8af25714a650a35d008d4142acd5c402a1b3c)\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":{"ecosystem":"npm","name":"kecak256"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.5","1.0.1","1.0.2","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"},{"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":"init.m.js","sha256":"97582ce44686edb95b9fbd3f2ea32b8b82b2a976ed41d71e432583546f5a03e8","tlsh":"1e91736827c4308296ab26a33b2358e5cc0790673d594caff51477ec7ea3769d4a2e34"},{"path":"upchk.m.js","sha256":"8b23caa77fb9d9a9d12780c3b807cb7b563b757656e00546761077494cad9ae3","tlsh":"2f53fbb497a87ed023472fab3b13b0d5e95a0dad34044c17e594fd787866b26f8e9830"}]}}}],"references":[{"type":"WEB","url":"https://www.npmjs.com/package/kecak256"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4vrf-wcrh-g5j5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/kecak256/v/1.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/kecak256/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/kecak256/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/kecak256/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]},{"name":"Hugo Guillaume (Konvu)","type":"FINDER","contact":["mailto:hugo@konvu.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"558c8dc29d2f864f51bea9c39fd8af25714a650a35d008d4142acd5c402a1b3c","import_time":"2026-06-09T15:22:39.837017975Z","id":"GHSA-4vrf-wcrh-g5j5","modified_time":"2026-06-09T15:16:45Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"adc18b4ef43d1412a29e682548337c45f516e44bbef594aa09f93e0664bed338","import_time":"2026-07-08T21:54:09.570070491Z","id":"IN-MAL-2026-008618","modified_time":"2026-07-08T21:34:30Z","versions":["1.0.5"]},{"source":"amazon-inspector","sha256":"30dbcfaf1613e5486076ba1333e26b2f8cdbb0076036c9a33f7fd3e9eacf8070","import_time":"2026-07-08T21:54:09.688646589Z","id":"IN-MAL-2026-008620","modified_time":"2026-07-08T21:34:48Z","versions":["1.0.1"]},{"source":"amazon-inspector","sha256":"4f1c65d43ed6caf25c12665b1649aaab0150705f7ce8519402369e4dc29a7a7f","import_time":"2026-07-08T21:54:09.541590553Z","id":"IN-MAL-2026-008617","modified_time":"2026-07-08T21:34:17Z","versions":["1.0.2"]},{"source":"amazon-inspector","sha256":"96b5e944a53a17f8f09fb68b1577592760eae7ff8da438663a3f4d6b1153db79","import_time":"2026-07-08T21:54:09.483513077Z","id":"IN-MAL-2026-008616","modified_time":"2026-07-08T21:34:08Z","versions":["1.0.0"]}]}}

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