Skip to content

Commit 2266bd9

Browse files
committed
rules/windows: add Dev Tunnel hosting or creation process_creation detection
1 parent bbcae24 commit 2266bd9

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
title: Dev Tunnel Hosting Or Creation Execution
2+
id: f2a7c4d9-3b18-4e6a-9c52-8d1e0a7b6f34
3+
related:
4+
- id: 1cb0c6ce-3d00-44fc-ab9c-6d6d577bf20b # DNS Query To Devtunnels Domain
5+
type: similar
6+
- id: 9501f8e6-8e3d-48fc-a8a6-1089dd5d7ef4 # Net Connection DevTunnels
7+
type: similar
8+
status: experimental
9+
description: |
10+
Detects execution of the Microsoft "devtunnel" CLI to create or host a Dev Tunnel,
11+
which exposes a local port or endpoint to the internet through Microsoft infrastructure
12+
(*.devtunnels.ms). Adversaries abuse Dev Tunnels for command-and-control, reverse shells
13+
and persistent remote access that blends in with trusted Microsoft domains. This rule
14+
complements existing network and DNS detections by catching the on-host tunnel setup.
15+
references:
16+
- https://blueteamops.medium.com/detecting-dev-tunnels-16f0994dc3e2
17+
- https://learn.microsoft.com/en-us/azure/developer/dev-tunnels/cli-commands
18+
- https://cydefops.com/devtunnels-unleashed
19+
author: Cyber Portfolio
20+
date: 2026-06-27
21+
tags:
22+
- attack.command-and-control
23+
- attack.t1572
24+
logsource:
25+
category: process_creation
26+
product: windows
27+
detection:
28+
selection_img:
29+
Image|endswith: '\devtunnel.exe'
30+
selection_cli:
31+
CommandLine|contains:
32+
- ' host'
33+
- ' create'
34+
- ' port forward'
35+
condition: all of selection_*
36+
falsepositives:
37+
- Legitimate use of Microsoft Dev Tunnels by developers exposing local services for testing.
38+
level: medium

0 commit comments

Comments
 (0)