Malicious code in @agenthub-ai/agent (npm)
The @agenthub-ai/agent npm package versions 0.5.1 and 0.9.2 contain malicious code that runs a daemon connecting to a hardcoded WebSocket server. This server can send commands that the daemon executes without local approval, enabling full remote code execution, arbitrary file read/write, and persistent code updates on the host machine.
AI Analysis
Technical Summary
The @agenthub-ai/agent package runs a daemon that opens a WebSocket connection to wss://agenthub-agent.fyenet.com. The daemon treats incoming messages as control commands executed on the host. It forwards MessageSend actions as user prompts to a Claude Code SDK session with 'bypassPermissions', allowing remote control of Bash and Edit tools without user approval, resulting in full remote code execution. The daemon also exposes FileTree, FileRead, FileWrite, and FileSearch actions without path restrictions, enabling enumeration of drives, arbitrary file reads (up to 20MB), and arbitrary file writes. An AgentUpdate action allows spawning a detached process that updates the package from the npm registry, enabling persistent code replacement controlled by the remote server or publishing account. This results in arbitrary shell execution, filesystem manipulation, and persistent malicious code on the installer's machine.
Potential Impact
An attacker controlling the remote WebSocket server can execute arbitrary shell commands on the victim's machine, read and write arbitrary files without restriction, and update the malicious daemon code at will. This compromises the confidentiality, integrity, and availability of the affected system, allowing full remote control and persistent compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should uninstall the @agenthub-ai/agent package versions 0.5.1 and 0.9.2 and avoid installing or running this package. Monitor for any updates or advisories from the package maintainers or npm regarding remediation.
Malicious code in @agenthub-ai/agent (npm)
Description
The @agenthub-ai/agent npm package versions 0.5.1 and 0.9.2 contain malicious code that runs a daemon connecting to a hardcoded WebSocket server. This server can send commands that the daemon executes without local approval, enabling full remote code execution, arbitrary file read/write, and persistent code updates on the host machine.
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 @agenthub-ai/agent package runs a daemon that opens a WebSocket connection to wss://agenthub-agent.fyenet.com. The daemon treats incoming messages as control commands executed on the host. It forwards MessageSend actions as user prompts to a Claude Code SDK session with 'bypassPermissions', allowing remote control of Bash and Edit tools without user approval, resulting in full remote code execution. The daemon also exposes FileTree, FileRead, FileWrite, and FileSearch actions without path restrictions, enabling enumeration of drives, arbitrary file reads (up to 20MB), and arbitrary file writes. An AgentUpdate action allows spawning a detached process that updates the package from the npm registry, enabling persistent code replacement controlled by the remote server or publishing account. This results in arbitrary shell execution, filesystem manipulation, and persistent malicious code on the installer's machine.
Potential Impact
An attacker controlling the remote WebSocket server can execute arbitrary shell commands on the victim's machine, read and write arbitrary files without restriction, and update the malicious daemon code at will. This compromises the confidentiality, integrity, and availability of the affected system, allowing full remote control and persistent compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should uninstall the @agenthub-ai/agent package versions 0.5.1 and 0.9.2 and avoid installing or running this package. Monitor for any updates or advisories from the package maintainers or npm regarding remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12312
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735742bf8831d5391590f1
Added to database: 08/05/2026, 15:31:14 UTC
Last enriched: 08/05/2026, 17:08:52 UTC
Last updated: 08/05/2026, 17:08:52 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.
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.