{"id":"7050bba1-1aed-454e-8f73-3f46f09ce56a","title":"Cloudflared Tunnel Connections Cleanup","description":"Detects execution of the \"cloudflared\" tool with the tunnel \"cleanup\" flag in order to cleanup tunnel connections.","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2023-05-17","modified":"2023-12-21","tags":["attack.command-and-control","attack.t1102","attack.t1090","attack.t1572"],"technique_ids":["T1090","T1102","T1572"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate usage of Cloudflared."],"references":["https://github.com/cloudflare/cloudflared","https://developers.cloudflare.com/cloudflare-one/connections/connect-apps"],"source_path":"rules/windows/process_creation/proc_creation_win_cloudflared_tunnel_cleanup.yml","source_sha256":"f4d04862beb209e1406e71e3b738bdb049a8933d3f5e2f892e9626e0d5e44174","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_cloudflared_tunnel_cleanup.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Cloudflared Tunnel Connections Cleanup\nid: 7050bba1-1aed-454e-8f73-3f46f09ce56a\nstatus: test\ndescription: Detects execution of the \"cloudflared\" tool with the tunnel \"cleanup\" flag in order to cleanup tunnel connections.\nreferences:\n    - https://github.com/cloudflare/cloudflared\n    - https://developers.cloudflare.com/cloudflare-one/connections/connect-apps\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2023-05-17\nmodified: 2023-12-21\ntags:\n    - attack.command-and-control\n    - attack.t1102\n    - attack.t1090\n    - attack.t1572\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection:\n        CommandLine|contains|all:\n            - ' tunnel '\n            - 'cleanup '\n        CommandLine|contains:\n            - '-config '\n            - '-connector-id '\n    condition: selection\nfalsepositives:\n    - Legitimate usage of Cloudflared.\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1090","id":"T1090","name":"Proxy","page":"techniques/enterprise/T1090/"},{"key":"enterprise/T1102","id":"T1102","name":"Web Service","page":"techniques/enterprise/T1102/"},{"key":"enterprise/T1572","id":"T1572","name":"Protocol Tunneling","page":"techniques/enterprise/T1572/"}],"data_path":"data/detection-rules/7050bba1-1aed-454e-8f73-3f46f09ce56a.json","kind":"sigma"}
