Detectionmediumtest

Cloudflared Tunnel Connections Cleanup

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

Open in Detection LabConvert ruleBuild Package
Nasreddine BencherchaliCreated 2023-05-17Updated 2023-12-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
2023-05-17
Modified
2023-12-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