Suspicious Cloudflared Tunnel Connections Cleanup (via process_creation)
This rule detects execution of the "cloudflared" tool with the tunnel "cleanup" flag to cleanup tunnel connections.
SigmamediumWindowsv1
sigma
suspicious-cloudflared-tunnel-connections-cleanup-via-process-creation
title: Suspicious Cloudflared Tunnel Connections Cleanup (via process_creation)
id: 671a3f6e-3d35-52fd-9186-858e035be915
status: stable
description: This rule detects execution of the "cloudflared" tool with the tunnel "cleanup" flag to cleanup tunnel connections.
references:
- https://attack.mitre.org/techniques/T1572/
- https://attack.mitre.org/techniques/T1090/
- https://attack.mitre.org/techniques/T1102/
- https://github.com/cloudflare/cloudflared
- https://developers.cloudflare.com/cloudflare-one/connections/connect-apps
author: Huntrule Team
date: 2026-04-30
tags:
- attack.command-and-control
- attack.t1102
- attack.t1090
- attack.t1572
logsource:
category: process_creation
product: windows
detection:
selection:
CommandLine|contains|all:
- ' tunnel '
- 'cleanup '
CommandLine|contains:
- '-config '
- '-connector-id '
condition: selection
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.