cscli scenarios install sigmahq/proc_creation_win_reg_rdp_keys_tamper1type: trigger2name: sigmahq/proc_creation_win_reg_rdp_keys_tamper3description: |4 Detects the execution of "reg.exe" for enabling/disabling the RDP service on the host by tampering with the 'CurrentControlSet\Control\Terminal Server' values5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.Image endsWith '\\reg.exe' || evt.Parsed.OriginalFileName == 'reg.exe') && evt.Parsed.CommandLine contains ' add ' && evt.Parsed.CommandLine contains '\\CurrentControlSet\\Control\\Terminal Server' && evt.Parsed.CommandLine contains 'REG_DWORD' && evt.Parsed.CommandLine contains ' /f' && (evt.Parsed.CommandLine contains 'Licensing Core' && evt.Parsed.CommandLine contains 'EnableConcurrentSessions' || evt.Parsed.CommandLine contains 'WinStations\\RDP-Tcp' || evt.Parsed.CommandLine contains 'MaxInstanceCount' || evt.Parsed.CommandLine contains 'fEnableWinStation' || evt.Parsed.CommandLine contains 'TSUserEnabled' || evt.Parsed.CommandLine contains 'TSEnabled' || evt.Parsed.CommandLine contains 'TSAppCompat' || evt.Parsed.CommandLine contains 'IdleWinStationPoolCount' || evt.Parsed.CommandLine contains 'TSAdvertise' || evt.Parsed.CommandLine contains 'AllowTSConnections' || evt.Parsed.CommandLine contains 'fSingleSessionPerUser' || evt.Parsed.CommandLine contains 'fDenyTSConnections'))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t1021.00115 - attack.t11121617 label: "Potential Tampering With RDP Related Registry Keys Via Reg.EXE"18 behavior : "windows:audit"19 remediation: false2021scope:22 type: ParentProcessId23 expression: evt.Parsed.ParentProcessId2425