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

目标: 1000 元 · 已筹: 1359 元

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

@ikyyofc/gemini-cli

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

Summary

Malicious code in @ikyyofc/gemini-cli (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
5,477
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@ikyyofc/gemini-cli3.0.1
npm@ikyyofc/gemini-cli3.0.6
npm@ikyyofc/gemini-cli3.0.7
npm@ikyyofc/gemini-cli3.0.9
npm@ikyyofc/gemini-cli4.0.0
npm@ikyyofc/gemini-cli4.0.2
npm@ikyyofc/gemini-cli4.0.3
npm@ikyyofc/gemini-cli4.0.4
npm@ikyyofc/gemini-cli4.0.5
npm@ikyyofc/gemini-cli4.0.6
npm@ikyyofc/gemini-cli4.0.7
npm@ikyyofc/gemini-cli4.0.8
npm@ikyyofc/gemini-cli5.0.0
npm@ikyyofc/gemini-cli5.0.1
npm@ikyyofc/gemini-cli5.0.2
npm@ikyyofc/gemini-cli5.0.4
npm@ikyyofc/gemini-cli5.0.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-12T19:46:11Z","published":"2026-05-20T02:28:21Z","schema_version":"1.7.4","id":"MAL-2026-4394","summary":"Malicious code in @ikyyofc/gemini-cli (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5793a1cde3de83b8c15b49a0f9981d72fbf431067a4416ce6b2bd5650ea4a4d6)\n@ikyyofc/gemini-cli@3.0.1 ships two heavily obfuscated modules (src/gemini.js and src/utils/proxy.js) wrapped in an obfuscator.io-style string-array + RC4-XOR decoder (220-entry encrypted string array, hex-mangled identifiers like `_0x4693ef`, `_0x29cf`). Decoding reveals two coordinated behaviors that make this package unsafe for installers to use:\n\n1. Spoofed Google/Firebase Android-app identity for Gemini access. src/gemini.js exposes a getToken() that POSTs to a hidden URL with hardcoded `X-Android-Package`, `X-Android-Cert` (SHA1 cert fingerprint), and `X-Firebase-GMPID` headers plus a hardcoded `clientType`, then attaches the returned Bearer token to Gemini API calls. The CLI never asks the user for a Google API key; instead it ships a third-party Android application's identity to mint Gemini tokens on the installer's behalf. Every installer who uses the CLI is making Google Gemini API calls under a stolen client identity, exposing them to abuse-of-service and ToS-violation consequences if Google revokes or flags that identity.\n\n2. Silent relay through a hardcoded pool of ~13 third-party proxies. index.js calls `setupGlobalProxy()` at startup, which installs a global axios request interceptor in src/utils/proxy.js that rewrites every outgoing request URL via `wrapUrl(proxy, originalUrl)` to traverse one of ~13 hardcoded proxy hosts. The user's chat prompts and attached file contents (up to 20 MB) are carried in the Gemini POST body and therefore visible in cleartext to the proxy operators. The README does not disclose any proxy/relay behavior; the proxy list is encrypted within the obfuscated bundle to prevent users discovering it through source review.\n\nThe combination — obfuscation that hides the data flow, spoofed third-party credentials carrying the installer's API requests, and an undisclosed third-party relay reading prompt content and the Bearer token — is a silent-relay supply-chain pattern. Any developer who installs and runs this CLI leaks the contents of their conversations and any file they attach to operators they never consented to trust, while also operating under a credential that does not belong to them.\n","affected":[{"package":{"ecosystem":"npm","name":"@ikyyofc/gemini-cli"},"versions":["4.0.6","5.0.2","3.0.6","4.0.3","3.0.1","5.0.1","4.0.8","5.0.0","4.0.5","3.0.7","4.0.7","4.0.2","4.0.4","4.0.0","3.0.9","5.0.5","5.0.4"],"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"},{"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":"src/gemini.js","sha256":"c3a1b0ea55c1eff6a87d0a3ff6c4d223f25177ecf927d221d28dc4f4968fa79e","tlsh":"3ad282d976883ec12b0b1a977f63f8f0d8ab199ef1400996e188bc2ca155233d6f5634"}],"package_integrity":[{"filename":"gemini-cli-4.0.6.tgz","hashes":{"sha1":"621ac39d3932eed262d83b5b988a4aafb0b412b9","sha512_sri":"sha512-ywktjyX/YjPoRgmlIvwU9MIMUBBCWAxzvT64oD5gHnfLFPOqxKCclH6UClzjYu+60PRdOT0mgx9lAPWeD1SEGw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/4.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/5.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/3.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/4.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/3.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/5.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/4.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/5.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/4.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/3.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/4.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/4.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/4.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/4.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/3.0.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/5.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ikyyofc/gemini-cli/v/5.0.4"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com","inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"02dc0713ef228e85a00c9b42387d372926de86995282046d97097ec2c70949a2","import_time":"2026-05-26T05:52:30.316450757Z","id":"IN-MAL-2026-004390","modified_time":"2026-05-23T22:23:11Z","versions":["4.0.6"]},{"source":"amazon-inspector","sha256":"eb34383a3b5afed7609c8ffaba4251d3f76d2911dd89b847f99e0982e2ea50d7","import_time":"2026-05-26T05:53:10.480861693Z","id":"IN-MAL-2026-004731","modified_time":"2026-05-25T17:23:51Z","versions":["5.0.2"]},{"source":"amazon-inspector","sha256":"fe916093166227f9f446f7a296135ec423d17d0c85a5b0c6790e73c76f8b99ce","import_time":"2026-05-26T05:50:47.317371102Z","id":"IN-MAL-2026-003523","modified_time":"2026-05-20T11:47:37Z","versions":["3.0.6"]},{"source":"amazon-inspector","sha256":"4332ef1d823062f94ca9e4c46d6f549050a63909182e5e0275df2d30e14c6a1f","import_time":"2026-05-26T05:52:16.637654017Z","id":"IN-MAL-2026-004271","modified_time":"2026-05-22T23:15:51Z","versions":["4.0.3"]},{"source":"amazon-inspector","sha256":"5793a1cde3de83b8c15b49a0f9981d72fbf431067a4416ce6b2bd5650ea4a4d6","import_time":"2026-05-26T05:50:36.179604179Z","id":"IN-MAL-2026-003416","modified_time":"2026-05-20T02:28:21Z","versions":["3.0.1"]},{"source":"amazon-inspector","sha256":"65c21755d121ec1e9099c7b27daa4f3f925f43a4c780d513d9db740a68589ef9","import_time":"2026-05-26T05:52:57.423809885Z","id":"IN-MAL-2026-004617","modified_time":"2026-05-25T09:51:48Z","versions":["5.0.1"]},{"source":"amazon-inspector","sha256":"9115fec7bc81baed4d91bd288d70fb3ee335022f809e49a1977dd26a9bb7ed3f","import_time":"2026-05-26T05:52:39.227471666Z","id":"IN-MAL-2026-004465","modified_time":"2026-05-24T05:43:51Z","versions":["4.0.8"]},{"source":"amazon-inspector","sha256":"ab1f4ebb9b0999f78e07156fee9ddc4a5d5fba62dde9860d53c6ffdca17ae40e","import_time":"2026-05-26T05:52:52.378741063Z","id":"IN-MAL-2026-004576","modified_time":"2026-05-25T03:51:18Z","versions":["5.0.0"]},{"source":"amazon-inspector","sha256":"ac6f383bb15ad3695b0076a2eeb174abd4046cc2d8f5f6887a75817432bd8dba","import_time":"2026-05-26T05:52:21.014258615Z","id":"IN-MAL-2026-004309","modified_time":"2026-05-23T10:08:18Z","versions":["4.0.5"]},{"source":"amazon-inspector","sha256":"e9f688d1eb6f150c806dffd9d1254a79b840bbaa197a0e4b89433ec800b690f3","import_time":"2026-05-26T05:50:47.697731547Z","id":"IN-MAL-2026-003526","modified_time":"2026-05-20T12:20:36Z","versions":["3.0.7"]},{"source":"amazon-inspector","sha256":"fc26243a08507ac3dd3802eceac5390b945511271a3029d10f7c983b8df4cd52","import_time":"2026-05-26T05:52:30.434734818Z","id":"IN-MAL-2026-004391","modified_time":"2026-05-23T22:33:41Z","versions":["4.0.7"]},{"source":"amazon-inspector","sha256":"11fbe698ca8ddd83c5f29afa2fc33ff27ce6887a70912daf40353f92780fe789","import_time":"2026-05-26T05:52:16.257821295Z","id":"IN-MAL-2026-004268","modified_time":"2026-05-22T23:04:03Z","versions":["4.0.2"]},{"source":"amazon-inspector","sha256":"2cd1b0651b115824914e3b38577a8c599b295d20e83050baa4840990016b1dc8","import_time":"2026-05-26T05:52:18.774876675Z","id":"IN-MAL-2026-004289","modified_time":"2026-05-23T05:13:27Z","versions":["4.0.4"]},{"source":"amazon-inspector","sha256":"6f63d0b962f666eb8967f2bd1329f066c1b6487e42a235ebfa8fdd94ccd3b816","import_time":"2026-05-26T05:51:14.896443801Z","id":"IN-MAL-2026-003753","modified_time":"2026-05-21T06:00:53Z","versions":["4.0.0"]},{"source":"amazon-inspector","sha256":"ae8e01268f91446d0a38edb8aa2a9d11ee045363d26034e0e7f41681869747c2","import_time":"2026-05-26T05:51:14.063977792Z","id":"IN-MAL-2026-003745","modified_time":"2026-05-21T05:41:20Z","versions":["3.0.9"]},{"source":"amazon-inspector","sha256":"08d3d5bddb63a2d0fafd731291f7078d41b4ed5bc98f6fc8cf26699780159886","import_time":"2026-06-12T19:43:53.926121625Z","id":"IN-MAL-2026-005977","modified_time":"2026-06-12T19:06:25Z","versions":["5.0.5"]},{"source":"amazon-inspector","sha256":"bffdb59cf0bd71129e7a7e9053df024c98a4fd34cd7d3111b44b83e883b5e90e","import_time":"2026-06-12T19:43:53.815386271Z","id":"IN-MAL-2026-005976","modified_time":"2026-06-12T19:06:23Z","versions":["5.0.4"]}]}}

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