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

目标: 1000 元 · 已筹: 1359 元

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

zod-pino

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

Summary

Malicious code in zod-pino (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
6
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmzod-pino*
npmzod-pino1.0.122
npmzod-pino1.0.123
npmzod-pino1.0.124
npmzod-pino1.0.125
npmzod-pino1.0.126
npmzod-pino1.0.127
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-08T20:34:47Z","published":"2026-06-22T21:53:45Z","schema_version":"1.7.4","id":"MAL-2026-6273","aliases":["GHSA-q52v-x293-p999"],"summary":"Malicious code in zod-pino (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c536e5a7ee3d5542e1ac822b30ba4525e52b2ae0c964d0c2470468d91b9b41c8)\nThe package is published under a name suggesting a Pino logger integration for Zod, but the tarball contents do not match that purpose and exhibit multiple installer-harm fingerprints:\n\n- scripts/postinstall-agent.mjs runs at install time and performs outbound network activity (GET requests, ping/host probing, identifier collection). A logging-schema package has no legitimate reason to ship a postinstall agent that beacons out.\n- dist/discordRelayUpload.js implements POST-based upload flows with base64 encoding/decoding of payloads and host-reachability probes (ping) — a Discord-channel relay used for off-host data delivery, unrelated to the package's advertised purpose.\n- dist/secretScan/contentScanner.js and dist/secretScan/agentStartupAudit.js implement a secret-scanning routine that fetches huggingface.co endpoints from an 'agent startup audit' code path, with base64 buffer handling consistent with credential extraction and transmission.\n- dist/hfCredentials.js handles base64-encoded Hugging Face credentials, and dist/deploymentDefaults.js plus scripts/encode-deployment.mjs perform multi-stage base64 decoding of deployment payloads — typical staged-payload obfuscation.\n- dist/relayServer.js bundles a long-lived relay/server component with repeated host-probe (ping) primitives.\n\nTaken together — install-time agent with outbound traffic, secret-scanning + credential modules, base64-staged deployment payloads, and a Discord upload relay, all in a package nominally advertised as a zod/pino integration — the shipped behavior matches an exfiltration/relay toolchain rather than a logging utility. Installing this package triggers the postinstall agent automatically.\n\n## Source: ghsa-malware (d4630d39e948537d5f62634527a049fc08b52373594e92b1fe1db32b7684cbe6)\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":"zod-pino"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.122","1.0.123","1.0.124","1.0.126","1.0.127","1.0.125"],"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"}],"indicators":{"evidence_files":[{"path":"dist/deploymentDefaults.js","sha256":"cbf70b0d8654138a0b4dfcb152824c85fecab500e1a5fade53c2049da4c0dc48","tlsh":"e1f16549b8e7b0100663b5f8861bc8973bdcad07260ed444b35e93956f1f831a3b76e6"},{"path":"dist/discordRelayUpload.js","sha256":"debe8ff010dd0e4bec0af85cbd8708ba345158fc103b9fe68eb12b4d68539c19","tlsh":"d4e296fab5f724311162b6698b5bd0057328b147741eeca47a8ca29c9f9c025c2f7fc6"},{"path":"dist/hfCredentials.js","sha256":"bf0091702bbc62eff2319360ab7103a33fee8f5bfad4e63aa359175285de7f49","tlsh":"cae184062ef6902001779079912be01576b0703f6ae1d5f2f69ddec9af12c768ae3dc1"},{"path":"dist/relayServer.js","sha256":"dc5d99c9e72bc81a1a162b341a0a0a480ba87b2b7f993ff9c3cf9b3d259e20ba","tlsh":"b293b68a69f360324763f2bd5b5b8001b339d1077558ddd4fa9c8258af8d92883f1be9"},{"path":"dist/secretScan/agentStartupAudit.js","sha256":"185e5a9b6387d3791464f4ade86a394af49115e826ddc1cd5e206e573b0ef7eb","tlsh":"b6e2fb9a69f32432826371be5a4f5005f660b4272148e8e47a5cc299ff454b8d3f7fd8"},{"path":"dist/secretScan/contentScanner.js","sha256":"5f983523fea613c052e726cf94f86c894e72c34261a538e6e6f3999cd76191a5","tlsh":"7212824a6af320514d2330fe1b8b8500b97aa847351cdd28be9c83906f5597c9af7bdc"},{"path":"scripts/encode-deployment.mjs","sha256":"36c301a61abec8b3658aa278f9cdcdfa0edf6409f4eec68449724d68ef222ea8","tlsh":"34b1b70368e9947041fee3d25953b90b7afdf7153302acc5766e46b90b6bc31026be0a"},{"path":"scripts/postinstall-agent.mjs","sha256":"f637df68b8c097e238ae81473a6a5c3f4ace636044356f7dbb01fef6ca5f579c","tlsh":"1d92d88ce6e71a7606a1e79d7a1f150267a0d1070648e4b4f0dd82887f2d13d83b7ebe"}],"package_integrity":[{"filename":"zod-pino-1.0.122.tgz","hashes":{"sha1":"770aab78e95bc70cb75748cf3c72a5843d08c185","sha512_sri":"sha512-ACzgiOmad8wiV68jaxV7Ue7acfF6fDqpDKpHcBhim0fL/A+GG3RA1ryuztOr4JbfA4GJL+VpgfY62JRZWEGwOg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/zod-pino/v/1.0.122"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zod-pino/v/1.0.123"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zod-pino/v/1.0.124"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zod-pino/v/1.0.126"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zod-pino/v/1.0.127"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-q52v-x293-p999"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zod-pino/v/1.0.125"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"94af4e18fa0fdc7c6aa17842c0dcea9d8ac7632a915cedb0d2150470d07c4e02","import_time":"2026-06-22T22:14:23.416056934Z","id":"IN-MAL-2026-007184","modified_time":"2026-06-22T21:53:45Z","versions":["1.0.122"]},{"source":"amazon-inspector","sha256":"e4ffd3391bd641307fbb18b050f374e75476dd1ab9ed063d88cfec46dbb70ff1","import_time":"2026-06-23T16:54:11.757013736Z","id":"IN-MAL-2026-007251","modified_time":"2026-06-23T15:55:37Z","versions":["1.0.123"]},{"source":"amazon-inspector","sha256":"81e8a23a71a5288646495c50a46c2814ffc0668d9c24ed04e1abd9e8758b5ea2","import_time":"2026-06-23T16:54:11.832862303Z","id":"IN-MAL-2026-007252","modified_time":"2026-06-23T15:55:42Z","versions":["1.0.124"]},{"source":"amazon-inspector","sha256":"c536e5a7ee3d5542e1ac822b30ba4525e52b2ae0c964d0c2470468d91b9b41c8","import_time":"2026-06-23T19:40:39.923977128Z","id":"IN-MAL-2026-007332","modified_time":"2026-06-23T18:57:00Z","versions":["1.0.126"]},{"source":"amazon-inspector","sha256":"17a7289959ad57906f330b4dfe5cb739b2d9ff4766acfa1050c43e3d63638b66","import_time":"2026-06-23T22:31:28.305469542Z","id":"IN-MAL-2026-007384","modified_time":"2026-06-23T21:54:03Z","versions":["1.0.127"]},{"source":"ghsa-malware","sha256":"d4630d39e948537d5f62634527a049fc08b52373594e92b1fe1db32b7684cbe6","import_time":"2026-06-26T05:41:02.34633381Z","id":"GHSA-q52v-x293-p999","modified_time":"2026-06-26T05:12:34Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"ff61a8edc7af7d6711a58e514aeffd3b26a8f0e9509802c1e4c37aaebea08218","import_time":"2026-07-08T20:32:09.362093071Z","id":"IN-MAL-2026-008286","modified_time":"2026-07-08T19:35:15Z","versions":["1.0.125"]}]}}

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