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

目标: 1000 元 · 已筹: 1359 元

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

ai-node-relay

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

Summary

Malicious code in ai-node-relay (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmai-node-relay*
npmai-node-relay0.0.1
npmai-node-relay0.0.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-08T23:29:47Z","published":"2026-06-26T11:16:52Z","schema_version":"1.7.4","id":"MAL-2026-6518","aliases":["GHSA-25p7-8xj5-25qp"],"summary":"Malicious code in ai-node-relay (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ae845382ff29756db63bf611b9b6bdbd49c44be3bcc8b283512e6590182ac48b)\nai-node-relay ships dist/index.js as its npm main entry, processed with javascript-obfuscator (string-array rotation, _0x-prefixed identifiers, base64 string decoder). The file ends with a top-level main() invocation that boots a Fastify server bound to 0.0.0.0:4001 and starts a heartbeat loop — any consumer who does `require('ai-node-relay')` immediately spawns a public-interface listener rather than getting a library handle. On startup the relay collects host fingerprint data (os.cpus, totalmem/freemem, platform, release, arch, uptime) and POSTs it with nodeId/url to `${GATEWAY_URL}/api/internal/node/register`; the destination is operator-configured via env var (default http://localhost:3007), matches the documented registration flow, and does not include installer secrets or an env-var dump. During periodic syncFromGateway, the gateway's JSON response is allowed to overwrite process.env.ENCRYPTION_KEY, ENCRYPTION_SECRET, ENCRYPTION_SALT, ENCRYPTION_AAD, and ENCRYPTION_ALGORITHM in the running process — a legitimate control-plane behavior given the operator chose the gateway, but one that materially expands the trust placed in whatever URL is configured. There is no install-time lifecycle hook, no fetch-and-execute of remote code, no credential scraping from ~/.aws/~/.ssh/~/.npmrc, and no hardcoded attacker destination. The combined pattern (obfuscation hiding the control flow + require()-time server bind to 0.0.0.0 + gateway-driven mutation of crypto material) warrants human review of maintainer trust and README accuracy before recommending the package, but it does not by itself constitute a supply-chain attack against installers.\n\n## Source: ghsa-malware (15dbf12bf77945563589af277a5a11fc548f282dfb1ab8fb8b0e8253d28ec854)\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":"ai-node-relay"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.0.1","0.0.2"],"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":"dist/index.js","sha256":"c48c05f22fa358709785f75bb6b8170587afb7219e8b3ec475d840e537eba50b","tlsh":"8a04d4522bc0ac58234e0fbb7617f0d5e01b0d2a784948cbe258fd287997a87faf5535"},{"path":"package.json","sha256":"c3c66075d11cfbf4a50469233e317cd55269b423a8fbf3ac2fe1b3e754728381","tlsh":"c8216364c9b89e7310c868a568b98283983a495b4884fe1537e6429c4f8d57f00fe66e"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-25p7-8xj5-25qp"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/ai-node-relay/v/0.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/ai-node-relay/v/0.0.2"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"15dbf12bf77945563589af277a5a11fc548f282dfb1ab8fb8b0e8253d28ec854","import_time":"2026-06-26T12:04:36.281243734Z","id":"GHSA-25p7-8xj5-25qp","modified_time":"2026-06-26T11:16:52Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"d52a729e61a47daa4fce45f76a2b6a3900b6664fdc599035b6cb1be327420e52","import_time":"2026-07-08T17:01:34.892768654Z","id":"IN-MAL-2026-008155","modified_time":"2026-07-08T16:35:05Z","versions":["0.0.1"]},{"source":"amazon-inspector","sha256":"ae845382ff29756db63bf611b9b6bdbd49c44be3bcc8b283512e6590182ac48b","import_time":"2026-07-08T23:27:55.653430617Z","id":"IN-MAL-2026-008957","modified_time":"2026-07-08T22:58:02Z","versions":["0.0.2"]}]}}

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