Malicious code in @agent-link/agent (npm)
The @agent-link/agent npm package contains malicious code that connects to a hardcoded WebSocket relay at wss://msclaude.ai. This relay can send commands that are executed interactively on the host system via a locally spawned shell, enabling remote command execution. The package also fetches and installs updates from the same unverified origin, allowing an attacker controlling the relay to replace the package with malicious versions. The publisher identity and origin of the relay are unclear and unverified, increasing the risk of supply chain compromise. Multiple specific versions of the package are affected.
AI Analysis
Technical Summary
The @agent-link/agent npm package establishes a WebSocket connection to a hardcoded relay endpoint (wss://msclaude.ai) and forwards messages received from this relay directly into a locally spawned pseudo-terminal (PTY) shell process. This design allows whoever controls the relay or holds a session URL to execute arbitrary commands interactively on the host system running the agent. Additionally, the package's emergency upgrade mechanism downloads replacement package tarballs from the same origin, verifying only manifest data served by that origin, effectively allowing the relay operator to push signed-by-manifest malicious updates. The package's publisher provenance is unclear, with inconsistent GitHub references and an unverified relay domain, indicating a high risk of malicious supply chain activity.
Potential Impact
An attacker controlling the WebSocket relay or possessing a valid session URL can execute arbitrary commands on the host system running the vulnerable @agent-link/agent package. This includes interactive shell access and the ability to perform HTTP requests or other operations via included scripts. Furthermore, the attacker can push malicious package updates by controlling the update manifest and tarball served from the relay domain, enabling persistent compromise and further malicious actions. This represents a critical supply chain compromise risk.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately discontinue use of the @agent-link/agent package versions listed as affected. Due to the malicious nature of the package and unverified publisher identity, it is recommended to remove the package from all environments and avoid installing it until a trustworthy, verified version or alternative is available. Monitor for any unauthorized command execution or unexpected network connections to wss://msclaude.ai. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
Malicious code in @agent-link/agent (npm)
Description
The @agent-link/agent npm package contains malicious code that connects to a hardcoded WebSocket relay at wss://msclaude.ai. This relay can send commands that are executed interactively on the host system via a locally spawned shell, enabling remote command execution. The package also fetches and installs updates from the same unverified origin, allowing an attacker controlling the relay to replace the package with malicious versions. The publisher identity and origin of the relay are unclear and unverified, increasing the risk of supply chain compromise. Multiple specific versions of the package are affected.
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 @agent-link/agent npm package establishes a WebSocket connection to a hardcoded relay endpoint (wss://msclaude.ai) and forwards messages received from this relay directly into a locally spawned pseudo-terminal (PTY) shell process. This design allows whoever controls the relay or holds a session URL to execute arbitrary commands interactively on the host system running the agent. Additionally, the package's emergency upgrade mechanism downloads replacement package tarballs from the same origin, verifying only manifest data served by that origin, effectively allowing the relay operator to push signed-by-manifest malicious updates. The package's publisher provenance is unclear, with inconsistent GitHub references and an unverified relay domain, indicating a high risk of malicious supply chain activity.
Potential Impact
An attacker controlling the WebSocket relay or possessing a valid session URL can execute arbitrary commands on the host system running the vulnerable @agent-link/agent package. This includes interactive shell access and the ability to perform HTTP requests or other operations via included scripts. Furthermore, the attacker can push malicious package updates by controlling the update manifest and tarball served from the relay domain, enabling persistent compromise and further malicious actions. This represents a critical supply chain compromise risk.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately discontinue use of the @agent-link/agent package versions listed as affected. Due to the malicious nature of the package and unverified publisher identity, it is recommended to remove the package from all environments and avoid installing it until a trustworthy, verified version or alternative is available. Monitor for any unauthorized command execution or unexpected network connections to wss://msclaude.ai. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10705
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a74cf8cbf8831d5391ae70d
Added to database: 08/06/2026, 18:16:44 UTC
Last enriched: 08/06/2026, 18:33:01 UTC
Last updated: 08/06/2026, 18:33:01 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.