Advisory

MAL-2026-14210

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

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.

Severity

Not rated by the source.

Dates

Published
2026-08-19 02:54 UTC
Modified
2026-08-19 03:00 UTC

Affected packages and fixes

sui-graphql-rpc

npm · All systems

Affected

  • Versions: 1.0.1

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences