Detectionmediumtest

Cloudflared Tunnel Connections Cleanup

Detects execution of the "cloudflared" tool with the tunnel "cleanup" flag in order to cleanup tunnel connections.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Nasreddine Bencherchali (Nextron Systems)Created Wed May 17Updated Thu Dec 217050bba1-1aed-454e-8f73-3f46f09ce56awindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic1 selector
detection:
    selection:
        CommandLine|contains|all:
            - ' tunnel '
            - 'cleanup '
        CommandLine|contains:
            - '-config '
            - '-connector-id '
    condition: selection
False Positives

Legitimate usage of Cloudflared.

Rule Metadata
Rule ID
7050bba1-1aed-454e-8f73-3f46f09ce56a
Status
test
Level
medium
Type
Detection
Created
Wed May 17
Modified
Thu Dec 21
Path
rules/windows/process_creation/proc_creation_win_cloudflared_tunnel_cleanup.yml
Raw Tags
attack.command-and-controlattack.t1102attack.t1090attack.t1572
View on GitHub