Unusual Windows Remote User
A machine learning job detected an unusual remote desktop protocol (RDP) username, which can indicate account takeover or credentialed persistence using compromised accounts. RDP attacks, such as BlueKeep, also tend to use unusual usernames.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2020/03/25"
3integration = ["endpoint", "windows"]
4maturity = "production"
5min_stack_version = "9.4.0"
6min_stack_comments = "Use EA (Entity Analytics) fields"
7updated_date = "2026/04/01"
8
9[rule]
10anomaly_threshold = 50
11author = ["Elastic"]
12description = """
13A machine learning job detected an unusual remote desktop protocol (RDP) username, which can indicate account takeover
14or credentialed persistence using compromised accounts. RDP attacks, such as BlueKeep, also tend to use unusual
15usernames.
16"""
17false_positives = [
18 """
19 Uncommon username activity can be due to an engineer logging onto a server instance in order to perform manual
20 troubleshooting or reconfiguration.
21 """,
22]
23from = "now-45m"
24interval = "15m"
25license = "Elastic License v2"
26machine_learning_job_id = ["v3_windows_rare_user_type10_remote_login_ea"]
27name = "Unusual Windows Remote User"
28note = """## Triage and analysis
29
30### Investigating Unusual Windows Remote User
31Detection alerts from this rule indicate activity for a rare and unusual Windows RDP (remote desktop) user. Here are some possible avenues of investigation:
32- Consider the user as identified by the username field. Is the user part of a group who normally logs into Windows hosts using RDP (remote desktop protocol)? Is this logon activity part of an expected workflow for the user?
33- Consider the source of the login. If the source is remote, could this be related to occasional troubleshooting or support activity by a vendor or an employee working remotely?"""
34references = ["https://www.elastic.co/guide/en/security/current/prebuilt-ml-jobs.html"]
35risk_score = 21
36rule_id = "1781d055-5c66-4adf-9e93-fc0fa69550c9"
37setup = """## Setup
38
39This rule requires the installation of associated Machine Learning jobs, as well as data coming in from one of the following integrations:
40- Elastic Defend
41- Windows
42
43### Anomaly Detection Setup
44
45Once the rule is enabled, the associated Machine Learning job will start automatically. You can view the Machine Learning job linked under the "Definition" panel of the detection rule. If the job does not start due to an error, the issue must be resolved for the job to commence successfully. For more details on setting up anomaly detection jobs, refer to the [helper guide](https://www.elastic.co/guide/en/kibana/current/xpack-ml-anomalies.html).
46
47### Elastic Defend Integration Setup
48Elastic Defend is integrated into the Elastic Agent using Fleet. Upon configuration, the integration allows the Elastic Agent to monitor events on your host and send data to the Elastic Security app.
49
50#### Prerequisite Requirements:
51- Fleet is required for Elastic Defend.
52- To configure Fleet Server refer to the [documentation](https://www.elastic.co/guide/en/fleet/current/fleet-server.html).
53
54#### The following steps should be executed in order to add the Elastic Defend integration to your system:
55- Go to the Kibana home page and click "Add integrations".
56- In the query bar, search for "Elastic Defend" and select the integration to see more details about it.
57- Click "Add Elastic Defend".
58- Configure the integration name and optionally add a description.
59- Select the type of environment you want to protect, either "Traditional Endpoints" or "Cloud Workloads".
60- Select a configuration preset. Each preset comes with different default settings for Elastic Agent, you can further customize these later by configuring the Elastic Defend integration policy. [Helper guide](https://www.elastic.co/guide/en/security/current/configure-endpoint-integration-policy.html).
61- We suggest selecting "Complete EDR (Endpoint Detection and Response)" as a configuration setting, that provides "All events; all preventions"
62- Enter a name for the agent policy in "New agent policy name". If other agent policies already exist, you can click the "Existing hosts" tab and select an existing policy instead.
63For more details on Elastic Agent configuration settings, refer to the [helper guide](https://www.elastic.co/guide/en/fleet/current/agent-policy.html).
64- Click "Save and Continue".
65- To complete the integration, select "Add Elastic Agent to your hosts" and continue to the next section to install the Elastic Agent on your hosts.
66For more details on Elastic Defend refer to the [helper guide](https://www.elastic.co/guide/en/security/current/install-endpoint.html).
67
68### Windows Integration Setup
69The Windows integration allows you to monitor the Windows OS, services, applications, and more.
70
71#### The following steps should be executed in order to add the Elastic Agent System integration "windows" to your system:
72- Go to the Kibana home page and click “Add integrations”.
73- In the query bar, search for “Windows” and select the integration to see more details about it.
74- Click “Add Windows”.
75- Configure the integration name and optionally add a description.
76- Review optional and advanced settings accordingly.
77- Add the newly installed “windows” to an existing or a new agent policy, and deploy the agent on your system from which windows log files are desirable.
78- Click “Save and Continue”.
79- For more details on the integration refer to the [helper guide](https://docs.elastic.co/integrations/windows).
80"""
81severity = "low"
82tags = [
83 "Domain: Endpoint",
84 "OS: Windows",
85 "Use Case: Threat Detection",
86 "Rule Type: ML",
87 "Rule Type: Machine Learning",
88 "Tactic: Initial Access",
89 "Resources: Investigation Guide",
90]
91type = "machine_learning"
92[[rule.threat]]
93framework = "MITRE ATT&CK"
94
95[[rule.threat.technique]]
96id = "T1078"
97name = "Valid Accounts"
98reference = "https://attack.mitre.org/techniques/T1078/"
99
100[rule.threat.tactic]
101id = "TA0001"
102name = "Initial Access"
103reference = "https://attack.mitre.org/tactics/TA0001/"
104
105[[rule.threat]]
106framework = "MITRE ATT&CK"
107
108[[rule.threat.technique]]
109id = "T1021"
110name = "Remote Services"
111reference = "https://attack.mitre.org/techniques/T1021/"
112
113[[rule.threat.technique.subtechnique]]
114id = "T1021.001"
115name = "Remote Desktop Protocol"
116reference = "https://attack.mitre.org/techniques/T1021/001/"
117
118[rule.threat.tactic]
119id = "TA0008"
120name = "Lateral Movement"
121reference = "https://attack.mitre.org/tactics/TA0008/"
Triage and analysis
Investigating Unusual Windows Remote User
Detection alerts from this rule indicate activity for a rare and unusual Windows RDP (remote desktop) user. Here are some possible avenues of investigation:
- Consider the user as identified by the username field. Is the user part of a group who normally logs into Windows hosts using RDP (remote desktop protocol)? Is this logon activity part of an expected workflow for the user?
- Consider the source of the login. If the source is remote, could this be related to occasional troubleshooting or support activity by a vendor or an employee working remotely?
References
Related rules
- Unusual Windows Username
- Anomalous Process For a Windows Population
- Anomalous Windows Process Creation
- Rare Powershell Script
- Suspicious Powershell Script