MAL-2026-10695

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ai-p2p/MAL-2026-10695.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10695
Aliases
  • GHSA-g5cv-hmr5-x42p
Published
2026-07-16T08:13:04Z
Modified
2026-08-05T06:36:00Z
Summary
Malicious code in ai-p2p (npm)
Details

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

Source: amazon-inspector (8addfcd7b527a107164a782a0a85fad3e318dcbe195643df859a15f159977baa)

The package ships a single index.html that embeds a hardcoded Google Generative Language API key as a JavaScript constant (const GEMINI_KEY = "AQ.Ab8RN6...";) and calls https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent?key=<KEY> from the browser when the user clicks the chat button. The key belongs to the package author's own Google account. There are no npm lifecycle scripts (no preinstall/install/postinstall/prepare), and main points at the HTML file, so nothing executes on npm install or require(). The key is not a third-party credential being distributed to installers, nor does the code read or exfiltrate any installer-side data; the only consequence of using the package is that requests consume the author's own Gemini quota.

Source: ghsa-malware (51af066ded725d3f36b41a5c4bdf9977a7976293b11fef6c4c63ee894c1f5da2)

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

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "GHSA-g5cv-hmr5-x42p",
            "import_time": "2026-07-16T09:01:59.997520395Z",
            "modified_time": "2026-07-16T08:13:04Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "51af066ded725d3f36b41a5c4bdf9977a7976293b11fef6c4c63ee894c1f5da2",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-013151",
            "import_time": "2026-08-05T06:00:47.80887172Z",
            "modified_time": "2026-08-05T05:41:11Z",
            "sha256": "8addfcd7b527a107164a782a0a85fad3e318dcbe195643df859a15f159977baa",
            "source": "amazon-inspector",
            "versions": [
                "1.0.2"
            ]
        },
        {
            "id": "IN-MAL-2026-013258",
            "import_time": "2026-08-05T06:00:59.136097257Z",
            "modified_time": "2026-08-05T05:57:06Z",
            "sha256": "b94773398cc5f5b31344d7d18d47b09596c20e45c356700e4f1a84f0cf74e3c6",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-013259",
            "import_time": "2026-08-05T06:00:59.234020452Z",
            "modified_time": "2026-08-05T05:57:13Z",
            "sha256": "f80755b56f4e24ec69fa3cd866a8fab12cec952fa4119ed83c4b70b37c5f2ec9",
            "source": "amazon-inspector",
            "versions": [
                "1.0.3"
            ]
        },
        {
            "id": "IN-MAL-2026-013142",
            "import_time": "2026-08-05T06:00:46.689492035Z",
            "modified_time": "2026-08-05T05:39:52Z",
            "sha256": "049a2fa14b797c4894701dcbd3ed80f4cb50f6d1ea4af51013b736877188197c",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-013141",
            "import_time": "2026-08-05T06:00:46.588267696Z",
            "modified_time": "2026-08-05T05:39:45Z",
            "sha256": "6dd04952fc8ebb73a5b3d8421aa51184205725e6fa481b7529845747197e8241",
            "source": "amazon-inspector",
            "versions": [
                "1.0.4"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / ai-p2p

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3
1.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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "index.html",
            "sha256": "b0a528866b3e6f81851e00c64fba1def0f2f24cb1ecca28005c1be2c73663c7d",
            "tlsh": "304165ab241b0d34cabb63a66c77610cfb52922f1501c7517a9c54b91f31971c2a2fcc"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ai-p2p/MAL-2026-10695.json"