Cloudflared Tunnel Execution

Last updated on:

About the rule

Rule Type

Standard

Rule Description

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.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND (COMMANDLINE contains " tunnel " AND COMMANDLINE contains " run ") AND COMMANDLINE contains "-config ,-credentials-contents ,-credentials-file ,-token " select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Janantha Marasinghe, Nasreddine Bencherchali (Nextron Systems)