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

目标: 1000 元 · 已筹: 1359 元

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

fs-commons

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

Summary

Malicious code in fs-commons (npm)

AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
15
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmfs-commons1.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-09-29T23:24:17Z","published":"2026-09-29T23:24:17Z","schema_version":"1.7.4","id":"MAL-2026-17301","summary":"Malicious code in fs-commons (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f7e82e98343807c39ea786017de4d2a7455815424155ca2a856333d895c8a48b)\nThe package presents itself as a filesystem/data-helper library, but its exported getTransactions()/load_transaction_data() functions are a two-file dynamic-code loader. index.js hides the identifiers 'Function', 'require', 'process', 'Buffer', and 'setTimeout' behind a split-string array and obtains the Function constructor indirectly via globalThis.constructor.constructor, defeating static review. At call time it reads the sibling file models.js, which is disguised as an array of product-record objects but whose `mark` fields are base64 ciphertext. loadConfig()/processData() sort the records by id, concatenate every `mark`, apply a per-count Caesar shift, base64-decode the result, and pass the resulting source to the Function constructor with Buffer, require, and process injected, then invoke it. Any consumer that requires fs-commons and calls getTransactions() executes attacker-supplied code with full Node privileges on the host process. The obfuscation, the indirect Function-constructor acquisition, and the disguising of the payload as product metadata in a sibling file have no legitimate purpose for a data-helper library and are the fingerprint of a supply-chain remote-code-execution package.\n","affected":[{"package":{"ecosystem":"npm","name":"fs-commons"},"versions":["1.0.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"53a5d6dfb922ca08b58e7c5f5975d885009c0b5a89c0c6805d14832962c21fae","tlsh":"a6f10f6839f930248457b07c67eb9449612de0576e9a6ca87f4d83101f7d13ce1f6ba8"},{"path":"models.js","sha256":"65b54532c82855bbc8055c67d9f53854737ce01d3ae6b95fc6577204b81d953f","tlsh":"4e331f3acb780c5b91795a606af50a4af280471f17a16d877fbcd54c8fb1c5b804ab3b"}],"package_integrity":[{"filename":"fs-commons-1.0.1.tgz","hashes":{"sha1":"e50c4a623a29ce361d41d3c91e60ca49bbe9429a","sha512_sri":"sha512-hGqVRB9UCGkZy94B9xU1HFy9BUqXGuSbLyRPQZb9GJYINs48j2o/qE3NOHG7g6eMlgpPTcgDc8fA69dWgFDHKQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/fs-commons/v/1.0.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020698","import_time":"2026-09-29T23:39:24.55566493Z","modified_time":"2026-09-29T23:24:17Z","sha256":"f7e82e98343807c39ea786017de4d2a7455815424155ca2a856333d895c8a48b","source":"amazon-inspector","versions":["1.0.1"]}]}}

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