Malicious code in @whalent/agent (npm)
The @whalent/agent npm package installs a CLI daemon that establishes a persistent WebSocket connection to a remote Whalent Memory gateway. This daemon accepts remote commands, including the ability to upgrade or restart itself by installing arbitrary package versions as directed by the gateway operator. The package includes obfuscated JavaScript code enabling remote code execution and shell access on the host machine when the daemon is explicitly started by the user. The daemon does not activate on installation or import but only when run with a specific token. Multiple specific versions of the package are affected.
AI Analysis
Technical Summary
The @whalent/agent package contains a malicious CLI daemon that connects to a remote gateway over a secure WebSocket. The gateway can issue commands to the daemon, including upgrading the package version via npm install commands constructed dynamically, allowing arbitrary code execution as the user running the daemon. The package references local RDP/VNC ports and includes dependencies supporting terminal and remote session capabilities, indicating potential for remote shell access. The core code is heavily obfuscated, complicating analysis and detection. The daemon only activates when explicitly run with a token, not on installation or import, providing a stealthy persistence mechanism controlled remotely.
Potential Impact
An attacker controlling or compromising the Whalent Memory gateway can remotely execute arbitrary code on any host running the @whalent/agent daemon. This includes installing arbitrary package versions, restarting the daemon, and accessing local terminal sessions and remote desktop ports. The compromise can lead to full host control under the daemon's user context. The malicious functionality is dormant until the daemon is explicitly started, reducing accidental detection but enabling persistent remote control once active.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid running the @whalent/agent daemon, especially with tokens that activate its remote control features. Since the daemon only activates when explicitly run, do not execute the 'whalent --token ...' command or any related binaries from this package. Monitor for and remove any installations of the affected package versions. Check vendor advisories or npm security notices for updates or official guidance. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Malicious code in @whalent/agent (npm)
Description
The @whalent/agent npm package installs a CLI daemon that establishes a persistent WebSocket connection to a remote Whalent Memory gateway. This daemon accepts remote commands, including the ability to upgrade or restart itself by installing arbitrary package versions as directed by the gateway operator. The package includes obfuscated JavaScript code enabling remote code execution and shell access on the host machine when the daemon is explicitly started by the user. The daemon does not activate on installation or import but only when run with a specific token. 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 @whalent/agent package contains a malicious CLI daemon that connects to a remote gateway over a secure WebSocket. The gateway can issue commands to the daemon, including upgrading the package version via npm install commands constructed dynamically, allowing arbitrary code execution as the user running the daemon. The package references local RDP/VNC ports and includes dependencies supporting terminal and remote session capabilities, indicating potential for remote shell access. The core code is heavily obfuscated, complicating analysis and detection. The daemon only activates when explicitly run with a token, not on installation or import, providing a stealthy persistence mechanism controlled remotely.
Potential Impact
An attacker controlling or compromising the Whalent Memory gateway can remotely execute arbitrary code on any host running the @whalent/agent daemon. This includes installing arbitrary package versions, restarting the daemon, and accessing local terminal sessions and remote desktop ports. The compromise can lead to full host control under the daemon's user context. The malicious functionality is dormant until the daemon is explicitly started, reducing accidental detection but enabling persistent remote control once active.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid running the @whalent/agent daemon, especially with tokens that activate its remote control features. Since the daemon only activates when explicitly run, do not execute the 'whalent --token ...' command or any related binaries from this package. Monitor for and remove any installations of the affected package versions. Check vendor advisories or npm security notices for updates or official guidance. 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-10721
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a74cf94bf8831d5391af794
Added to database: 08/06/2026, 18:16:52 UTC
Last enriched: 08/06/2026, 18:46:03 UTC
Last updated: 08/07/2026, 00:38:41 UTC
Views: 5
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.