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

目标: 1000 元 · 已筹: 1359 元

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

freertc

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

Summary

Malicious code in freertc (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
34
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmfreertc0.1.20
npmfreertc0.1.21
npmfreertc0.1.22
npmfreertc0.1.23
npmfreertc0.1.28
npmfreertc0.1.31
npmfreertc0.1.32
npmfreertc0.1.33
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-05-26T05:55:02Z","published":"2026-05-24T02:10:29Z","schema_version":"1.7.4","id":"MAL-2026-4567","summary":"Malicious code in freertc (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1fb3d1337fc97d6eaccde325dc5f539a28af051f548c31f1b97a8752b8f51878)\nOn install, scripts/postinstall-message.mjs reads the consumer project's package.json via process.env.INIT_CWD, and if freertc appears in dependencies/devDependencies with any value other than 'latest', it overwrites the entry to 'latest', writes the modified package.json back to disk, and invokes spawnSync('npm', ['install'], { cwd: projectRoot }). This silently mutates the installer's committed manifest (and lockfile, via the recursive npm install) without consent, converting any pinned version constraint into the mutable 'latest' tag. The effect is that every subsequent install on the consumer's machine — and on every collaborator's machine once the modified package.json is committed — will automatically pull whatever the newest published freertc release happens to be, including any future compromised release. This removes version pinning, the consumer's primary defense against supply-chain attacks on this package, as a direct consequence of installing it. The postinstall hook also performs an outbound fetch to registry.npmjs.org to gather version info as part of the same flow. Independent of the version-rewrite behavior, the package contains additional outbound network calls in bin/freertc.mjs and a ping/network-id pattern in scripts/non-cloudflare-server.mjs that warrant scrutiny but are reachable only via explicit CLI/server invocation, not at install time.\n","affected":[{"package":{"ecosystem":"npm","name":"freertc"},"versions":["0.1.22","0.1.32","0.1.33","0.1.28","0.1.23","0.1.20","0.1.31","0.1.21"],"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"},{"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":"scripts/postinstall-message.mjs","sha256":"4366b6d0b1e8870ba1f5c4c0a1b89fd87cf99cbbe02a8cd2ff1faba4ed8880d3","tlsh":"4c81868859f665309da017dd515fa4213736d901374de8f0f2ed51047fc7768829ba2f"}],"package_integrity":[{"filename":"freertc-0.1.22.tgz","hashes":{"sha1":"472c60bd00023eb97a3744e028201413b5b8c938","sha512_sri":"sha512-3U/VAVWJjDrfz1WGoeBehxzaDSd2K4wsvoTmfhFyjZTOSi7EatKQouJcC7z/fZMszsrz+IYPaoBfrxL9zGoIIQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/freertc/v/0.1.22"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/freertc/v/0.1.32"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/freertc/v/0.1.33"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/freertc/v/0.1.28"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/freertc/v/0.1.23"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/freertc/v/0.1.20"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/freertc/v/0.1.31"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/freertc/v/0.1.21"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-004446","import_time":"2026-05-26T05:52:37.024010652Z","modified_time":"2026-05-24T02:21:25Z","sha256":"14f60508e71ccdcc4e4ee8520b255f40c5c14c125e877dc42cbafd756604e18b","source":"amazon-inspector","versions":["0.1.22"]},{"id":"IN-MAL-2026-004455","import_time":"2026-05-26T05:52:38.049361621Z","modified_time":"2026-05-24T03:00:47Z","sha256":"aef2425fbb38462625b0b935a4b92981233608a339bbc970292ba25aa55706f5","source":"amazon-inspector","versions":["0.1.32"]},{"id":"IN-MAL-2026-004454","import_time":"2026-05-26T05:52:37.910222124Z","modified_time":"2026-05-24T03:00:42Z","sha256":"e12f4a6e2a70bb62bbe254bb0fbd149d5683f9a3584d6da58bc2732a76cad12c","source":"amazon-inspector","versions":["0.1.33"]},{"id":"IN-MAL-2026-004450","import_time":"2026-05-26T05:52:37.458437676Z","modified_time":"2026-05-24T02:40:39Z","sha256":"1fb3d1337fc97d6eaccde325dc5f539a28af051f548c31f1b97a8752b8f51878","source":"amazon-inspector","versions":["0.1.28"]},{"id":"IN-MAL-2026-004447","import_time":"2026-05-26T05:52:37.13320799Z","modified_time":"2026-05-24T02:26:39Z","sha256":"239215d3d45027d51400df45757c08811434787c8cd0d16300c04bbe329e86b8","source":"amazon-inspector","versions":["0.1.23"]},{"id":"IN-MAL-2026-004429","import_time":"2026-05-26T05:52:35.069603762Z","modified_time":"2026-05-24T02:10:29Z","sha256":"44343514707df6ce806b9a61f60a0765d8ec68bbbfed1b8ba11bd505dc4811ec","source":"amazon-inspector","versions":["0.1.20"]},{"id":"IN-MAL-2026-004451","import_time":"2026-05-26T05:52:37.553675347Z","modified_time":"2026-05-24T02:45:53Z","sha256":"89be6086d0dbe790b6deb2e6e2b974858a75dfe30a0113f872014915fb428e63","source":"amazon-inspector","versions":["0.1.31"]},{"id":"IN-MAL-2026-004430","import_time":"2026-05-26T05:52:35.232866656Z","modified_time":"2026-05-24T02:10:33Z","sha256":"aac02ee7f9fa879e94877b0ddb6915d85010a5ad3aadacd3042d80d332c60c58","source":"amazon-inspector","versions":["0.1.21"]}]}}

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