Skip to content

Commit 32c10de

Browse files
authored
Merge pull request #3317 from nterl0k/nterl0k-t1569-windows-sus-services-lookup
Nterl0k - T1569 Windows Suspicious Services Lookup
2 parents 82bdfb3 + ea641c5 commit 32c10de

File tree

3 files changed

+176
-0
lines changed

3 files changed

+176
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
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
14+
| eval process_name = mvindex(split(process,"\\"),-1)
15+
| rename Computer as dest, ServiceName as object_name, ServiceType as object_type
16+
| lookup windows_suspicious_services service_name as object_name
17+
| where isnotnull(tool_name)
18+
| `security_content_ctime(firstTime)`
19+
| `security_content_ctime(lastTime)`
20+
| `windows_service_created_with_suspicious_service_name_filter`
21+
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.
23+
references:
24+
- https://attack.mitre.org/techniques/T1569/002/
25+
- https://github.com/BishopFox/sliver/blob/71f94928bf36c1557ea5fbeffa161b71116f56b2/client/command/exec/psexec.go#LL61C5-L61C16
26+
- https://www.microsoft.com/en-us/security/blog/2022/08/24/looking-for-the-sliver-lining-hunting-for-emerging-command-and-control-frameworks/
27+
- https://github.com/mthcht/awesome-lists/blob/main/Lists/suspicious_windows_services_names_list.csv
28+
drilldown_searches:
29+
- 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$]
43+
risk_objects:
44+
- field: dest
45+
type: system
46+
score: 75
47+
- field: user
48+
type: user
49+
score: 75
50+
threat_objects:
51+
- field: process
52+
type: process
53+
- field: object_name
54+
type: signature
55+
tags:
56+
analytic_story:
57+
- Active Directory Lateral Movement
58+
- Brute Ratel C4
59+
- CISA AA23-347A
60+
- Clop Ransomware
61+
- Flax Typhoon
62+
- PlugX
63+
- Qakbot
64+
- Snake Malware
65+
asset_type: Endpoint
66+
mitre_attack_id:
67+
- T1569.002
68+
product:
69+
- Splunk Enterprise
70+
- Splunk Enterprise Security
71+
- Splunk Cloud
72+
security_domain: endpoint
73+
tests:
74+
- name: True Positive Test
75+
attack_data:
76+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1055/sliver/sliver_windows-system.log
77+
source: XmlWinEventLog:System
78+
sourcetype: XmlWinEventLog

0 commit comments

Comments
 (0)