{"id":"1cb0c6ce-3d00-44fc-ab9c-6d6d577bf20b","title":"DNS Query To Devtunnels Domain","description":"Detects DNS query requests to Devtunnels domains. Attackers can abuse that feature to establish a reverse shell or persistence on a machine.\n","author":"citron_ninja","status":"test","level":"medium","date":"2023-10-25","modified":"2023-11-20","tags":["attack.command-and-control","attack.t1071.001","attack.t1572"],"technique_ids":["T1071.001","T1572"],"logsource":{"category":"dns_query","product":"windows"},"falsepositives":["Legitimate use of Devtunnels will also trigger this."],"references":["https://blueteamops.medium.com/detecting-dev-tunnels-16f0994dc3e2","https://learn.microsoft.com/en-us/azure/developer/dev-tunnels/security","https://cydefops.com/devtunnels-unleashed"],"source_path":"rules/windows/dns_query/dns_query_win_devtunnels_communication.yml","source_sha256":"9310b4ba27cf79154f552099612db091d68ca08c65ae689d92ef22add279fed2","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/dns_query/dns_query_win_devtunnels_communication.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: DNS Query To Devtunnels Domain\nid: 1cb0c6ce-3d00-44fc-ab9c-6d6d577bf20b\nrelated:\n    - id: 9501f8e6-8e3d-48fc-a8a6-1089dd5d7ef4 # Net Connection DevTunnels\n      type: similar\n    - id: 4b657234-038e-4ad5-997c-4be42340bce4 # Net Connection VsCode\n      type: similar\n    - id: b3e6418f-7c7a-4fad-993a-93b65027a9f1 # DNS VsCode\n      type: similar\nstatus: test\ndescription: |\n    Detects DNS query requests to Devtunnels domains. Attackers can abuse that feature to establish a reverse shell or persistence on a machine.\nreferences:\n    - https://blueteamops.medium.com/detecting-dev-tunnels-16f0994dc3e2\n    - https://learn.microsoft.com/en-us/azure/developer/dev-tunnels/security\n    - https://cydefops.com/devtunnels-unleashed\nauthor: citron_ninja\ndate: 2023-10-25\nmodified: 2023-11-20\ntags:\n    - attack.command-and-control\n    - attack.t1071.001\n    - attack.t1572\nlogsource:\n    category: dns_query\n    product: windows\ndetection:\n    selection:\n        QueryName|endswith: '.devtunnels.ms'\n    condition: selection\nfalsepositives:\n    - Legitimate use of Devtunnels will also trigger this.\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1071.001","id":"T1071.001","name":"Web Protocols","page":"techniques/enterprise/T1071.001/"},{"key":"enterprise/T1572","id":"T1572","name":"Protocol Tunneling","page":"techniques/enterprise/T1572/"}],"data_path":"data/detection-rules/1cb0c6ce-3d00-44fc-ab9c-6d6d577bf20b.json","kind":"sigma"}
