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

目标: 1000 元 · 已筹: 1359 元

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

@sql-trigger/nodesql

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

Summary

Malicious code in @sql-trigger/nodesql (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
11
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@sql-trigger/nodesql*
npm@sql-trigger/nodesql1.0.0
npm@sql-trigger/nodesql1.0.1
npm@sql-trigger/nodesql1.0.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T16:22:59Z","published":"2026-06-09T15:46:48Z","schema_version":"1.7.4","id":"MAL-2026-5395","aliases":["GHSA-9f9w-wg5j-m53j"],"summary":"Malicious code in @sql-trigger/nodesql (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (39e37d95fb040c83277583e2bf90b56363f86360337f1c30e63c85eb56579ada)\nThe package advertises itself as a simple SQL helper but its main entry index.js is heavily obfuscated (obfuscator.io string-array + RC4 + base64, 218-entry shuffled literal array, two RC4 decoders) with no human-readable logic. After deobfuscation, the top-level IIFE requires os/fs/path/child_process/axios, installs uncaughtException and unhandledRejection handlers to suppress errors, then assembles an IPv4 address at runtime by concatenating four numeric octets with '.', issues an axios HTTP GET to that host, writes the response body into os.tmpdir() with flag 'w+', and invokes child_process exec/spawn on the written file with windowsHide:true and cwd set to the tmp directory. This is a generic remote-binary dropper: the destination is mutable, the payload is opaque and unverified, the URL is built at runtime to evade static scanners, and the fetched file is unrelated to any SQL functionality. The dropper fires the moment any consumer require()s the package, so installing this dependency results in attacker-controlled code being downloaded to and executed from the consumer's temp directory.\n\n## Source: ghsa-malware (af206fa9674f6676548fa54503b38eaa9a0cd31b267e4b7a39598bfde93c0e54)\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":"@sql-trigger/nodesql"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1","1.0.0","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":{"evidence_files":[{"path":"index.js","sha256":"47336ec64eb50ea6780cc4dd72a8fa72edc6c882269befea2f8c3483b87e1852","tlsh":"8a82b7c83bc2b0215733e0fbba1bb096e2a95c89a34d8549f766f458fd6c314d4c5a68"}],"package_integrity":[{"filename":"nodesql-1.0.1.tgz","hashes":{"sha1":"3a733d9326588696ce792cc6b2b39401a0db6be9","sha512_sri":"sha512-jQp8WH9Bmvr6eZIhQP/JXfZdqL9LWOrPXhhQ8FJtlPSVV0kRXDud9RssDQUFYC1zo4XsNxh9EnZgO/VPTNTBzw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@sql-trigger/nodesql/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@sql-trigger/nodesql/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-9f9w-wg5j-m53j"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@sql-trigger/nodesql/v/1.0.2"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"39e37d95fb040c83277583e2bf90b56363f86360337f1c30e63c85eb56579ada","import_time":"2026-06-09T16:59:43.549497061Z","id":"IN-MAL-2026-004942","modified_time":"2026-06-09T15:46:48Z","versions":["1.0.1"]},{"source":"amazon-inspector","sha256":"df686aa903ce47ad4414266558600486e522e7ad0bf4e5876018ef24bca1d1a3","import_time":"2026-06-12T19:44:12.764293786Z","id":"IN-MAL-2026-006142","modified_time":"2026-06-12T19:09:53Z","versions":["1.0.0"]},{"source":"ghsa-malware","sha256":"af206fa9674f6676548fa54503b38eaa9a0cd31b267e4b7a39598bfde93c0e54","import_time":"2026-07-03T16:45:59.760638744Z","id":"GHSA-9f9w-wg5j-m53j","modified_time":"2026-07-03T15:59:15Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"726694fd8558bf7ac804c1e9805a693864d69ec7f8194c1f271b7adf1b721c26","import_time":"2026-07-09T16:20:54.564729939Z","id":"IN-MAL-2026-009252","modified_time":"2026-07-09T15:50:23Z","versions":["1.0.2"]}]}}

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