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 agenttunnels (npm)

0
Critical
Published: 08/06/2026 (08/06/2026, 13:04:30 UTC)
Source: GCVE Database
Product: agenttunnels

Description

The agenttunnels npm package contains malicious code that allows remote command execution and file writes on customer hosts. The package's MCP bridge exposes a tunnel_run_command tool that executes shell commands fetched from a remote session worker, controlled by a hardcoded endpoint. This remote endpoint can disable human approval and push arbitrary commands and file patches to connected hosts. The default session backend is controlled by the package maintainer's personal subdomain, giving them full control over connected systems. Multiple specific versions of the package are affected.

Affected software

npmghsa
agenttunnels
Affected versions
=0.1.11=0.1.9=0.1.6=0.1.5=0.1.12

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:41:37 UTC

Technical Analysis

The agenttunnels npm package versions 0.1.5, 0.1.6, 0.1.9, 0.1.11, and 0.1.12 include a malicious MCP bridge component that exposes a tunnel_run_command tool. This tool executes shell commands received from a remote session worker via child_process.spawn with shell:true, inheriting the caller's working directory and environment. Execution depends on a proposal status or a server-side flag (require_approval) controlled by the remote endpoint. The remote endpoint is hardcoded to a personal *.workers.dev subdomain controlled by the maintainer, allowing them to disable approval and execute arbitrary commands and file writes on all connected customer hosts. This design effectively grants the maintainer remote code execution capabilities on any system using the affected package versions.

Potential Impact

An attacker controlling the remote session worker endpoint can execute arbitrary shell commands and write files on any host running the affected versions of the agenttunnels package. This leads to full remote code execution under the context of the running process, potentially compromising the entire host system. The threat actor can bypass human approval controls by toggling the require_approval flag, enabling autonomous and stealthy attacks.

Mitigation Recommendations

No official patch or remediation is currently documented. Operators should immediately discontinue use of the affected agenttunnels package versions (0.1.5, 0.1.6, 0.1.9, 0.1.11, 0.1.12) and avoid connecting to the default hardcoded session backend. Until an official fix is released, users should consider removing the package or isolating its execution environment to prevent remote code execution. Monitor vendor advisories for updates and patches.

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-13400
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a74cf8ebf8831d5391aea97

Added to database: 08/06/2026, 18:16:46 UTC

Last enriched: 08/06/2026, 18:41:37 UTC

Last updated: 08/06/2026, 21:21:35 UTC

Views: 3

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