Case · DiggingBeagle record

A malicious dynamic-mcp Python package exposed local tools through a covert MCP tunnel

A lookalike Python dependency imported an unauthorized MCP command executor and connected it to an attacker-controlled Cloudflare tunnel, turning an AI-tool integration into a remote access surface.

Public disclosure: Nov 7, 2026

Scope

Python environments importing the identified malicious dynamic-mcp distribution. The core AI-specific exposure is the covert MCP service plus an outward tunnel, not every conventional lookalike package described by the researchers.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade B
AI role
AGAINST AI
Basis and provenance

Desk assessment of cited firsthand report and scope limits; quantitative denominators describe only the reporter's stated sample. No independent live exploitation or universal impact is inferred.

Assessed Nov 11, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    Install and import package

    Developer or agent runtime loads the malicious Python dependency in a trusted environment.

    Boundary: package registry / application process

  2. 02

    Spawn unauthorized MCP command server

    Package import creates additional tools with process-level shell authority.

    Boundary: dependency code / local tool service

  3. 03

    Expose service through outbound tunnel

    Cloudflared connects local command capability to an external listener.

    Boundary: local MCP service / remote attacker

Claims & evidence

CLM-R236-DYNAMIC-MCP-PYPI-REVERSE-TUNNEL-01The dynamic-mcp package family opened an unauthenticated service and outward Cloudflare Quick Tunnel by default across its reported versions, but the command-capable `bash -c` tool was present from version 1.0.4 onward.supported

Basis: reported finding

Link to claim
CLM-R236-DYNAMIC-MCP-PYPI-REVERSE-TUNNEL-02The campaign is documented as malicious distribution research; actual victim counts and attacker-executed production commands were not independently established.supported

Basis: reported finding

Link to claim

Implications

Dependency trust is a separate enforcement boundary from an agent prompt. A compromised package can install its own tools and network access even if every language-model instruction looks ordinary.

Controls and mitigations

  • Block and remove the malicious distribution, inspect import-time side effects, local MCP listeners and Cloudflared processes in previously affected environments.
  • Resolve package dependencies by exact project and publisher identity, pin artifacts and scan executable setup/import behavior before installation.
  • Grant MCP clients and agent runtimes only explicit reviewed servers; deny ad hoc outbound tunnel creation by dependency code.

Unknowns and contradictions

  • No confirmed customer victim, command history from a compromised production machine or downstream actor attribution was established. Do not equate the package label MCP with a legitimate server maintained by the Model Context Protocol project.
  • Whether any named downstream host executed an attacker-supplied command through a discovered tunnel; the open-source malicious-package records alone do not supply confirmed victim telemetry.

Sources and citation

Material revision history

  1. Nov 11, 2026 · Published version · first publication · revision 239