Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in @whalent/agent (npm)

0
Critical
Published: 07/16/2026 (07/16/2026, 18:46:02 UTC)
Source: GCVE Database
Product: @whalent/agent

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

npmghsa
@whalent/agent
Affected versions
=0.3.231=0.3.283=0.3.295=0.3.282=0.3.280=0.3.296=0.3.277=0.3.297=0.3.272=0.3.285=0.3.298=0.3.291=0.3.279=0.3.281=0.3.253=0.3.244=0.3.269=0.3.264=0.3.247=0.3.251=0.3.240=0.3.239=0.3.263=0.3.243=0.3.233=0.3.252=0.3.250=0.3.238=0.3.255=0.3.235=0.3.248=0.3.268=0.3.261=0.3.230=0.3.241=0.3.234=0.3.249=0.3.232=0.3.254=0.3.265=0.3.302

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

AILast updated: 08/06/2026, 18:46:03 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses