Malicious code in nps-retrieval-diagnostics (npm)
The nps-retrieval-diagnostics npm package version 9.9.9 contains malicious code that installs persistent backdoor access on the host. When executed, it adds a cron job running every 10 minutes that contacts a remote server and modifies the user's shell configuration to maintain persistence. It also attempts to harvest environment variables that resemble credentials. The package masquerades as an internal diagnostic tool and uses social engineering to trick operators into running it. This is consistent with a dependency confusion attack targeting internal package names.
AI Analysis
Technical Summary
The nps-retrieval-diagnostics package at version 9.9.9 includes a malicious binary named 'retrieval-diagnostics' that, when run, installs a persistence mechanism by appending a crontab entry executing every 10 minutes to beacon to https://arsenal-payload.com. It also modifies the ~/.bashrc file to add a persistent alias and presence across shell sessions. The script enumerates environment variables for keys containing sensitive substrings such as KEY, TOKEN, API, SECRET, PASSWORD, and cloud provider identifiers, indicating an attempt to harvest secrets. The package falsely claims to be an 'Internal NPS Critical Diagnostic Tool' and displays a fake system breach warning to socially engineer users into executing it. The version and description suggest it was delivered via dependency confusion targeting internal package namespaces.
Potential Impact
Successful execution of the malicious binary results in persistent remote access to the host via a cron job beaconing to an attacker-controlled server. The attacker gains durable presence through shell configuration modifications and can harvest environment variables that may contain sensitive credentials or API keys. This compromises the confidentiality and integrity of the affected system and potentially any connected infrastructure or data accessed with harvested secrets.
Mitigation Recommendations
No official patch or fix is currently available for this malicious package. Users should avoid installing or running version 9.9.9 of nps-retrieval-diagnostics. Remove any installed instances of this package and inspect systems for the presence of the cron job and modifications to ~/.bashrc. Revoke any potentially exposed credentials found in environment variables. Monitor for suspicious network connections to https://arsenal-payload.com and related domains. Consider implementing supply chain security measures to prevent dependency confusion attacks, such as strict package name vetting and internal package namespace controls.
Malicious code in nps-retrieval-diagnostics (npm)
Description
The nps-retrieval-diagnostics npm package version 9.9.9 contains malicious code that installs persistent backdoor access on the host. When executed, it adds a cron job running every 10 minutes that contacts a remote server and modifies the user's shell configuration to maintain persistence. It also attempts to harvest environment variables that resemble credentials. The package masquerades as an internal diagnostic tool and uses social engineering to trick operators into running it. This is consistent with a dependency confusion attack targeting internal package names.
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 nps-retrieval-diagnostics package at version 9.9.9 includes a malicious binary named 'retrieval-diagnostics' that, when run, installs a persistence mechanism by appending a crontab entry executing every 10 minutes to beacon to https://arsenal-payload.com. It also modifies the ~/.bashrc file to add a persistent alias and presence across shell sessions. The script enumerates environment variables for keys containing sensitive substrings such as KEY, TOKEN, API, SECRET, PASSWORD, and cloud provider identifiers, indicating an attempt to harvest secrets. The package falsely claims to be an 'Internal NPS Critical Diagnostic Tool' and displays a fake system breach warning to socially engineer users into executing it. The version and description suggest it was delivered via dependency confusion targeting internal package namespaces.
Potential Impact
Successful execution of the malicious binary results in persistent remote access to the host via a cron job beaconing to an attacker-controlled server. The attacker gains durable presence through shell configuration modifications and can harvest environment variables that may contain sensitive credentials or API keys. This compromises the confidentiality and integrity of the affected system and potentially any connected infrastructure or data accessed with harvested secrets.
Mitigation Recommendations
No official patch or fix is currently available for this malicious package. Users should avoid installing or running version 9.9.9 of nps-retrieval-diagnostics. Remove any installed instances of this package and inspect systems for the presence of the cron job and modifications to ~/.bashrc. Revoke any potentially exposed credentials found in environment variables. Monitor for suspicious network connections to https://arsenal-payload.com and related domains. Consider implementing supply chain security measures to prevent dependency confusion attacks, such as strict package name vetting and internal package namespace controls.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10066
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50baaa68715ace435855e5
Added to database: 07/10/2026, 09:26:02 UTC
Last enriched: 07/10/2026, 10:16:12 UTC
Last updated: 07/30/2026, 06:32:40 UTC
Views: 32
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.