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

目标: 1000 元 · 已筹: 1359 元

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

jwt-logger

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

Summary

Malicious code in jwt-logger (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmjwt-logger*
npmjwt-logger2.1.9
npmjwt-logger2.4.9
npmjwt-logger2.5.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-15991","published":"2026-09-05T23:53:55Z","modified":"2026-09-08T19:16:51.067244503Z","aliases":["GHSA-rpqx-cp2g-55w5"],"summary":"Malicious code in jwt-logger (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b56e3f2d5fab071637ba7688de6c2a9c3d1c1846b6ec939b82eb2c8e9ff03956)\nThe package is published as a trivial JWT logging helper but its main module (jwt-logger.js) is a heavily obfuscated string-array dropper. On require(), it creates a hidden directory under os.homedir()+'/.cache', writes an obfuscated second-stage JavaScript payload plus a synthetic package.json declaring runtime dependencies (axios, better-sqlite3, node-machine-id, socket.io-client, with ffi-napi/koffi on Windows), and spawns node (process.execPath) on that payload with {detached:true, stdio:'ignore'} and unref(), so the second stage keeps running after the parent exits. On Windows it resolves %WINDIR%\\System32\\wscript.exe to launch a.vbs form of the payload, or falls back to cmd.exe /d /s /c with windowsVerbatimArguments to run without a visible console. All runtime strings are hidden behind an obfuscator.io-style rotated string array with a base64/URL decoder. package.json attributes authorship to 'Blake Embrey' <hello@blakeembrey.com> and the README carries blakeembrey.com/travis/coveralls badges, none of which corresponds to the shipped code. package.json additionally lists 'jwt-logger':'^2.3.7' as a dependency of itself (this artifact is 2.1.9), pulling an unpinned newer publisher-controlled version into every installer at install time. The socket.io-client dependency and detached background node process are consistent with a C2-controlled second stage.\n\n## Source: ghsa-malware (65564206b619c42f36cffb6489b5558060cbb7eb61be4827b71c7b299f84fb65)\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":"jwt-logger","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.4.9","2.1.9","2.5.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":"jwt-logger.js","sha256":"17dc64dc591adb79c0787155d1313b3366c35f9a5f5a99b61eedfd68afdd0f45","tlsh":"2052a64c2e16b0a4328d7563271269c5e4758f41eebb81dcf3c9289cfe05674f2f6a28"},{"path":"package.json","sha256":"610cff0969097fbf47662c9f7c29b3b64a0acd07182a511f7b480770d4642026","tlsh":"f401f454ca289d7345ed6aa96ca60303fa258c83080cfc1c37dea75d0b2c16b61be4de"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-rpqx-cp2g-55w5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/jwt-logger/v/2.4.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/jwt-logger/v/2.1.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/jwt-logger/v/2.5.0"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-rpqx-cp2g-55w5","import_time":"2026-09-07T01:51:50.787525Z","modified_time":"2026-09-05T23:53:55Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"65564206b619c42f36cffb6489b5558060cbb7eb61be4827b71c7b299f84fb65","source":"ghsa-malware"},{"id":"IN-MAL-2026-019687","import_time":"2026-09-08T19:15:04.335967928Z","modified_time":"2026-09-08T19:09:28Z","sha256":"61326f7099e9170425d9321289db212c9c8ec51d32ce5ce02c8d234f08fc0995","source":"amazon-inspector","versions":["2.4.9"]},{"id":"IN-MAL-2026-019686","import_time":"2026-09-08T19:15:04.308698631Z","modified_time":"2026-09-08T19:09:18Z","sha256":"b56e3f2d5fab071637ba7688de6c2a9c3d1c1846b6ec939b82eb2c8e9ff03956","source":"amazon-inspector","versions":["2.1.9"]},{"id":"IN-MAL-2026-019688","import_time":"2026-09-08T19:15:04.373226239Z","modified_time":"2026-09-08T19:09:35Z","sha256":"c6cdf9df6d9ecec6fe2a96487430c6ca18a00d31eb95981fa166a0f30caa578b","source":"amazon-inspector","versions":["2.5.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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