RDP Sensitive Settings Changed
Detects tampering of RDP Terminal Service/Server sensitive settings. Such as allowing unauthorized users access to a system via the 'fAllowUnsolicited' or enabling RDP via 'fDenyTSConnections', etc. Below is a list of registry keys/values that are monitored by this rule: - Shadow: Used to enable Remote Desktop shadowing, which allows an administrator to view or control a user's session. - DisableRemoteDesktopAntiAlias: Disables anti-aliasing for remote desktop sessions. - DisableSecuritySettings: Disables certain security settings for Remote Desktop connections. - fAllowUnsolicited: Allows unsolicited remote assistance offers. - fAllowUnsolicitedFullControl: Allows unsolicited remote assistance offers with full control. - InitialProgram: Specifies a program to run automatically when a user logs on to a remote computer. - ServiceDll: Used in RDP hijacking techniques to specify a custom DLL to be loaded by the Terminal Services service. - SecurityLayer: Specifies the security layer used for RDP connections.
Detection Logic
{
"registry_set": {
"EventID": 4657,
"Channel": "Security"
},
"selection_ts_shadow": {
"ObjectName
| contains": [
"\\Control\\Terminal Server\\",
"\\Windows NT\\Terminal Services\\"
],
"ObjectName
| endswith": "\\Shadow",
"NewValue": [
"DWORD (0x00000001)",
"DWORD (0x00000002)",
"DWORD (0x00000003)",
"DWORD (0x00000004)"
]
},
"selection_ts_key": {
"ObjectName
| contains": [
"\\Control\\Terminal Server\\",
"\\Windows NT\\Terminal Services\\"
],
"ObjectName
| endswith": [
"\\DisableRemoteDesktopAntiAlias",
"\\DisableSecuritySettings",
"\\fAllowUnsolicited",
"\\fAllowUnsolicitedFullControl"
],
"NewValue": "DWORD (0x00000001)"
},
"selection_ts_tamper_only": [
{
"ObjectName
| contains": [
"\\Control\\Terminal Server\\InitialProgram",
"\\Control\\Terminal Server\\WinStations\\RDP-Tcp\\InitialProgram",
"\\Terminal Server\\WinStations\\RDP-Tcp\\SecurityLayer",
"\\Windows NT\\Terminal Services\\InitialProgram"
]
},
{
"ObjectName
| endswith": "\\services\\TermService\\Parameters\\ServiceDll"
}
],
"filter_main_securitylayer_tls": {
"ObjectName
| endswith": "\\SecurityLayer",
"NewValue": "DWORD (0x00000002)"
},
"filter_main_termsrv_dll": {
"ObjectName
| endswith": "\\services\\TermService\\Parameters\\ServiceDll",
"NewValue": [
"%%SystemRoot%%\\System32\\termsrv.dll",
"%%SystemRoot%%\\SysWOW64\\termsrv.dll",
"%%windir%%\\System32\\termsrv.dll",
"%%windir%%\\SysWOW64\\termsrv.dll",
"%SystemRoot%\\System32\\termsrv.dll",
"%SystemRoot%\\SysWOW64\\termsrv.dll",
"%windir%\\System32\\termsrv.dll",
"%windir%\\SysWOW64\\termsrv.dll",
"C:\\Windows\\System32\\termsrv.dll",
"C:\\Windows\\SysWOW64\\termsrv.dll"
]
},
"filter_main_initialprog_empty": {
"ObjectName
| contains": [
"\\Control\\Terminal Server\\InitialProgram",
"\\Control\\Terminal Server\\WinStations\\RDP-Tcp\\InitialProgram",
"\\Windows NT\\Terminal Services\\InitialProgram"
],
"NewValue": [
"(Empty)",
""
]
},
"filter_optional_container_worker": {
"ProcessName
| startswith": [
"C:\\Windows\\System32\\",
"C:\\Windows\\SysWOW64\\",
"C:\\Windows\\WinSxS\\"
],
"ProcessName
| endswith": "\\containerworker.exe",
"ObjectName
| contains": "\\Windows\\Containers\\Layers\\"
},
"condition": "registry_set and (1 of selection_ts_* and not 1 of filter_main_* and not 1 of filter_optional_*)"
} False Positives
- ⚠ Some of the keys mentioned here could be modified by an administrator while setting group policy (it should be investigated either way)
Field Validations
Loading…
Comments (0)
Loading comments...