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

目标: 1000 元 · 已筹: 1359 元

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

validator-string

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

Summary

Malicious code in validator-string (npm)

安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmvalidator-string13.15.36
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T23:05:09Z","published":"2026-07-09T23:05:09Z","schema_version":"1.7.4","id":"MAL-2026-10109","summary":"Malicious code in validator-string (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (41a95b09ecd097cf7db1496950d26195169adb7ad2d8065a3458771389094be4)\nPackage name `validator-string` impersonates the widely-used npm package `validator` and copies its README, homepage, and API surface. `package.json` declares `scripts.postinstall: node index.js`, and `main` resolves to the same `index.js`, so the trailing obfuscated block runs both on `npm install` and on every `require('validator-string')`. The appended code uses a custom multi-stage character-shuffle routine to reconstruct the identifiers `require`, `module`, `__dirname`, `__filename`, `undefined`, and `constructor`, then hoists `require`/`module`/`__dirname`/`__filename` onto `global` so the decoded body has full Node.js capability. It recovers the string `Function` from `constructor`, invokes `Function(argNames, decodedBody)` on a large opaque encoded blob, and calls the resulting function unconditionally (`Lpe(2163)`). This is dynamic code construction from an obfuscated payload executed automatically on install and on load — installer-side remote/opaque code execution with full Node privileges. The typosquat name, cloned metadata, obfuscation of core Node identifiers, and auto-execution at two separate lifecycle points are collectively unambiguous.\n","affected":[{"package":{"ecosystem":"npm","name":"validator-string"},"versions":["13.15.36"],"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":"77403cea5fe296336fe72d8ceb707429a88d3544f5e4f3026a75c5cd43e06449","tlsh":"2a921e507afa9ca9b81477e2990eb4002955dcbc88faf146f64e80f513f6243d729f39"}],"package_integrity":[{"filename":"validator-string-13.15.36.tgz","hashes":{"sha1":"0268c2240252729cb4fb58ccede52e3ae015a5e0","sha512_sri":"sha512-bJnMSame0+65KbnXhaivsAX5SyIDvMng52bBrPEwwtLdV+6ZE60jZME9a7Eh4mSMEDKLf1A5wq+eC7G3mkIwQg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/validator-string/v/13.15.36"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-009594","import_time":"2026-07-09T23:30:55.950850689Z","modified_time":"2026-07-09T23:05:09Z","sha256":"41a95b09ecd097cf7db1496950d26195169adb7ad2d8065a3458771389094be4","source":"amazon-inspector","versions":["13.15.36"]}]}}

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