You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: Windows Service Created with Suspicious Service Name
2
+
id: 35eb6d19-a497-400c-93c5-645562804b11
3
+
version: 1
4
+
date: '2025-02-07'
5
+
author: Steven Dick
6
+
status: production
7
+
type: Anomaly
8
+
description: The following analytic detects the creation of a Windows Service with a known suspicious or malicious name using Windows Event ID 7045. It leverages logs from the `wineventlog_system` to identify these services installations. This activity is significant as adversaries, including those deploying Clop ransomware, often create malicious services for lateral movement, remote code execution, persistence, and execution. If confirmed malicious, this could allow attackers to maintain persistence, execute arbitrary code, and potentially escalate privileges, posing a severe threat to the environment.
9
+
data_source:
10
+
- Windows Event Log System 7045
11
+
search: |-
12
+
`wineventlog_system` EventCode=7045
13
+
| stats values(user) as user, values(ImagePath) as process, count, min(_time) as firstTime, max(_time) as lastTime values(EventCode) as signature by Computer, ServiceName, StartType, ServiceType, UserID
how_to_implement: To successfully implement this search, you need to be ingesting logs with the Service name, Service File Name Service Start type, and Service Type from your endpoints.
22
+
known_false_positives: Legitimate applications may install services with uncommon services paths.
- name: View the detection results for - "$dest$""
30
+
search: '%original_detection_search% | search dest = "$dest$"'
31
+
earliest_offset: $info_min_time$
32
+
latest_offset: $info_max_time$
33
+
- name: View risk events for the last 7 days for - "$dest$"
34
+
search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$dest$") starthoursago=168 | stats count min(_time) as firstTime max(_time) as lastTime values(search_name) as "Search Name" values(risk_message) as "Risk Message" values(analyticstories) as "Analytic Stories" values(annotations._all) as "Annotations" values(annotations.mitre_attack.mitre_tactic) as "ATT&CK Tactics" by normalized_risk_object | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`'
35
+
earliest_offset: $info_min_time$
36
+
latest_offset: $info_max_time$
37
+
- name: Investigate service events on $dest$
38
+
search: '`wineventlog_system` EventCode=7045 ServiceName = "$object_name$" dest = "$dest$"'
39
+
earliest_offset: $info_min_time$
40
+
latest_offset: $info_max_time$
41
+
rba:
42
+
message: A known malicious service name $object_name$ was created using $process$ on $dest$, this may indicate the presence of [$tool_name$]
0 commit comments