
Summary
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 targets trusted Microsoft domains (devtunnels.ms, global.rel.tunnels.api.visualstudio.com), enabling a Living-Off-The-Land style vector for command and control or exposure of internal services. The rule flags Windows, Linux, and macOS endpoints where a process named devtunnel or devtunnel.exe starts and uses arguments involving host or connect, while excluding common legitimate actions (create, delete, list, show, update, token, access, port). This supports rapid detection of unauthorized tunnel establishment, prompting containment and investigation of potential C2 activity or exposure of internal resources. It maps to MITRE ATT&CK techniques Web Service (T1102) with Bidirectional Communication (T1102.002) and Protocol Tunneling (T1572).
Categories
- Endpoint
Data Sources
- Process
- Command
ATT&CK Techniques
- T1102
- T1102.002
- T1572
Created: 2026-11-23