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

目标: 1000 元 · 已筹: 1359 元

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

tokenization-util

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

Summary

Malicious code in tokenization-util (npm)

凭据/密钥窃取远程访问后门文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
5
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmtokenization-util*
npmtokenization-util0.1.0
npmtokenization-util0.2.0
npmtokenization-util1.1.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-13T07:42:08Z","published":"2026-06-25T05:29:26Z","schema_version":"1.7.4","id":"MAL-2026-6440","aliases":["GHSA-wp9r-fqrq-cg5h"],"summary":"Malicious code in tokenization-util (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (81f8a194aa79844110dede95f5f8c798d05c04c08f1a4f5d8822124b17c65fa6)\nThe package advertises plain math/formatter helpers but index.js contains a heavily obfuscated payload concealed inside the calculateTokenPrice function. The payload is hidden behind ~1500 leading tab characters of visual padding, then uses two seeded Fisher-Yates string-shuffler decoders and String.fromCharCode splicing to reconstruct the identifiers 'constructor', 'require', and 'module' at runtime. The code resolves Function via yLb[kqz] (a string-shuffled property lookup for 'constructor'), uses that Function constructor to build a decoder from one shuffled blob, decodes a second scrambled blob into JS source, and invokes that source via Function(...)(3004). It also assigns the CommonJS require and module bindings to globalThis (global[require]=require; global[module]=module), giving the decoded code access to any Node built-in (network, fs, child_process) regardless of how the package is imported. None of this behavior is documented in the README or exposed through the advertised API. The combination of multi-layer obfuscation, visual concealment via tab padding, dynamic eval of decoded literals, and forced global exposure of require/module is the canonical shape of a hidden remote-code-execution backdoor in an npm utility package — the decoded payload runs whenever calculateTokenPrice is called by a consumer.\n\n## Source: ghsa-malware (6889e1ba434ec22ee416286fff9c2917794ee60aa78361043e1742767ca877f2)\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":"tokenization-util"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.1.0","0.2.0","0.1.0"],"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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"0956c1b99ac68710864c32ffb75c5fcfc736d4a55ebd3909d4834fbd765b417b","tlsh":"6822098cba576e514b752770a91e5029ff605731a40fd981f3b8c8c26fe392482d7e0e"}],"package_integrity":[{"filename":"tokenization-util-1.1.0.tgz","hashes":{"sha1":"f00de1b7b106bcc3c859896b292a862455b0d55a","sha512_sri":"sha512-L0mH6swLcGLVRAWvvBUu/Z4BB8D9pcuUZOzlmTkFddfn8VYr8OtAADqs+o/eDf+lwJYJXXw4ysE1bqRjvbNjFg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/tokenization-util/v/1.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tokenization-util/v/0.2.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wp9r-fqrq-cg5h"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tokenization-util/v/0.1.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"81f8a194aa79844110dede95f5f8c798d05c04c08f1a4f5d8822124b17c65fa6","import_time":"2026-06-25T06:26:40.657818753Z","id":"IN-MAL-2026-007459","modified_time":"2026-06-25T05:29:26Z","versions":["1.1.0"]},{"source":"amazon-inspector","sha256":"98ad20b73424aeaaf58831c2ff2b370fcb5062535fdcc0501bf92281ca169740","import_time":"2026-06-25T06:26:40.747975627Z","id":"IN-MAL-2026-007460","modified_time":"2026-06-25T05:29:31Z","versions":["0.2.0"]},{"source":"ghsa-malware","sha256":"6889e1ba434ec22ee416286fff9c2917794ee60aa78361043e1742767ca877f2","import_time":"2026-07-10T13:00:08.057927184Z","id":"GHSA-wp9r-fqrq-cg5h","modified_time":"2026-07-10T12:24:57Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"5c62d3b50a40b7615b28929ceb0cdfe55388bf7b877f5b9c3fef54054befdd87","import_time":"2026-07-13T07:40:10.225015529Z","id":"IN-MAL-2026-009810","modified_time":"2026-07-13T06:34:05Z","versions":["0.1.0"]}]}}

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