[default] dispatch.earliest_time = -30d dispatch.latest_time = now [Potential Tampering With RDP Related Registry Keys Via Reg.EXE] description = Detects the execution of "reg.exe" for enabling/disabling the RDP service on the host by tampering with the 'CurrentControlSet\Control\Terminal Server' values search = (Image="*\\reg.exe" OR OriginalFileName="reg.exe") CommandLine="* add *" CommandLine="*\\CurrentControlSet\\Control\\Terminal Server*" CommandLine="*REG_DWORD*" CommandLine="* /f*" ((CommandLine="*Licensing Core*" CommandLine="*EnableConcurrentSessions*") OR CommandLine IN ("*AllowTSConnections*", "*fDenyTSConnections*", "*fEnableWinStation*", "*fSingleSessionPerUser*", "*IdleWinStationPoolCount*", "*MaxInstanceCount*", "*SecurityLayer*", "*TSAdvertise*", "*TSAppCompat*", "*TSEnabled*", "*TSUserEnabled*", "*WinStations\\RDP-Tcp*")) NOT (CommandLine="*SecurityLayer*" CommandLine="*02*")