Detectionmediumtest

Cloudflared Tunnel Execution

Detects execution of the "cloudflared" tool to connect back to a tunnel. This was seen used by threat actors to maintain persistence and remote access to compromised networks.

Open in Detection LabConvert ruleBuild Package
Janantha Marasinghe, Nasreddine BencherchaliCreated 2023-05-17Updated 2023-12-209a019ffc-3580-4c9d-8d87-079f7e8d3fd4windows
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 '
            - ' run '
        CommandLine|contains:
            - '-config '
            - '-credentials-contents '
            - '-credentials-file '
            - '-token '
    condition: selection
False Positives

Legitimate usage of Cloudflared tunnel.

Rule Metadata
Rule ID
9a019ffc-3580-4c9d-8d87-079f7e8d3fd4
Status
test
Level
medium
Type
Detection
Created
2023-05-17
Modified
2023-12-20
Path
rules/windows/process_creation/proc_creation_win_cloudflared_tunnel_run.yml
Raw Tags
attack.command-and-controlattack.t1102attack.t1090attack.t1572
View on GitHub