((process.executable:*\\reg.exe OR process.pe.original_file_name:reg.exe) AND (process.command_line:*\ add\ * AND process.command_line:*\\CurrentControlSet\\Control\\Terminal\ Server* AND process.command_line:*REG_DWORD* AND process.command_line:*\ \/f*)) AND ((process.command_line:*Licensing\ Core* AND process.command_line:*EnableConcurrentSessions*) OR (process.command_line:(*AllowTSConnections* OR *fDenyTSConnections* OR *fEnableWinStation* OR *fSingleSessionPerUser* OR *IdleWinStationPoolCount* OR *MaxInstanceCount* OR *SecurityLayer* OR *TSAdvertise* OR *TSAppCompat* OR *TSEnabled* OR *TSUserEnabled* OR *WinStations\\RDP\-Tcp*))) AND (NOT (process.command_line:*SecurityLayer* AND process.command_line:*02*))