# OffSet7: RDP Sensitive Settings Changed

> Design for the QRadar Rule Wizard. Not an importable rule and not tested in QRadar.

- Rule type: Event rule (Local), create disabled
- Log source types: Microsoft Windows Security Event Log DSM: Sysmon EID 13 (registry value set)

## Building blocks

### BB:OffSet7:RDP Sensitive Settings Changed:selection_ts_shadow (match)
All test lines must match (AND).
- when **Process Name / Target Process Name / Object Name** contains: `\Control\Terminal Server\`, `\Windows NT\Terminal Services\`
- when **Process Name / Target Process Name / Object Name** ends with: `\Shadow`
- when **custom property for Details** is equal to (case-insensitive): `DWORD (0x00000001)`, `DWORD (0x00000002)`, `DWORD (0x00000003)`, `DWORD (0x00000004)` — No QRadar property mapped for "Details": create a custom event property (regex or JSON) on the DSM first.

### BB:OffSet7:RDP Sensitive Settings Changed:selection_ts_key (match)
All test lines must match (AND).
- when **Process Name / Target Process Name / Object Name** contains: `\Control\Terminal Server\`, `\Windows NT\Terminal Services\`
- when **Process Name / Target Process Name / Object Name** ends with: `\DisableRemoteDesktopAntiAlias`, `\DisableSecuritySettings`, `\fAllowUnsolicited`, `\fAllowUnsolicitedFullControl`
- when **custom property for Details** is equal to (case-insensitive): `DWORD (0x00000001)` — No QRadar property mapped for "Details": create a custom event property (regex or JSON) on the DSM first.

### BB:OffSet7:RDP Sensitive Settings Changed:selection_ts_tamper_only (match)
Any of the groups matches (OR): build one BB per group and a parent BB "when an event matches any of" them.
- when **Process Name / Target Process Name / Object Name** contains: `\Control\Terminal Server\InitialProgram`, `\Control\Terminal Server\WinStations\RDP-Tcp\InitialProgram`, `\Terminal Server\WinStations\RDP-Tcp\SecurityLayer`, `\Windows NT\Terminal Services\InitialProgram`
- when **Process Name / Target Process Name / Object Name** ends with: `\services\TermService\Parameters\ServiceDll`

### BB:OffSet7:RDP Sensitive Settings Changed:filter_main_securitylayer_tls (exclusion)
All test lines must match (AND).
- when **Process Name / Target Process Name / Object Name** ends with: `\SecurityLayer`
- when **custom property for Details** is equal to (case-insensitive): `DWORD (0x00000002)` — No QRadar property mapped for "Details": create a custom event property (regex or JSON) on the DSM first.

### BB:OffSet7:RDP Sensitive Settings Changed:filter_main_termsrv_dll (exclusion)
All test lines must match (AND).
- when **Process Name / Target Process Name / Object Name** ends with: `\services\TermService\Parameters\ServiceDll`
- when **custom property for Details** is equal to (case-insensitive): `%%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` — No QRadar property mapped for "Details": create a custom event property (regex or JSON) on the DSM first.

### BB:OffSet7:RDP Sensitive Settings Changed:filter_main_initialprog_empty (exclusion)
All test lines must match (AND).
- when **Process Name / Target Process Name / Object Name** contains: `\Control\Terminal Server\InitialProgram`, `\Control\Terminal Server\WinStations\RDP-Tcp\InitialProgram`, `\Windows NT\Terminal Services\InitialProgram`
- when **custom property for Details** is equal to (case-insensitive): `(Empty)` — No QRadar property mapped for "Details": create a custom event property (regex or JSON) on the DSM first.

### BB:OffSet7:RDP Sensitive Settings Changed:filter_optional_container_worker (exclusion)
All test lines must match (AND).
- when **Process Path / Process Name** starts with: `C:\Windows\System32\`, `C:\Windows\SysWOW64\`, `C:\Windows\WinSxS\`
- when **Process Path / Process Name** ends with: `\containerworker.exe`
- when **Process Name / Target Process Name / Object Name** contains: `\Windows\Containers\Layers\`

## Main rule — option A (building blocks)

1. when the event(s) were detected by one or more of these log source types: `Microsoft Windows Security Event Log DSM: Sysmon EID 13 (registry value set)`
2. when an event matches the condition built from these building blocks: `(ANY of [BB:OffSet7:RDP Sensitive Settings Changed:selection_ts_shadow, BB:OffSet7:RDP Sensitive Settings Changed:selection_ts_key, BB:OffSet7:RDP Sensitive Settings Changed:selection_ts_tamper_only]) AND NOT (ANY of [BB:OffSet7:RDP Sensitive Settings Changed:filter_main_securitylayer_tls, BB:OffSet7:RDP Sensitive Settings Changed:filter_main_termsrv_dll, BB:OffSet7:RDP Sensitive Settings Changed:filter_main_initialprog_empty]) AND NOT (ANY of [BB:OffSet7:RDP Sensitive Settings Changed:filter_optional_container_worker])`

## Main rule — option B (AQL filter test)

Not available: the AQL conversion failed for this rule.

## Rule response

- Severity 7, credibility 6, relevance 7
- Ensure the detected event is part of an offense; index offense on Log Source (host) and annotate with the rule title and OffSet7 rule id
- Respond no more than once per 30 minutes per Log Source (tune per environment)

## Limitations

- AQL conversion failed (field 'Details' is not supported); only the building-block design is available.
- QRadar AQL LIKE / CRE string tests are case-sensitive unless the property is lower-cased; the AQL option uses LOWER() where the backend applied it.

Source rule: RDP Sensitive Settings Changed (3f6b7b62-61aa-45db-96bd-9c31b36b653c). Author: Samir Bousseaden, David ANDRE, Roberto Rodriguez @Cyb3rWard0g, Nasreddine Bencherchali. Licence: DRL-1.1.
