Malicious code in vanexa-agent (npm)
The vanexa-agent npm package contains malicious code that establishes a persistent WebSocket connection to a hardcoded external relay controlled by an attacker. This connection allows the attacker to send commands that the agent executes on the host system with shell access, enabling arbitrary command execution. The authentication mechanism relies solely on a user-typed 6-digit code with no cryptographic protections, making it vulnerable to guessing or interception. Sensitive information, including the hostname and encrypted API keys, is transmitted to the relay. This vulnerability affects multiple specific versions of vanexa-agent and poses a critical risk of remote code execution.
AI Analysis
Technical Summary
The vanexa-agent package, when started, opens a persistent WebSocket connection to a hardcoded Cloudflare Workers relay URL. It processes incoming 'task_request' messages by executing shell commands on the host via spawn('/bin/bash', ['-c', command]) or equivalent on Windows. The only authentication is a 6-digit pairing code used as a session ID, with no JWT or message signing, allowing anyone controlling the relay or guessing the code to execute arbitrary commands. Configuration updates and sensitive data, including encrypted API keys and hostname, are sent to the relay. The package's README misleadingly advertises LAN-only communication, but the code forces WAN relay usage. This design constitutes a malicious backdoor enabling remote code execution on affected hosts.
Potential Impact
An attacker controlling the relay server or guessing the 6-digit session code can execute arbitrary shell commands on any host running the vulnerable vanexa-agent versions. This leads to full remote code execution, potential data exfiltration, system compromise, and lateral movement within affected environments. Sensitive configuration and encrypted API keys are also exposed to the attacker. The vulnerability effectively creates a backdoor with minimal authentication and no cryptographic protections.
Mitigation Recommendations
No official patch or fix is currently documented. Users should immediately stop running the vanexa-agent daemon and remove the package from their systems. Avoid connecting to the hardcoded relay URL and do not use the package until a vendor advisory or update is available. Monitor for any unauthorized activity on affected hosts. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Malicious code in vanexa-agent (npm)
Description
The vanexa-agent npm package contains malicious code that establishes a persistent WebSocket connection to a hardcoded external relay controlled by an attacker. This connection allows the attacker to send commands that the agent executes on the host system with shell access, enabling arbitrary command execution. The authentication mechanism relies solely on a user-typed 6-digit code with no cryptographic protections, making it vulnerable to guessing or interception. Sensitive information, including the hostname and encrypted API keys, is transmitted to the relay. This vulnerability affects multiple specific versions of vanexa-agent and poses a critical risk of remote code execution.
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 vanexa-agent package, when started, opens a persistent WebSocket connection to a hardcoded Cloudflare Workers relay URL. It processes incoming 'task_request' messages by executing shell commands on the host via spawn('/bin/bash', ['-c', command]) or equivalent on Windows. The only authentication is a 6-digit pairing code used as a session ID, with no JWT or message signing, allowing anyone controlling the relay or guessing the code to execute arbitrary commands. Configuration updates and sensitive data, including encrypted API keys and hostname, are sent to the relay. The package's README misleadingly advertises LAN-only communication, but the code forces WAN relay usage. This design constitutes a malicious backdoor enabling remote code execution on affected hosts.
Potential Impact
An attacker controlling the relay server or guessing the 6-digit session code can execute arbitrary shell commands on any host running the vulnerable vanexa-agent versions. This leads to full remote code execution, potential data exfiltration, system compromise, and lateral movement within affected environments. Sensitive configuration and encrypted API keys are also exposed to the attacker. The vulnerability effectively creates a backdoor with minimal authentication and no cryptographic protections.
Mitigation Recommendations
No official patch or fix is currently documented. Users should immediately stop running the vanexa-agent daemon and remove the package from their systems. Avoid connecting to the hardcoded relay URL and do not use the package until a vendor advisory or update is available. Monitor for any unauthorized activity on affected hosts. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10751
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a7573b5bf8831d539d93ab8
Added to database: 08/07/2026, 05:57:09 UTC
Last enriched: 08/07/2026, 07:43:13 UTC
Last updated: 08/07/2026, 07:43:13 UTC
Views: 2
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.