MAL-2026-4394

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ikyyofc/gemini-cli/MAL-2026-4394.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4394
Published
2026-05-20T02:28:21Z
Modified
2026-05-26T06:01:50.033110403Z
Summary
Malicious code in @ikyyofc/gemini-cli (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (5793a1cde3de83b8c15b49a0f9981d72fbf431067a4416ce6b2bd5650ea4a4d6)

@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:

  1. 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.

  2. 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.

The 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "source": "amazon-inspector",
            "sha256": "02dc0713ef228e85a00c9b42387d372926de86995282046d97097ec2c70949a2",
            "modified_time": "2026-05-23T22:23:11Z",
            "versions": [
                "4.0.6"
            ],
            "id": "IN-MAL-2026-004390",
            "import_time": "2026-05-26T05:52:30.316450757Z"
        },
        {
            "sha256": "eb34383a3b5afed7609c8ffaba4251d3f76d2911dd89b847f99e0982e2ea50d7",
            "source": "amazon-inspector",
            "modified_time": "2026-05-25T17:23:51Z",
            "versions": [
                "5.0.2"
            ],
            "id": "IN-MAL-2026-004731",
            "import_time": "2026-05-26T05:53:10.480861693Z"
        },
        {
            "sha256": "fe916093166227f9f446f7a296135ec423d17d0c85a5b0c6790e73c76f8b99ce",
            "source": "amazon-inspector",
            "modified_time": "2026-05-20T11:47:37Z",
            "id": "IN-MAL-2026-003523",
            "import_time": "2026-05-26T05:50:47.317371102Z",
            "versions": [
                "3.0.6"
            ]
        },
        {
            "source": "amazon-inspector",
            "sha256": "4332ef1d823062f94ca9e4c46d6f549050a63909182e5e0275df2d30e14c6a1f",
            "modified_time": "2026-05-22T23:15:51Z",
            "versions": [
                "4.0.3"
            ],
            "id": "IN-MAL-2026-004271",
            "import_time": "2026-05-26T05:52:16.637654017Z"
        },
        {
            "sha256": "5793a1cde3de83b8c15b49a0f9981d72fbf431067a4416ce6b2bd5650ea4a4d6",
            "source": "amazon-inspector",
            "modified_time": "2026-05-20T02:28:21Z",
            "import_time": "2026-05-26T05:50:36.179604179Z",
            "versions": [
                "3.0.1"
            ],
            "id": "IN-MAL-2026-003416"
        },
        {
            "sha256": "65c21755d121ec1e9099c7b27daa4f3f925f43a4c780d513d9db740a68589ef9",
            "source": "amazon-inspector",
            "modified_time": "2026-05-25T09:51:48Z",
            "id": "IN-MAL-2026-004617",
            "import_time": "2026-05-26T05:52:57.423809885Z",
            "versions": [
                "5.0.1"
            ]
        },
        {
            "sha256": "9115fec7bc81baed4d91bd288d70fb3ee335022f809e49a1977dd26a9bb7ed3f",
            "source": "amazon-inspector",
            "modified_time": "2026-05-24T05:43:51Z",
            "id": "IN-MAL-2026-004465",
            "import_time": "2026-05-26T05:52:39.227471666Z",
            "versions": [
                "4.0.8"
            ]
        },
        {
            "source": "amazon-inspector",
            "sha256": "ab1f4ebb9b0999f78e07156fee9ddc4a5d5fba62dde9860d53c6ffdca17ae40e",
            "modified_time": "2026-05-25T03:51:18Z",
            "versions": [
                "5.0.0"
            ],
            "id": "IN-MAL-2026-004576",
            "import_time": "2026-05-26T05:52:52.378741063Z"
        },
        {
            "sha256": "ac6f383bb15ad3695b0076a2eeb174abd4046cc2d8f5f6887a75817432bd8dba",
            "source": "amazon-inspector",
            "modified_time": "2026-05-23T10:08:18Z",
            "import_time": "2026-05-26T05:52:21.014258615Z",
            "versions": [
                "4.0.5"
            ],
            "id": "IN-MAL-2026-004309"
        },
        {
            "sha256": "e9f688d1eb6f150c806dffd9d1254a79b840bbaa197a0e4b89433ec800b690f3",
            "source": "amazon-inspector",
            "modified_time": "2026-05-20T12:20:36Z",
            "versions": [
                "3.0.7"
            ],
            "id": "IN-MAL-2026-003526",
            "import_time": "2026-05-26T05:50:47.697731547Z"
        },
        {
            "sha256": "fc26243a08507ac3dd3802eceac5390b945511271a3029d10f7c983b8df4cd52",
            "source": "amazon-inspector",
            "modified_time": "2026-05-23T22:33:41Z",
            "id": "IN-MAL-2026-004391",
            "import_time": "2026-05-26T05:52:30.434734818Z",
            "versions": [
                "4.0.7"
            ]
        },
        {
            "sha256": "11fbe698ca8ddd83c5f29afa2fc33ff27ce6887a70912daf40353f92780fe789",
            "source": "amazon-inspector",
            "modified_time": "2026-05-22T23:04:03Z",
            "id": "IN-MAL-2026-004268",
            "import_time": "2026-05-26T05:52:16.257821295Z",
            "versions": [
                "4.0.2"
            ]
        },
        {
            "source": "amazon-inspector",
            "sha256": "2cd1b0651b115824914e3b38577a8c599b295d20e83050baa4840990016b1dc8",
            "modified_time": "2026-05-23T05:13:27Z",
            "versions": [
                "4.0.4"
            ],
            "id": "IN-MAL-2026-004289",
            "import_time": "2026-05-26T05:52:18.774876675Z"
        },
        {
            "sha256": "6f63d0b962f666eb8967f2bd1329f066c1b6487e42a235ebfa8fdd94ccd3b816",
            "source": "amazon-inspector",
            "modified_time": "2026-05-21T06:00:53Z",
            "id": "IN-MAL-2026-003753",
            "import_time": "2026-05-26T05:51:14.896443801Z",
            "versions": [
                "4.0.0"
            ]
        },
        {
            "source": "amazon-inspector",
            "sha256": "ae8e01268f91446d0a38edb8aa2a9d11ee045363d26034e0e7f41681869747c2",
            "modified_time": "2026-05-21T05:41:20Z",
            "versions": [
                "3.0.9"
            ],
            "id": "IN-MAL-2026-003745",
            "import_time": "2026-05-26T05:51:14.063977792Z"
        }
    ]
}
References
Credits

Affected packages

npm / @ikyyofc/gemini-cli

Package

Name
@ikyyofc/gemini-cli
View open source insights on deps.dev
Purl
pkg:npm/%40ikyyofc%2Fgemini-cli

Affected ranges

Affected versions

3.*
3.0.1
3.0.6
3.0.7
3.0.9
4.*
4.0.0
4.0.2
4.0.3
4.0.4
4.0.5
4.0.6
4.0.7
4.0.8
5.*
5.0.0
5.0.1
5.0.2

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ikyyofc/gemini-cli/MAL-2026-4394.json"
indicators
{
    "package_integrity": [
        {
            "filename": "gemini-cli-4.0.6.tgz",
            "hashes": {
                "sha1": "621ac39d3932eed262d83b5b988a4aafb0b412b9",
                "sha512_sri": "sha512-ywktjyX/YjPoRgmlIvwU9MIMUBBCWAxzvT64oD5gHnfLFPOqxKCclH6UClzjYu+60PRdOT0mgx9lAPWeD1SEGw=="
            }
        }
    ],
    "evidence_files": [
        {
            "sha256": "c3a1b0ea55c1eff6a87d0a3ff6c4d223f25177ecf927d221d28dc4f4968fa79e",
            "tlsh": "3ad282d976883ec12b0b1a977f63f8f0d8ab199ef1400996e188bc2ca155233d6f5634",
            "path": "src/gemini.js"
        }
    ]
}
cwes
[
    {
        "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"
    }
]