Unusual Windows Service
A machine learning job detected an unusual Windows service, This can indicate execution of unauthorized services, malware, or persistence mechanisms. In corporate Windows environments, hosts do not generally run many rare or unique services. This job helps detect malware and persistence mechanisms that have been installed and run as a service.
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 Windows service, This can indicate execution of unauthorized services,
14malware, or persistence mechanisms. In corporate Windows environments, hosts do not generally run many rare or unique
15services. This job helps detect malware and persistence mechanisms that have been installed and run as a service.
16"""
17false_positives = [
18 """
19 A newly installed program or one that runs rarely as part of a monthly or quarterly workflow could trigger this
20 alert.
21 """,
22]
23from = "now-45m"
24interval = "15m"
25license = "Elastic License v2"
26machine_learning_job_id = ["v3_windows_anomalous_service"]
27name = "Unusual Windows Service"
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-9c71-fc0fa58338c7"
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: Persistence",
83]
84type = "machine_learning"
85[[rule.threat]]
86framework = "MITRE ATT&CK"
87[[rule.threat.technique]]
88id = "T1543"
89name = "Create or Modify System Process"
90reference = "https://attack.mitre.org/techniques/T1543/"
91[[rule.threat.technique.subtechnique]]
92id = "T1543.003"
93name = "Windows Service"
94reference = "https://attack.mitre.org/techniques/T1543/003/"
95
96
97
98[rule.threat.tactic]
99id = "TA0003"
100name = "Persistence"
101reference = "https://attack.mitre.org/tactics/TA0003/"
References
Related rules
- Anomalous Process For a Windows Population
- Unusual Process For a Windows Host
- Unusual Windows Path Activity
- Anomalous Windows Process Creation
- Suspicious Powershell Script