title: RDP over Reverse SSH Tunnel WFP author: Samir Bousseaden date: 2019/02/16 description: Detects svchost hosting RDP termsvcs communicating with the loopback address detection: SELECTION_1: EventID: 5156 SELECTION_2: SourcePort: 3389 SELECTION_3: DestAddress: 127.* SELECTION_4: DestAddress: ::1 SELECTION_5: DestPort: 3389 SELECTION_6: SourceAddress: 127.* SELECTION_7: SourceAddress: ::1 condition: (SELECTION_1 and ((SELECTION_2 and (SELECTION_3 or SELECTION_4)) or (SELECTION_5 and (SELECTION_6 or SELECTION_7)))) falsepositives: - unknown id: 5bed80b6-b3e8-428e-a3ae-d3c757589e41 level: high logsource: product: windows service: security modified: 2021/07/06 references: - https://twitter.com/SBousseaden/status/1096148422984384514 - https://github.com/sbousseaden/EVTX-ATTACK-SAMPLES/blob/master/Command%20and%20Control/DE_RDP_Tunnel_5156.evtx status: experimental tags: - attack.defense_evasion - attack.command_and_control - attack.lateral_movement - attack.t1076 - attack.t1090 - attack.t1090.001 - attack.t1090.002 - attack.t1021.001 - car.2013-07-002 yml_filename: win_rdp_reverse_tunnel.yml yml_path: /Users/user/Documents/YamatoSecurity/sigma/rules/windows/builtin