Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in @nsub/nitxe (npm)

0
Critical
Published: 07/13/2026 (07/13/2026, 08:30:08 UTC)
Source: GCVE Database
Product: @nsub/nitxe

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

npmghsa
@nsub/nitxe
Affected versions
=1.0.1=1.0.0

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: 07/14/2026, 09:24:45 UTC

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.

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-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 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