Malicious code in gpt-sdk (npm)
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.
Affected software
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
Technical Analysis
The gpt-sdk npm package versions 0.1.0 through 0.2.4 contain a postinstall.js script that runs unconditionally on npm install. This script gathers a wide range of installer-side reconnaissance data such as hostname, FQDN, /etc/hosts entries, Windows Active Directory environment variables, user profile details, VPN client signals, npm registry URL, and continuous integration repository identifiers. The collected information is concatenated into a query string and sent via plaintext HTTP GET to a remote IP address (http://46.224.67.169:3000/ping). The package's main module exports an empty object, indicating the postinstall beacon is the sole payload. The README misleadingly states that no data is collected. This is a classic supply-chain reconnaissance payload designed to map corporate networks, internal AD topology, and CI/CD environments of users installing the package.
Potential Impact
The malicious postinstall script compromises user privacy and organizational security by exfiltrating sensitive environment and network configuration data to an attacker-controlled server. This reconnaissance data can facilitate targeted attacks against corporate networks, Active Directory infrastructures, and software development pipelines. Although no direct code execution beyond data collection is described, the exposure of internal network topology and CI/CD environment details poses a significant risk to affected organizations.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately discontinue use of the gpt-sdk package versions 0.1.0 through 0.2.4 and remove it from their projects. Audit dependency trees for inclusion of this package and replace it with trusted alternatives. Monitor for any network connections to the indicated IP address and block outbound traffic to it if possible. Since the package's README falsely claims no data collection, do not trust package metadata alone. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5612
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-wrmh-73gr-22fc"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f318acd9273b49e495ef
Added to database: 09/01/2026, 15:45:28 UTC
Last enriched: 09/08/2026, 10:38:54 UTC
Last updated: 10/04/2026, 07:35:13 UTC
Views: 26
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.