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

目标: 1000 元 · 已筹: 1359 元

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

translate-base-font

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

Summary

Malicious code in translate-base-font (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmtranslate-base-font*
npmtranslate-base-font1.4.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17458","published":"2026-10-02T21:26:23Z","modified":"2026-10-04T23:42:40.412746268Z","aliases":["GHSA-grv5-7wp6-vw6h"],"summary":"Malicious code in translate-base-font (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3b0c647653ce1698d15162d24ea22d9b060d770daf28277f3ce27a0040dda6dc)\nThe package presents itself as a CSS custom-property polyfill for font translation, but its actual behavior is a browser-side code-smuggling vector. payload.css ships ten `--base-color-1`..`--base-color-10` custom properties whose values are hex-byte triplets; the file carries the literal marker `Payload for vantamods.online` and a `__DOMAIN__` placeholder (hex `5f5f444f4d41494e5f5f`). At runtime, translate.js reads those CSS variables from the DOM, concatenates the hex bytes into a string, substitutes `__DOMAIN__` with the hex-decoded host `vantamods.online` (sourced from `--primary-brand-color`), and executes the resulting JavaScript with `new (\"\").constructor.constructor(fromCharCode.apply(null, _b))()` — i.e. a `Function` constructor invocation on attacker-controlled bytes. A hostname guard prevents execution on `vantamods.online`, `localhost`, and empty hostnames, so the smuggled code runs only on third-party sites that bundle or CDN-load this package. The advertised polyfill functionality is a cover story: any site shipping this dependency executes arbitrary JavaScript controlled by the maintainer of `vantamods.online` against every visitor, enabling session theft, credential capture, redirection, or arbitrary DOM manipulation in the site's origin.\n\n## Source: ghsa-malware (d0ae1970321abd04ddd957d3135ee1d2eb64acee031428fa8f3cbcb8c48504b0)\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":{"name":"translate-base-font","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.4.2"],"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"}],"indicators":{"evidence_files":[{"path":"translate.js","sha256":"917e77d90edb3e2bda9acd53898732242ad8275ca8217d68d8b7a378194ccc64","tlsh":"1f31be895a275177657a73b95faec928f77e816701c196403f1ce0407fb421216bcfd8"},{"path":"payload.css","sha256":"8e015df6d9568b732ef2c2338983ef0b940c06edb45555fe3b919bddb76f713b","tlsh":"b921bb19541a397a773270a702c4cb179ea8ece6c7847f43f5dc999657f82e9302600a"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-grv5-7wp6-vw6h"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/translate-base-font/v/1.4.2"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-grv5-7wp6-vw6h","import_time":"2026-10-02T22:25:24.581326133Z","modified_time":"2026-10-02T21:26:24Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"d0ae1970321abd04ddd957d3135ee1d2eb64acee031428fa8f3cbcb8c48504b0","source":"ghsa-malware"},{"id":"IN-MAL-2026-020931","import_time":"2026-10-04T23:40:43.256882231Z","modified_time":"2026-10-04T23:21:42Z","sha256":"3b0c647653ce1698d15162d24ea22d9b060d770daf28277f3ce27a0040dda6dc","source":"amazon-inspector","versions":["1.4.2"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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