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

目标: 1000 元 · 已筹: 1359 元

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

safe-validate

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

Summary

Malicious code in safe-validate (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
29
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmsafe-validate1.0.1
npmsafe-validate1.0.2
npmsafe-validate1.0.3
npmsafe-validate1.0.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T17:21:24Z","published":"2026-07-06T18:57:32Z","schema_version":"1.7.4","id":"MAL-2026-6874","aliases":["GHSA-xvj3-jjxg-v74h"],"summary":"Malicious code in safe-validate (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b7501c4aac0734efb1103573bfcd7e85fa6bb251510656c94bc9ceb747c009d2)\nThe package advertises itself as a zero-dependency TypeScript validation library, but lib/index.js unconditionally requires lib/schema/bootstrap.js at module top level. bootstrap.js stores `require` and `module` on the global object, then uses a custom permutation cipher (function YWG with magic constants 2540575/34950/50568/5954865) to decode two large opaque string blobs and invokes them via `YWG[OSN]` — a deliberately renamed reference to `Function.constructor` — to construct and execute code, finishing with `XZs(7942)` and tagging `global._V = 'A6-Shadow-14'` (a fingerprint associated with a commercial JS protector frequently observed on malicious npm releases). Any consumer that does `require('safe-validate')` triggers this decode-and-eval at import time with full process privileges and access to environment variables and the filesystem. There is no documented feature in a validation library that requires runtime code generation, and the obfuscation wrapper itself (custom cipher + Function.constructor lookup via scrambled property name + side-effect-only module) is the canonical shape of a hidden payload loader. The package additionally claims to be a republish of the legacy `funval` library while being authored by an unrelated account (`deepthought26`, repo `schema-checker`), consistent with reputation-trading to attract installs and upgrades.\n\n## Source: ghsa-malware (e338d458760f94be3b39af3d50af0a15a851596c90d00ae819271fb6796753ff)\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":"safe-validate"},"versions":["1.0.4","1.0.3","1.0.2","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"},{"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":"lib/schema/bootstrap.js","sha256":"14b2a9bcc5a811ffaa9d086797a62f5e5ff828c9685fd9994d39a16d32ed3c8b","tlsh":"c3423b805f467198b7ed2132e28da27e018315930e7680d951cfd22b6e61e69c7bcd9f"},{"path":"README.md","sha256":"a5ea1d778f52103a0feb404ac5a937f35461d0cc3827d74e9deda7ecf36aecfa","tlsh":"16326101a46362740e7213f5a4c9d1d252d9924d266244fef8fd06b82352eec4b7ee7f"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xvj3-jjxg-v74h"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/safe-validate/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/safe-validate/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/safe-validate/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/safe-validate/v/1.0.4"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"e338d458760f94be3b39af3d50af0a15a851596c90d00ae819271fb6796753ff","import_time":"2026-07-06T19:53:47.998780526Z","id":"GHSA-xvj3-jjxg-v74h","modified_time":"2026-07-06T18:57:32Z","versions":["1.0.4","1.0.3","1.0.2","1.0.1"]},{"source":"amazon-inspector","sha256":"9392a31ff70ddfe25e8c028528c8f92406db944ea00647db56cba6112eb764ba","import_time":"2026-07-08T20:32:46.59330414Z","id":"IN-MAL-2026-008578","modified_time":"2026-07-08T20:31:26Z","versions":["1.0.1"]},{"source":"amazon-inspector","sha256":"98e13cb23af287de9a3f0016547a05738234063882b505cfc41fd1b21a9c3c70","import_time":"2026-07-08T20:32:45.142060683Z","id":"IN-MAL-2026-008566","modified_time":"2026-07-08T20:29:44Z","versions":["1.0.2"]},{"source":"amazon-inspector","sha256":"c7b88a50a782ca47bdbf37fb5fd7c6763af163141c1ba2cf4395de018514620b","import_time":"2026-07-08T20:32:46.375471788Z","id":"IN-MAL-2026-008576","modified_time":"2026-07-08T20:31:09Z","versions":["1.0.3"]},{"source":"amazon-inspector","sha256":"b7501c4aac0734efb1103573bfcd7e85fa6bb251510656c94bc9ceb747c009d2","import_time":"2026-07-09T17:19:25.342047528Z","id":"IN-MAL-2026-009333","modified_time":"2026-07-09T16:57:15Z","versions":["1.0.4"]}]}}

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