LoFP LoFP / 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.

Techniques

Sample rules

Attempt to Establish Microsoft Dev Tunnel

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")