Techniques
Sample rules
Attempt to Establish Microsoft Dev Tunnel
- source: elastic
- technicques:
- T1102
- T1572
Description
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.
Detection logic
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")