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

目标: 1000 元 · 已筹: 1359 元

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

class-synth

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

Summary

Malicious code in class-synth (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
4
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmclass-synth*
npmclass-synth1.0.0
npmclass-synth1.0.1
npmclass-synth1.0.2
npmclass-synth1.0.3
npmclass-synth1.0.4
npmclass-synth1.0.5
npmclass-synth1.0.6
npmclass-synth1.0.7
npmclass-synth1.0.8
npmclass-synth1.0.9
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-15T04:54:43Z","published":"2026-06-13T07:07:30Z","schema_version":"1.7.4","id":"MAL-2026-5730","aliases":["GHSA-c6cg-h94m-mv67"],"summary":"Malicious code in class-synth (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1aa63407d7400b4819d0739dedad0a32d9ae29b18509693c2e8763cf30275271)\nclass-synth is advertised as a small class/style/date utility library, but its main entry (dist/index.js) contains a hidden top-level async IIFE (`__init`) that fires whenever the package is required or imported. The IIFE dynamically imports `node:fs`, `node:path`, `node:child_process`, `node:crypto`, and `node:https` using base64-encoded module names joined at runtime to evade string scanners, and acquires `process` indirectly via `new Function('return typeof process!== \"undefined\"? process: null;')`. It then recursively walks `process.cwd()` looking for any `.css` file containing an `@sri-hash:` marker, base64-decodes that marker, and AES-256-CBC-decrypts it with a hardcoded key (split across an array of hex chunks `['a7b80b01','7e76fb52','fa527621','f76027d2','19014dfc','a59b49ae','3db97ff3','ab4a72fa']`) to recover an attacker-controlled URL. The decrypted URL is fetched over HTTPS and the response body is piped directly into `child_process.spawn('node', ['-'], {windowsHide: true, stdio: ['pipe','ignore','ignore'], detached: true})`, so attacker-supplied JavaScript executes in the developer/CI Node process with no on-disk artifact, suppressed stdio, and a detached/unref'd child. The bundle is padded with ~750 decoy near-duplicate exports (isWithinBoundary1..200, applyPreset1..150, createSequenceStep1..250, mapOperation1..250, checkConstraint1..250) to bury the dropper near the end of the file. The C2 URL is delivered out-of-band via a planted.css file, which defeats URL-based scanning of the package itself. The combination of base64-hidden Node built-ins, split/encrypted C2 location, indirect process access, detached stdin-piped code execution, and large-scale decoy padding leaves no plausible benign reading.\n\n## Source: ghsa-malware (a96165b209ffb2f4e6ad68ae6bcf380d9c70900d080adafcce9110d4ff5c9b71)\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":"class-synth"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.9","1.0.4","1.0.8","1.0.6","1.0.7","1.0.3","1.0.2","1.0.5","1.0.0","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"},{"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"dist/index.js","sha256":"324ae51677dd650b05a813f131336730fff47d1e5a0702705890b8b738b29235","tlsh":"dfc300ca72a23132d32b686048bf018bf377dda0177e4481d159a2adb63441ea5b7f7d"}],"ips":["104.16.7.34","10.1.0.2"],"package_integrity":[{"filename":"class-synth-1.0.9.tgz","hashes":{"sha1":"1a4f8fef7550429fe2b83610f4c9244157275cbc","sha512_sri":"sha512-K8FH1SJvAl2DZCpwHRy4+HnBhc64ZfpnUTmMFaWhjaLbemwMsDrW4tn1M+5FI49sL0wVOfMOU312xazzVoXHYg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/class-synth/v/1.0.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/class-synth/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/class-synth/v/1.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/class-synth/v/1.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/class-synth/v/1.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/class-synth/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/class-synth/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/class-synth/v/1.0.5"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-c6cg-h94m-mv67"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/class-synth/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/class-synth/v/1.0.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"1aa63407d7400b4819d0739dedad0a32d9ae29b18509693c2e8763cf30275271","import_time":"2026-06-13T07:25:40.068766092Z","id":"IN-MAL-2026-006325","modified_time":"2026-06-13T07:07:31Z","versions":["1.0.9"]},{"source":"amazon-inspector","sha256":"cddea7ee0ae2ce582b944e02750fe4ef3628ffb98035f2c09f55add30b22c127","import_time":"2026-06-13T07:25:40.764396146Z","id":"IN-MAL-2026-006335","modified_time":"2026-06-13T07:07:37Z","versions":["1.0.4"]},{"source":"amazon-inspector","sha256":"d3739061aa7c97593fe816a49960580ab7029e83063d6d64039c1e5a8e8184af","import_time":"2026-06-13T07:25:39.953318306Z","id":"IN-MAL-2026-006324","modified_time":"2026-06-13T07:07:31Z","versions":["1.0.8"]},{"source":"amazon-inspector","sha256":"3fe05a486e4cce2e9eb36558714ff75d3a7ff7db300c46095087db274451ed7d","import_time":"2026-06-13T07:25:40.63730102Z","id":"IN-MAL-2026-006333","modified_time":"2026-06-13T07:07:36Z","versions":["1.0.6"]},{"source":"amazon-inspector","sha256":"5208740230d7c6e9e8e5f32d1ebab45afc0154359e84d4942ecdb6e46f0f9288","import_time":"2026-06-13T07:25:40.905934094Z","id":"IN-MAL-2026-006337","modified_time":"2026-06-13T07:07:38Z","versions":["1.0.7"]},{"source":"amazon-inspector","sha256":"6ea0e042a314a56ca71b97cf1c7a89d077248da659a89d33f4bc8799eda73b06","import_time":"2026-06-13T07:25:40.977438486Z","id":"IN-MAL-2026-006338","modified_time":"2026-06-13T07:07:42Z","versions":["1.0.4"]},{"source":"amazon-inspector","sha256":"64df17fa107b8703f469a612dfdc6c03dbdea562847569034c97ae29ed4f636e","import_time":"2026-06-13T07:25:40.251900288Z","id":"IN-MAL-2026-006328","modified_time":"2026-06-13T07:07:33Z","versions":["1.0.7"]},{"source":"amazon-inspector","sha256":"92df67dd5d501d62afce26625625d6b62f34cf568f40ae0d8f0c3bd070cfe7e5","import_time":"2026-06-13T07:25:40.813933517Z","id":"IN-MAL-2026-006336","modified_time":"2026-06-13T07:07:38Z","versions":["1.0.6"]},{"source":"amazon-inspector","sha256":"211ba697cc519cd1336ef57b17fddf0406cb1f574f96f9bde936b0a49c789aa7","import_time":"2026-06-13T07:25:40.589206816Z","id":"IN-MAL-2026-006332","modified_time":"2026-06-13T07:07:36Z","versions":["1.0.3"]},{"source":"amazon-inspector","sha256":"d5cff2f39d67bd1b289dd662764985194331c02ac680a57a69df36343fd6cc1a","import_time":"2026-06-13T07:25:40.70724384Z","id":"IN-MAL-2026-006334","modified_time":"2026-06-13T07:07:37Z","versions":["1.0.2"]},{"source":"amazon-inspector","sha256":"db93faf02c8e1d82ad4e6016c8bdff19e3d6373e2dea7b121f0475783fccbbf8","import_time":"2026-06-13T07:25:39.780773321Z","id":"IN-MAL-2026-006323","modified_time":"2026-06-13T07:07:30Z","versions":["1.0.8"]},{"source":"amazon-inspector","sha256":"efebe9567f48ade64190acee35e050f62a1c604c4077861d248ed214bf723d02","import_time":"2026-06-13T07:25:40.327793108Z","id":"IN-MAL-2026-006329","modified_time":"2026-06-13T07:07:34Z","versions":["1.0.5"]},{"source":"amazon-inspector","sha256":"4aba4e1c5927ad7b034a6fefab706397fd40df248bffb3fe43c2f4f3421bd89b","import_time":"2026-06-13T07:25:40.4704675Z","id":"IN-MAL-2026-006330","modified_time":"2026-06-13T07:07:34Z","versions":["1.0.3"]},{"source":"amazon-inspector","sha256":"60238ce3fd8e5b43c795ab1c8305423e42c8e382d1a20bd470b34525034362de","import_time":"2026-06-13T07:25:40.177746847Z","id":"IN-MAL-2026-006327","modified_time":"2026-06-13T07:07:33Z","versions":["1.0.9"]},{"source":"amazon-inspector","sha256":"9fabcad393dcfe529708719bf7be0104fe2060900d55055eac9d2e676c1f6a40","import_time":"2026-06-13T07:25:40.535685375Z","id":"IN-MAL-2026-006331","modified_time":"2026-06-13T07:07:35Z","versions":["1.0.2"]},{"source":"amazon-inspector","sha256":"abb17afb17a74e6749e7e40905ad4963813c98bd5d4badf0a5f42ab44367f7a4","import_time":"2026-06-13T07:25:40.127399945Z","id":"IN-MAL-2026-006326","modified_time":"2026-06-13T07:07:32Z","versions":["1.0.5"]},{"source":"ghsa-malware","sha256":"a96165b209ffb2f4e6ad68ae6bcf380d9c70900d080adafcce9110d4ff5c9b71","import_time":"2026-07-14T05:59:59.639994281Z","id":"GHSA-c6cg-h94m-mv67","modified_time":"2026-07-14T05:13:07Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"2178b003efc508a3407750c19f74ebc92181c24ad04f1d8194110e910cfe69fb","import_time":"2026-07-14T22:23:33.547217156Z","id":"IN-MAL-2026-010582","modified_time":"2026-07-14T21:53:54Z","versions":["1.0.0"]},{"source":"amazon-inspector","sha256":"ebc2b3a72cb1d4f615e957401c61e3035796bac239ee59d6bec1d86827573b0c","import_time":"2026-07-14T22:23:33.853376489Z","id":"IN-MAL-2026-010585","modified_time":"2026-07-14T21:54:25Z","versions":["1.0.1"]}]}}

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