Attempt to Establish Microsoft Dev Tunnel

Last updated 9 days ago on 2026-11-23
Created 9 days ago on 2026-11-23

About

Detects the Microsoft devtunnel command line client started with the host or connect subcommand, which exposes a local port through, or connects to, a tunnel relayed by Microsoft Dev Tunnels infrastructure. The client is signed by Microsoft and its traffic goes to trusted Microsoft domains, which makes it a Living-Off-The-Land vector for command and control and for exposing internal services.
Tags
Domain: EndpointOS: WindowsOS: LinuxOS: macOSUse Case: Threat DetectionTactic: Command and ControlData Source: Elastic DefendRule Type: Event Correlation (EQL)Platform: WindowsPlatform: LinuxPlatform: macOSLanguage: eql
Severity
medium
Risk Score
47
MITRE ATT&CK™

Command and Control (TA0011)(external, opens in a new tab or window)

False Positive Examples
Developers use Microsoft Dev Tunnels to share a local web application or API during development and testing. Verify the user, the parent process and the exposed port before adding exceptions.
License
Elastic License v2(external, opens in a new tab or window)

Definition

Rule Type
Event Correlation Rule
Integration Pack
Prebuilt Security Detection Rules
Index Patterns
logs-endpoint.events.process-*
Related Integrations

endpoint(external, opens in a new tab or window)

Query
text code block:
process where host.os.type in ("windows", "linux", "macos") and event.type == "start" and event.action in ("exec", "start") and (process.name : ("devtunnel", "devtunnel.exe") or ?process.pe.original_file_name : "devtunnel.exe") and process.args : ("host", "connect") and not process.args : ("create", "delete", "list", "show", "update", "token", "access", "port", "user")

Install detection rules in Elastic Security

Detect Attempt to Establish Microsoft Dev Tunnel in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).