Skip to main content
MalwarePublished

agenthub-ai (npm) · Malicious Code

Affects agenthub-aiSource GCVE Database

0

Malicious package : remove agenthub-ai and rotate any secrets on hosts that installed it.

Data as of 8 Aug 2026, 15:39 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13615

What to do

Remove agenthub-ai from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmagenthub-aiAffected
  • 0.20.1 – 0.20.4
4 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The agenthub-ai npm package runs a persistent daemon that connects to a hardcoded WebSocket server controlled by the package maintainer or potentially an attacker who compromises that server. This daemon can execute server-supplied commands with broad file system access and spawn subprocesses, enabling full host control. It also supports a remote update mechanism that can force the installation of new code versions. Additionally, the package redirects native bindings to a placeholder package, which could be replaced later with malicious payloads. The daemon activates only when the package's binary is run, not during installation or import.

References

Community reviews

Loading reviews…