Malicious code in @nsub/nitxe (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (b16147b7ac55d6c4cc4e042be73e6d49fc7232e8a03f406fecd034cdd27bf0eb) The package's declared npm postinstall script collects the installer's username (os.userInfo().username), hostname (os.hostname()), platform, and the entire process.env object, base64-encodes the JSON, and transmits it as a query parameter in an HTTPS GET to a hardcoded unrelated host (gjsidn.co/collect?d=...). This fires automatically on `npm install`. The call is dispatched via `eval('play(food())')` wrapped in a silent try/catch — an obfuscation pattern with no legitimate purpose. In this specific version the postinstall.js file requires only `https` and never requires `os`, so the eval'd call throws a ReferenceError that the try/catch swallows and no network I/O actually occurs — but the code shape is unambiguous credential/environment theft and a one-line follow-up publish would make it live. Installer harm surface: full process.env dump on CI machines commonly exports cloud credentials, CI secrets, and npm publish tokens. ## Source: ghsa-malware (d3269e39ebe4ffb139eba279503d64bceb158c5a822b2238c92dc463c10aedba) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
AI Analysis
Technical Summary
The @nsub/nitxe npm package versions 1.0.0 and 1.0.1 include a postinstall script that collects sensitive system and environment data (username, hostname, platform, and process.env) and encodes it for exfiltration to a hardcoded external domain. The exfiltration attempt is obfuscated via an eval call wrapped in a silent try/catch block. In the current versions, a ReferenceError prevents the network call from executing, but the malicious code shape is explicit and could be activated by a minor code change. This behavior risks exposure of sensitive credentials commonly found in CI environments, such as cloud credentials and npm tokens. The package should be removed, and all secrets rotated due to the risk of full system compromise.
Potential Impact
If successfully executed, the malicious postinstall script could exfiltrate sensitive environment variables, including cloud credentials, CI secrets, and npm publish tokens, potentially leading to full system compromise. Even though the current versions have a bug preventing the exfiltration, the presence of such code indicates a high risk. Systems with this package installed should be treated as compromised, and secrets should be rotated immediately. Removal of the package does not guarantee full remediation as the attacker may have established persistence.
Mitigation Recommendations
No official patch or fix is currently available. Users should immediately remove the @nsub/nitxe package versions 1.0.0 and 1.0.1 from their environments. All secrets and credentials on affected systems should be rotated from a secure, uncompromised machine. Because the package may have granted attackers full control, additional forensic analysis and remediation may be necessary. Monitor for any suspicious activity related to the compromised environment.
Malicious code in @nsub/nitxe (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (b16147b7ac55d6c4cc4e042be73e6d49fc7232e8a03f406fecd034cdd27bf0eb) The package's declared npm postinstall script collects the installer's username (os.userInfo().username), hostname (os.hostname()), platform, and the entire process.env object, base64-encodes the JSON, and transmits it as a query parameter in an HTTPS GET to a hardcoded unrelated host (gjsidn.co/collect?d=...). This fires automatically on `npm install`. The call is dispatched via `eval('play(food())')` wrapped in a silent try/catch — an obfuscation pattern with no legitimate purpose. In this specific version the postinstall.js file requires only `https` and never requires `os`, so the eval'd call throws a ReferenceError that the try/catch swallows and no network I/O actually occurs — but the code shape is unambiguous credential/environment theft and a one-line follow-up publish would make it live. Installer harm surface: full process.env dump on CI machines commonly exports cloud credentials, CI secrets, and npm publish tokens. ## Source: ghsa-malware (d3269e39ebe4ffb139eba279503d64bceb158c5a822b2238c92dc463c10aedba) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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 @nsub/nitxe npm package versions 1.0.0 and 1.0.1 include a postinstall script that collects sensitive system and environment data (username, hostname, platform, and process.env) and encodes it for exfiltration to a hardcoded external domain. The exfiltration attempt is obfuscated via an eval call wrapped in a silent try/catch block. In the current versions, a ReferenceError prevents the network call from executing, but the malicious code shape is explicit and could be activated by a minor code change. This behavior risks exposure of sensitive credentials commonly found in CI environments, such as cloud credentials and npm tokens. The package should be removed, and all secrets rotated due to the risk of full system compromise.
Potential Impact
If successfully executed, the malicious postinstall script could exfiltrate sensitive environment variables, including cloud credentials, CI secrets, and npm publish tokens, potentially leading to full system compromise. Even though the current versions have a bug preventing the exfiltration, the presence of such code indicates a high risk. Systems with this package installed should be treated as compromised, and secrets should be rotated immediately. Removal of the package does not guarantee full remediation as the attacker may have established persistence.
Mitigation Recommendations
No official patch or fix is currently available. Users should immediately remove the @nsub/nitxe package versions 1.0.0 and 1.0.1 from their environments. All secrets and credentials on affected systems should be rotated from a secure, uncompromised machine. Because the package may have granted attackers full control, additional forensic analysis and remediation may be necessary. Monitor for any suspicious activity related to the compromised environment.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10429
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-54gp-rw59-mwf2"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a55ff4e68715ace432efda9
Added to database: 07/14/2026, 09:20:14 UTC
Last enriched: 07/14/2026, 09:24:45 UTC
Last updated: 07/27/2026, 08:56:27 UTC
Views: 21
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.
External Links
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.