# OffSet7: External Remote RDP Logon from Public IP

> 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 (Security channel)

## Building blocks

### BB:OffSet7:External Remote RDP Logon from Public IP:selection (match)
All test lines must match (AND).
- when **Event ID** is equal to (case-insensitive): `4624`
- when **Logon Type** is equal to (case-insensitive): `10`

### BB:OffSet7:External Remote RDP Logon from Public IP:filter_main_local_ranges (exclusion)
All test lines must match (AND).
- when **custom property for IpAddress** is in the network (CIDR): `::1/128`, `10.0.0.0/8`, `127.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`, `169.254.0.0/16`, `fc00::/7`, `fe80::/10` — No QRadar property mapped for "IpAddress": create a custom event property (regex or JSON) on the DSM first.

### BB:OffSet7:External Remote RDP Logon from Public IP:filter_main_null (exclusion)
All test lines must match (AND).
- when **custom property for IpAddress** is equal to (case-insensitive):  — No QRadar property mapped for "IpAddress": create a custom event property (regex or JSON) on the DSM first.

### BB:OffSet7:External Remote RDP Logon from Public IP:filter_main_empty (exclusion)
All test lines must match (AND).
- when **custom property for IpAddress** is equal to (case-insensitive): `-` — No QRadar property mapped for "IpAddress": create a custom event property (regex or JSON) on the DSM first.

## 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 (Security channel)`
2. when an event matches the condition built from these building blocks: `BB:OffSet7:External Remote RDP Logon from Public IP:selection AND NOT (ANY of [BB:OffSet7:External Remote RDP Logon from Public IP:filter_main_local_ranges, BB:OffSet7:External Remote RDP Logon from Public IP:filter_main_null, BB:OffSet7:External Remote RDP Logon from Public IP:filter_main_empty])`

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

Not available: the AQL conversion failed for this rule.

## Rule response

- Severity 5, 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 'IpAddress' 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: External Remote RDP Logon from Public IP (259a9cdf-c4dd-4fa2-b243-2269e5ab18a2). Author: Micah Babinski (@micahbabinski), Zach Mathis (@yamatosecurity). Licence: DRL-1.1.
