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

目标: 1000 元 · 已筹: 1359 元

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

sass-formats

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

Summary

Malicious code in sass-formats (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
4
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmsass-formats*
npmsass-formats1.0.2
npmsass-formats1.0.4
npmsass-formats1.0.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-08T20:34:45Z","published":"2026-06-11T09:35:12Z","schema_version":"1.7.4","id":"MAL-2026-5629","aliases":["GHSA-pvrm-39m5-j3c4"],"summary":"Malicious code in sass-formats (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5ccda832d10cb642350129278ae1fc341d3be8b8302ddbf9bdcfc15eeeb6eae8)\nThe package name `sass-formats` is one character-edit away from the popular `sass-formatter` package and reuses its original author field (`\"author\": \"Syler\"` in package.json), while dist/cli.js carries a header indicating it was modified by a different maintainer (`// Modified by https://github.com/maarutan... Marat Arzymatov 2025`). The tarball ships dist/lib/lib.min.js, a heavily obfuscated 4 KB file that smuggles handles to `require` and `module` onto the global object (`global['r']=require; global['m']=module`), tags itself with a payload-version marker (`global['_V']='A6-519-79'`), and derives the string `constructor` from a shuffled character array to invoke `Function(args, body)` on a second shuffled string — the canonical string-array-shuffle / dynamic-Function execution shape used by npm credential and dropper malware. Although no entrypoint in v1.0.4 currently loads dist/lib/lib.min.js, shipping a hidden Function-constructor payload with smuggled require/module references in a package that purports to be a Sass formatter has no legitimate engineering purpose, and the combination of name-edit typosquat against `sass-formatter` plus impersonated author identity plus a staged dynamic-execution payload matches the supply-chain attack pattern.\n\n## Source: ghsa-malware (593849a1308008d25bbda542cd5504e43cae6241d7ebe1c44b08377e2afe13d5)\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":"sass-formats"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.5","1.0.4","1.0.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"},{"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":{"domains":["bootstrap.pypa.io","api.trongrid.io","bsc-dataseed.binance.org","fullnode.mainnet.aptoslabs.com"],"evidence_files":[{"path":"dist/lib/lib.min.js","sha256":"b373c2d8b6479a9acdb2fadbd35d312e8bd70975c8a3a3247b2aa9df6c3ef0e4","tlsh":"75817fc83148fdc578c0427081cb919f1c6507e2987fb1c4888fc6ea55422465eb8eff"},{"path":"package.json","sha256":"692cd17b1bbede1eb2c5b33288f656beecc901479af98def584ec236919e3849","tlsh":"6f319b33ca28dd3356f5a2ae7c788603fa04975f5160880b71fd36ad0f3a17b4195769"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-pvrm-39m5-j3c4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sass-formats/v/1.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sass-formats/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sass-formats/v/1.0.2"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"593849a1308008d25bbda542cd5504e43cae6241d7ebe1c44b08377e2afe13d5","import_time":"2026-06-11T09:45:30.622479982Z","id":"GHSA-pvrm-39m5-j3c4","modified_time":"2026-06-11T09:35:17Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"18a570df7e3b77dc19d65d25fc246dbd231f0424c191729104ba3f9eed151663","import_time":"2026-06-12T19:44:12.563697144Z","id":"IN-MAL-2026-006140","modified_time":"2026-06-12T19:09:51Z","versions":["1.0.5"]},{"source":"amazon-inspector","sha256":"5ccda832d10cb642350129278ae1fc341d3be8b8302ddbf9bdcfc15eeeb6eae8","import_time":"2026-06-12T19:44:12.443694336Z","id":"IN-MAL-2026-006139","modified_time":"2026-06-12T19:09:49Z","versions":["1.0.4"]},{"source":"amazon-inspector","sha256":"64bd6333e924def2273b459fb46fb7bee7c6458545ce724fcab008914ab4b39e","import_time":"2026-06-12T19:44:12.655381222Z","id":"IN-MAL-2026-006141","modified_time":"2026-06-12T19:09:52Z","versions":["1.0.5"]},{"source":"amazon-inspector","sha256":"baaeef1a01255a223f4cf9abd67ec4d1f440ea09af1c3cbe25236f8f1ad401bc","import_time":"2026-07-08T20:32:24.163235124Z","id":"IN-MAL-2026-008404","modified_time":"2026-07-08T20:05:19Z","versions":["1.0.2"]}]}}

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