|
| 1 | +# --- Query Metadata --- |
| 2 | +# Human-readable name for the query. Will be displayed as the title. |
| 3 | +name: Remote Interactive Logons (RDP) |
| 4 | + |
| 5 | +# MITRE ATT&CK technique IDs |
| 6 | +mitre_ids: |
| 7 | + - T1021 |
| 8 | + |
| 9 | +# Description of what the query does and its purpose. |
| 10 | +# Using the YAML block scalar `|` allows for multi-line strings. |
| 11 | +description: | |
| 12 | + Identifies remote interactive logons on a specific endpoint. The query filters UserIdentity events for LogonType=10, which typically indicates Remote Desktop or similar remote access sessions. Results are scoped by the provided aid and display up to 1,000 events, including timestamp, username, user principal, and the logon server. Useful for detecting and reviewing remote access activity during investigations or routine monitoring. |
| 13 | +
|
| 14 | +# The author or team that created the query. |
| 15 | +author: ByteRay |
| 16 | + |
| 17 | +# The required log sources to run this query successfully in Next-Gen SIEM. |
| 18 | +# This will be displayed in the UI to inform the user. |
| 19 | +log_sources: |
| 20 | + - Endpoint |
| 21 | + |
| 22 | +# The CrowdStrike modules required to run this query. |
| 23 | +cs_required_modules: |
| 24 | + - Insight |
| 25 | + - Identity |
| 26 | + |
| 27 | +# Tags for filtering and categorization. |
| 28 | +# Include relevant techniques, tactics, or platforms. |
| 29 | +tags: |
| 30 | + - Hunting |
| 31 | + |
| 32 | +# --- Query Content --- |
| 33 | +# The actual CrowdStrike Query Language (CQL) code. |
| 34 | +# Using the YAML block scalar `|` allows for multi-line strings. |
| 35 | +cql: | |
| 36 | + #event_simpleName=UserIdentity |
| 37 | + | aid=?aid LogonType=10 |
| 38 | + |table([@timestamp,UserName,UserPrincipal,LogonServer],limit=1000) |
| 39 | +
|
| 40 | +# Explanation of the query. |
| 41 | +# Using the YAML block scalar `|` allows for multi-line strings. |
| 42 | +# Uses markdown for formatting on the webpage. |
| 43 | +explanation: | |
| 44 | + **Use Cases** |
| 45 | + - Review RDP usage on a host |
| 46 | + - Investigate potential unauthorized remote access |
| 47 | + - Support incident response and access audits |
| 48 | + |
| 49 | + LogonType=10 corresponds to remote interactive logons. The aid parameter must be set to the target endpoint. |
0 commit comments