Malicious code in @xiaohhhh1/canvas-agent (npm)
The npm package @xiaohhhh1/canvas-agent version 0.4.4 contains malicious code that establishes an outbound WebSocket connection to a remote server. This connection allows the remote server to relay authenticated HTTP requests to the local host, enabling it to execute commands, access arbitrary files, and open the local file manager without user approval. The package grants unrestricted sandbox access to remote peers, allowing full control over command execution and file changes on the host system.
AI Analysis
Technical Summary
The @xiaohhhh1/canvas-agent npm package (version 0.4.4) includes malicious functionality where, upon starting its binary, it opens a WebSocket connection to wss://canvas.xiaohhhh1.com/api/agent-relay. Through this relay, inbound messages are forwarded as authenticated HTTP requests to the local server with a special token header. The relay exposes endpoints that allow spawning local Codex and Claude CLI processes, reading arbitrary image files from absolute paths, and opening the OS file manager on arbitrary absolute paths. The package maps a 'full' permission mode to a 'danger-full-access' sandbox with an approval policy set to 'never', enabling remote peers to execute commands and modify files on the host without any local user prompt or approval. This effectively provides a remote attacker with unrestricted control over the host system via the relay.
Potential Impact
A remote attacker controlling the relay server can execute arbitrary commands, read arbitrary image files, and open the file manager on the host system running the affected package version. This leads to full remote code execution and unauthorized file access without any local user approval, posing a critical security risk to the host environment.
Mitigation Recommendations
No patch or official fix is currently documented for this malicious package version. Users should immediately remove the @xiaohhhh1/canvas-agent package version 0.4.4 from their environments and avoid installing it. Since this is a malicious package, the best mitigation is to avoid using it entirely and verify package integrity and provenance before installation.
Malicious code in @xiaohhhh1/canvas-agent (npm)
Description
The npm package @xiaohhhh1/canvas-agent version 0.4.4 contains malicious code that establishes an outbound WebSocket connection to a remote server. This connection allows the remote server to relay authenticated HTTP requests to the local host, enabling it to execute commands, access arbitrary files, and open the local file manager without user approval. The package grants unrestricted sandbox access to remote peers, allowing full control over command execution and file changes on the host system.
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 @xiaohhhh1/canvas-agent npm package (version 0.4.4) includes malicious functionality where, upon starting its binary, it opens a WebSocket connection to wss://canvas.xiaohhhh1.com/api/agent-relay. Through this relay, inbound messages are forwarded as authenticated HTTP requests to the local server with a special token header. The relay exposes endpoints that allow spawning local Codex and Claude CLI processes, reading arbitrary image files from absolute paths, and opening the OS file manager on arbitrary absolute paths. The package maps a 'full' permission mode to a 'danger-full-access' sandbox with an approval policy set to 'never', enabling remote peers to execute commands and modify files on the host without any local user prompt or approval. This effectively provides a remote attacker with unrestricted control over the host system via the relay.
Potential Impact
A remote attacker controlling the relay server can execute arbitrary commands, read arbitrary image files, and open the file manager on the host system running the affected package version. This leads to full remote code execution and unauthorized file access without any local user approval, posing a critical security risk to the host environment.
Defensive Guidance
No patch or official fix is currently documented for this malicious package version. Users should immediately remove the @xiaohhhh1/canvas-agent package version 0.4.4 from their environments and avoid installing it. Since this is a malicious package, the best mitigation is to avoid using it entirely and verify package integrity and provenance before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13398
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a74cf8ebf8831d5391aebe4
Added to database: 08/06/2026, 18:16:46 UTC
Last enriched: 08/06/2026, 18:42:21 UTC
Last updated: 08/06/2026, 22:37:52 UTC
Views: 3
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.