{"id":"01aeb693-138d-49d2-9403-c4f52d7d3d62","title":"RDP Connection Allowed Via Netsh.EXE","description":"Detects usage of the netsh command to open and allow connections to port 3389 (RDP). As seen used by Sarwent Malware","author":"Sander Wiebing","status":"test","level":"high","date":"2020-05-23","modified":"2023-12-11","tags":["attack.defense-impairment","attack.t1686.003"],"technique_ids":["T1686.003"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate administration activity"],"references":["https://labs.sentinelone.com/sarwent-malware-updates-command-detonation/"],"source_path":"rules/windows/process_creation/proc_creation_win_netsh_fw_allow_rdp.yml","source_sha256":"6be0f52f73270fb5a005ce7e4abe4154659a66625d86ccfa02a8652978a18288","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_netsh_fw_allow_rdp.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: RDP Connection Allowed Via Netsh.EXE\nid: 01aeb693-138d-49d2-9403-c4f52d7d3d62\nstatus: test\ndescription: Detects usage of the netsh command to open and allow connections to port 3389 (RDP). As seen used by Sarwent Malware\nreferences:\n    - https://labs.sentinelone.com/sarwent-malware-updates-command-detonation/\nauthor: Sander Wiebing\ndate: 2020-05-23\nmodified: 2023-12-11\ntags:\n    - attack.defense-impairment\n    - attack.t1686.003\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\netsh.exe'\n        - OriginalFileName: 'netsh.exe'\n    selection_cli:\n        # Example:\n        #   Old: netsh firewall add portopening TCP 3389 \"Open Port 3389\"\n        #   New: netsh advfirewall firewall add rule name= \"Open Port 3389\" dir=in action=allow protocol=TCP localport=3389\n        CommandLine|contains|all:\n            - 'firewall '\n            - 'add '\n            - 'tcp '\n            - '3389'\n        CommandLine|contains:\n            - 'portopening'\n            - 'allow'\n    condition: all of selection_*\nfalsepositives:\n    - Legitimate administration activity\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1686.003","id":"T1686.003","name":"Windows Host Firewall","page":"techniques/enterprise/T1686.003/"}],"data_path":"data/detection-rules/01aeb693-138d-49d2-9403-c4f52d7d3d62.json","kind":"sigma"}
