Skip to main content
MalwarePublished Updated

gpt-sdk (npm) · Malicious Code

Affects gpt-sdkSource GCVE Database

0

Malicious package : remove gpt-sdk and rotate any secrets on hosts that installed it.

Data as of 8 Sep 2026, 10:38 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-5612

What to do

Remove gpt-sdk 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
npmgpt-sdkAffected
  • 0.1.0 – 0.2.4
9 affected builds
Fixed in–

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

Description

The gpt-sdk npm package contains malicious code that executes during installation. Its postinstall.js script collects extensive reconnaissance data from the host environment, including network and Active Directory details, user profile information, VPN client signals, and CI/CD environment variables. This data is sent unencrypted to a remote server, enabling attackers to map corporate networks and development environments. The package's main module is otherwise empty, and the README falsely claims no data collection occurs. This behavior constitutes a supply-chain reconnaissance threat.

References

Community reviews

Loading reviews…