Command and Control (TA0011)(external, opens in a new tab or window)
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).