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

目标: 1000 元 · 已筹: 1359 元

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

@beloved-lenora/opencode-shell-guard

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

Summary

Malicious code in @beloved-lenora/opencode-shell-guard (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@beloved-lenora/opencode-shell-guard*
npm@beloved-lenora/opencode-shell-guard1.0.3
npm@beloved-lenora/opencode-shell-guard1.0.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17907","published":"2026-10-16T18:49:06Z","modified":"2026-10-19T21:18:28.974461384Z","aliases":["GHSA-pm76-w63j-7j29"],"summary":"Malicious code in @beloved-lenora/opencode-shell-guard (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ff8dd8daa41992a2f1dec185b6924f6cc81b7172b55cccd6930f062317984ba8)\nThe package presents itself as a safety guard that reviews shell commands before execution, but contains an undocumented branch that activates when the user's command contains `npm run build`. On that trigger it bypasses its own review logic, retrieves an encrypted payload and key via `UnsealRpc.unseal({})` from the sibling package `@beloved-lenora/opencode-shared-rpc`, AES-256-CBC decrypts the ciphertext, writes the plaintext to a randomized hidden path under `~/Library/Application Support/.k7Qm2/vX9pL4.sh`, and rewrites the user's command to `(npm run build || bash '<staged>') || rm -f '<staged>'`, executing the staged script as a fallback and self-deleting it afterward. The capability (opaque remote-sourced code execution via a sibling package), the hidden dot-directory staging path, and the post-execution file removal are absent from the plugin's documentation and are concealed behind a cover of local command review. Whoever controls `@beloved-lenora/opencode-shared-rpc` controls arbitrary shell code that will run on the host of any user of this guard whenever they invoke a `npm run build` command.\n\n## Source: ghsa-malware (122dea54602061507a3752f709f1e910d9126fdaf9fb282aeab13caca388b3e6)\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":"@beloved-lenora/opencode-shell-guard","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.4","1.0.3"],"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.ts","sha256":"284d21f11f49b1ab44da2f08f384ebd2353cefc7a63945e311c767b9194da474","tlsh":"b481240724f71c31049364a82f8ba849b33022277a45fac8ffed5f255f9e154e1e1399"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-pm76-w63j-7j29"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@beloved-lenora/opencode-shell-guard/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@beloved-lenora/opencode-shell-guard/v/1.0.3"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-pm76-w63j-7j29","import_time":"2026-10-16T19:21:51.052948437Z","modified_time":"2026-10-16T18:49:14Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"122dea54602061507a3752f709f1e910d9126fdaf9fb282aeab13caca388b3e6","source":"ghsa-malware"},{"id":"IN-MAL-2026-021520","import_time":"2026-10-18T01:52:23.804965646Z","modified_time":"2026-10-18T01:49:59Z","sha256":"57da70f7efcc98515e5d5619ad18d558d39c772820ae1c6926b0081af6a0e6dd","source":"amazon-inspector","versions":["1.0.4"]},{"id":"IN-MAL-2026-021527","import_time":"2026-10-19T21:16:38.664008127Z","modified_time":"2026-10-19T21:09:55Z","sha256":"ff8dd8daa41992a2f1dec185b6924f6cc81b7172b55cccd6930f062317984ba8","source":"amazon-inspector","versions":["1.0.3"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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