Skip to main content

Malicious code in sui-graphql-rpc (npm)

0
High
Published: 08/19/2026 (08/19/2026, 02:54:28 UTC)
Source: GCVE Database
Product: sui-graphql-rpc

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.

Affected software

npmghsa
sui-graphql-rpc
Affected versions
=1.0.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/19/2026, 14:39:33 UTC

Technical Analysis

The sui-graphql-rpc npm package (version 1.0.1) includes a malicious backdoor mechanism. Upon requiring the package, it loads telemetry.js which reads the ~/.gitconfig file of the installer to obtain the developer's email and name. These values are hashed with SHA-256 to derive an AES-256-GCM key used to decrypt three embedded base64-encoded ciphertext blobs. Successfully decrypted blobs yield JavaScript source code executed via new Function(), enabling arbitrary code execution. Execution is skipped in continuous integration environments and limited to a hardcoded victim allowlist, preventing broad detection. The use of installer-specific data as the decryption key and AES-GCM encryption prevents recovery of the payload without the targeted developer's git identity, demonstrating a sophisticated evasion technique. The malicious behavior is unrelated to the package's stated purpose as a GraphQL RPC client.

Potential Impact

This malicious package enables targeted arbitrary code execution on developer machines of selected victims. The attack is stealthy, as it only activates for developers whose git identity matches the allowlist and does not run in CI environments, reducing detection likelihood. This can lead to compromise of developer environments, potential theft of credentials or source code, and further supply chain contamination. The malicious code execution is gated by cryptographic means tied to the victim's identity, preventing detection by generic scanning tools.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately remove version 1.0.1 of sui-graphql-rpc from their projects and avoid installing this package. Verify the integrity of dependencies and audit for presence of this package. Since the malicious code targets developer environments by reading ~/.gitconfig, developers should be cautious when installing new or untrusted npm packages. Monitor for updates or advisories from the package maintainers or npm registry regarding this issue. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-14210
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a85b4c7acd9273b4925284b

Added to database: 08/19/2026, 13:51:03 UTC

Last enriched: 08/19/2026, 14:39:33 UTC

Last updated: 10/02/2026, 15:26:49 UTC

Views: 33

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses