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 nps-retrieval-diagnostics (npm)

0
High
Published: 07/09/2026 (07/09/2026, 15:54:52 UTC)
Source: GCVE Database
Product: nps-retrieval-diagnostics

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

npmghsa
nps-retrieval-diagnostics
Affected versions
=9.9.9

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/10/2026, 10:16:12 UTC

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.

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