Unusual Windows User Privilege Elevation Activity
A machine learning job detected an unusual user context switch, using the runas command or similar techniques, which can indicate account takeover or privilege escalation using compromised accounts. Privilege elevation using tools like runas are more commonly used by domain and network administrators than by regular Windows users.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2020/03/25"
3integration = ["endpoint", "windows"]
4maturity = "production"
5updated_date = "2024/10/28"
6min_stack_version = "8.14.0"
7min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
8
9[rule]
10anomaly_threshold = 50
11author = ["Elastic"]
12description = """
13A machine learning job detected an unusual user context switch, using the runas command or similar techniques, which can
14indicate account takeover or privilege escalation using compromised accounts. Privilege elevation using tools like runas
15are more commonly used by domain and network administrators than by regular Windows users.
16"""
17false_positives = [
18 """
19 Uncommon user privilege elevation activity can be due to an administrator, help desk technician, or a user
20 performing manual troubleshooting or reconfiguration.
21 """,
22]
23from = "now-45m"
24interval = "15m"
25license = "Elastic License v2"
26machine_learning_job_id = ["v3_windows_rare_user_runas_event"]
27name = "Unusual Windows User Privilege Elevation Activity"
28setup = """## Setup
29
30This rule requires the installation of associated Machine Learning jobs, as well as data coming in from one of the following integrations:
31- Elastic Defend
32- Windows
33
34### Anomaly Detection Setup
35
36Once 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).
37
38### Elastic Defend Integration Setup
39Elastic 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.
40
41#### Prerequisite Requirements:
42- Fleet is required for Elastic Defend.
43- To configure Fleet Server refer to the [documentation](https://www.elastic.co/guide/en/fleet/current/fleet-server.html).
44
45#### The following steps should be executed in order to add the Elastic Defend integration to your system:
46- Go to the Kibana home page and click "Add integrations".
47- In the query bar, search for "Elastic Defend" and select the integration to see more details about it.
48- Click "Add Elastic Defend".
49- Configure the integration name and optionally add a description.
50- Select the type of environment you want to protect, either "Traditional Endpoints" or "Cloud Workloads".
51- 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).
52- We suggest selecting "Complete EDR (Endpoint Detection and Response)" as a configuration setting, that provides "All events; all preventions"
53- 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.
54For more details on Elastic Agent configuration settings, refer to the [helper guide](https://www.elastic.co/guide/en/fleet/current/agent-policy.html).
55- Click "Save and Continue".
56- 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.
57For more details on Elastic Defend refer to the [helper guide](https://www.elastic.co/guide/en/security/current/install-endpoint.html).
58
59### Windows Integration Setup
60The Windows integration allows you to monitor the Windows OS, services, applications, and more.
61
62#### The following steps should be executed in order to add the Elastic Agent System integration "windows" to your system:
63- Go to the Kibana home page and click “Add integrations”.
64- In the query bar, search for “Windows” and select the integration to see more details about it.
65- Click “Add Windows”.
66- Configure the integration name and optionally add a description.
67- Review optional and advanced settings accordingly.
68- 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.
69- Click “Save and Continue”.
70- For more details on the integration refer to the [helper guide](https://docs.elastic.co/integrations/windows).
71"""
72references = ["https://www.elastic.co/guide/en/security/current/prebuilt-ml-jobs.html"]
73risk_score = 21
74rule_id = "1781d055-5c66-4adf-9d82-fc0fa58449c8"
75severity = "low"
76tags = [
77 "Domain: Endpoint",
78 "OS: Windows",
79 "Use Case: Threat Detection",
80 "Rule Type: ML",
81 "Rule Type: Machine Learning",
82 "Tactic: Privilege Escalation",
83]
84type = "machine_learning"
85[[rule.threat]]
86framework = "MITRE ATT&CK"
87
88[rule.threat.tactic]
89id = "TA0004"
90name = "Privilege Escalation"
91reference = "https://attack.mitre.org/tactics/TA0004/"
References
Related rules
- Anomalous Process For a Windows Population
- Suspicious Powershell Script
- Unusual Process For a Windows Host
- Unusual Windows Network Activity
- Unusual Windows Path Activity