Skip to main content
MalwarePublished

sui-graphql-rpc (npm) · Malicious Code

Affects sui-graphql-rpcSource GCVE Database

0

Malicious package : remove sui-graphql-rpc and rotate any secrets on hosts that installed it.

Data as of 19 Aug 2026, 14:39 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14210

What to do

Remove sui-graphql-rpc from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmsui-graphql-rpcAffected
  • =1.0.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package sui-graphql-rpc version 1.0.1 contains malicious code that reads the installer's ~/.gitconfig to extract the developer's email and name. It uses a SHA-256 hash of this identity as an AES-256-GCM key to decrypt embedded ciphertext blobs. If decryption succeeds, the resulting JavaScript code is executed dynamically, allowing targeted arbitrary code execution on developer workstations. This behavior is intentionally designed to evade detection by restricting execution to a hardcoded victim allowlist and skipping execution in CI environments. The package's advertised functionality does not require reading ~/.gitconfig, indicating the read is solely for malicious gating of code execution.

References

Community reviews

Loading reviews…