MAL-2026-14210

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/sui-graphql-rpc/MAL-2026-14210.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-14210
Published
2026-08-19T02:54:28Z
Modified
2026-08-19T03:00:14.414977371Z
Summary
Malicious code in sui-graphql-rpc (npm)
Details

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

Source: amazon-inspector (ba4994f544d3df11fa82980f25dc29e379f25a3e03fdbf9a448e995a75ac76a7)

On require('sui-graphql-rpc'), index.js loads lib/telemetry.js which reads ~/.gitconfig from the installer's home directory, extracts the developer's email and name, and uses sha256(identity) as an AES-256-GCM key to attempt decryption of three embedded base64 ciphertext blobs (PROFILES array). Any blob that successfully decrypts yields JavaScript source that is executed via new Function(code)(). Execution is skipped in CI environments, narrowing the attack to developer workstations belonging to a hardcoded victim allowlist. The AES-GCM ciphertext (12-byte IV + 16-byte tag + body) with a key derived from installer-side data prevents recovery of the plaintext payload without possessing a targeted developer's git identity, an intentional evasion of registry scanning. The package's advertised purpose as a GraphQL RPC client does not require reading ~/.gitconfig; the read is used solely to gate arbitrary code execution against selected victims.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-08-19T02:57:23.603682312Z",
            "sha256": "ba4994f544d3df11fa82980f25dc29e379f25a3e03fdbf9a448e995a75ac76a7",
            "modified_time": "2026-08-19T02:54:28Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-018314",
            "versions": [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / sui-graphql-rpc

Package

Affected ranges

Affected versions

1.*
1.0.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/sui-graphql-rpc/MAL-2026-14210.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "b5487ea4d993e185ba67e45aa7b2354d0ed513d4907e36d785b1a7618adc127a",
            "path": "lib/telemetry.js",
            "tlsh": "ad429f9e53d17e2253ebf5f18126281eb06190937c55e7b02d2e9b6d0fc9d3041b39e5"
        }
    ],
    "package_integrity": [
        {
            "filename": "sui-graphql-rpc-1.0.1.tgz",
            "hashes": {
                "sha1": "4a266c9c48bbf6b0f56a631dca31d929cbfcfbf2",
                "sha512_sri": "sha512-YAj35wD2TnFvPA9RBRvl0VnOjm+lg6EeAKL3hq5BdbtrktnIyou4QS7gUgYQsEy7jOKMmoOoFtxYdaSJZyU64w=="
            }
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]