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

目标: 1000 元 · 已筹: 1336

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

@velliajs/discord

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

Summary

Malicious code in @velliajs/discord (npm)

安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
178
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.0.3unavailable
1.0.4unavailable
1.0.5archivedVIP 下载
1.0.6unavailable
1.0.7unavailable
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npm@velliajs/discord1.0.3
npm@velliajs/discord1.0.4
npm@velliajs/discord1.0.5
npm@velliajs/discord1.0.6
npm@velliajs/discord1.0.7
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-08-14T22:44:15Z","published":"2026-08-14T22:28:38Z","schema_version":"1.7.4","id":"MAL-2026-14051","summary":"Malicious code in @velliajs/discord (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1c86edd3f7edd7d111df5621cb884fd0ef3d870c6c0719d587b7bb0f16f65b8d)\nThe package presents itself as a discord.js clone (`repository` field points at the real `github.com/discordjs/discord.js.git`, README instructs `import... from '@verylinh/discord'`) but ships two installer-relevant hostile mechanisms. First, `package.json` declares a runtime dependency `sysframe` resolved from `git+https://ghp_...@github.com/navaLinh/node-ai.git` — an unpinned (no commit SHA or tag), private, author-controlled GitHub repository, using an embedded live GitHub Personal Access Token. Every `npm install` uses the shipped token to fetch the current HEAD of that private repo into the installer's `node_modules`; the author can rewrite HEAD at any time to deliver arbitrary code, including lifecycle scripts, that will execute on subsequent installs. Second, `Client.login()` invokes an undocumented `_verifyAuthorization` routine that fetches an allow-list JSON from `api.github.com/repos/Vellia-Elyvia/mydb/contents/db.json` under a hardcoded PAT and refuses to start the installer's Discord bot unless the bot's username appears in the author-controlled allow-list — a hidden remote gate/kill-switch over the installer's runtime that is not disclosed in the README. Two live GitHub PATs are hardcoded in the shipped package (one in the git dependency URL, one as the default `ghToken` in `_validateAuthOptions`). The package name and metadata impersonate discord.js.\n","affected":[{"package":{"ecosystem":"npm","name":"@velliajs/discord"},"versions":["1.0.5","1.0.4","1.0.3","1.0.6","1.0.7"],"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":"package.json","sha256":"075ecdc92d9e975ffa832919d02f3dc19e0ef9a844ba85af2e76c391d2db8ad5","tlsh":"6f41d922c9249c7307e425eead9a02035224598b4e4bfc0d37a9536d4f0d6af31bcb6f"}],"package_integrity":[{"filename":"discord-1.0.5.tgz","hashes":{"sha1":"701b66722e6bfe0ea60084c35744185f41671345","sha512_sri":"sha512-BjGBpprX55yqk4CWc8HsiGhkNuZsfv6pUL8HVPFegyKG6wu1vIcoxd/8gZ5cT3NzdQQM3ZA4+IW/uHMPgVfvyA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@velliajs/discord/v/1.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@velliajs/discord/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@velliajs/discord/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@velliajs/discord/v/1.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@velliajs/discord/v/1.0.7"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-017930","import_time":"2026-08-14T22:42:25.202550122Z","modified_time":"2026-08-14T22:28:47Z","sha256":"04b7767e977c183f47d761464e45db73c07784967f48456f2fd4ee261d781161","source":"amazon-inspector","versions":["1.0.5"]},{"id":"IN-MAL-2026-017929","import_time":"2026-08-14T22:42:25.178873839Z","modified_time":"2026-08-14T22:28:38Z","sha256":"1c86edd3f7edd7d111df5621cb884fd0ef3d870c6c0719d587b7bb0f16f65b8d","source":"amazon-inspector","versions":["1.0.4"]},{"id":"IN-MAL-2026-017933","import_time":"2026-08-14T22:42:25.327184801Z","modified_time":"2026-08-14T22:29:09Z","sha256":"7a036e528b785b9495fd5fb2a49f2cbe0ab4f1796f2a235a46e63b0f7de83030","source":"amazon-inspector","versions":["1.0.3"]},{"id":"IN-MAL-2026-017932","import_time":"2026-08-14T22:42:25.28010122Z","modified_time":"2026-08-14T22:29:03Z","sha256":"c59b0d662d2067100ccd6b81ce6223d979067bf7927c92c76a8841aff6c8fcde","source":"amazon-inspector","versions":["1.0.6"]},{"id":"IN-MAL-2026-017931","import_time":"2026-08-14T22:42:25.246641643Z","modified_time":"2026-08-14T22:28:56Z","sha256":"d9ec14c7e20b722636937ac258aec64347df2df21e2b2e2812a30f4ff63acbfe","source":"amazon-inspector","versions":["1.0.7"]}]}}

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