Skip to content

Commit f6646f5

Browse files
authored
Merge branch 'splunk:develop' into nterl0k-t1053-suspicious-task-lookups
2 parents fe46608 + 32c10de commit f6646f5

8 files changed

+315
-7
lines changed

detections/endpoint/exchange_powershell_abuse_via_ssrf.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Exchange PowerShell Abuse via SSRF
22
id: 29228ab4-0762-11ec-94aa-acde48001122
3-
version: 5
4-
date: '2024-11-13'
3+
version: 6
4+
date: '2025-02-19'
55
author: Michael Haag, Splunk
66
status: experimental
77
type: TTP
@@ -14,7 +14,7 @@ description: The following analytic detects suspicious behavior indicative of Pr
1414
If confirmed malicious, this could lead to unauthorized access, privilege escalation,
1515
or persistent control over the Exchange environment.
1616
data_source: []
17-
search: '`exchange` c_uri="*//autodiscover*" cs_uri_query="*PowerShell*" cs_method="POST"
17+
search: '`windows_exchange_iis` c_uri="*//autodiscover*" cs_uri_query="*PowerShell*" cs_method="POST"
1818
| stats count min(_time) as firstTime max(_time) as lastTime by dest, cs_uri_query,
1919
cs_method, c_uri | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`
2020
| `exchange_powershell_abuse_via_ssrf_filter`'
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Windows Compatibility Telemetry Suspicious Child Process
2+
id: 56fe46ca-ffef-46fe-8f0e-5cd4b7b4cc0c
3+
version: 1
4+
date: '2025-02-13'
5+
author: Steven Dick
6+
status: production
7+
type: TTP
8+
description: The following analytic detects the execution of CompatTelRunner.exe with parameters indicative of a process not part of the normal "Microsoft Compatibility Appraiser" telemetry collection. It leverages data from Endpoint Detection and Response (EDR) agents, focusing on process names, parent processes, and command-line arguments. This activity is significant because CompatTelRunner.exe and the "Microsoft Compatibility Appraiser" task always run as System and can be used to elevate privileges or establish a highly privileged persistence mechanism. If confirmed malicious, this could enable unauthorized code execution, privilege escalation, or persistent access to the compromised system.
9+
data_source:
10+
- Windows Security Event ID 4688
11+
- Sysmon Event ID 1
12+
- CrowdStrike ProcessRollup2
13+
search: |-
14+
| tstats `security_content_summariesonly` values(Processes.parent_process) as Processes.parent_process, values(Processes.process) as Processes.process values(Processes.process_current_directory) AS process_current_directory, values(Processes.process_id) as Processes.process_id, values(Processes.process_guid) as Processes.process_guid, count min(_time) AS firstTime, max(_time) AS lastTime FROM datamodel=Endpoint.Processes where Processes.parent_process_name = "CompatTelRunner.exe" AND Processes.process="* -cv:*" NOT Processes.process IN ("* -m:*") BY _time span=1h Processes.user Processes.dest Processes.parent_process_name Processes.process_name
15+
|`drop_dm_object_name(Processes)`
16+
| `security_content_ctime(firstTime)`
17+
| `security_content_ctime(lastTime)`
18+
| `windows_compatibility_telemetry_suspicious_child_process_filter`
19+
how_to_implement: The detection is based on data that originates from Endpoint Detection and Response (EDR) agents. These agents are designed to provide security-related telemetry from the endpoints where the agent is installed. To implement this search, you must ingest logs that contain the process GUID, process name, and parent process. Additionally, you must ingest complete command-line executions. These logs must be processed using the appropriate Splunk Technology Add-ons that are specific to the EDR product. The logs must also be mapped to the `Processes` node of the `Endpoint` data model. Use the Splunk Common Information Model (CIM) to normalize the field names and speed up the data modeling process.
20+
known_false_positives: None identified
21+
references:
22+
- https://attack.mitre.org/techniques/T1546/
23+
- https://scythe.io/threat-thursday/windows-telemetry-persistence
24+
- https://www.trustedsec.com/blog/abusing-windows-telemetry-for-persistence
25+
drilldown_searches:
26+
- name: View the detection results for - "$dest$"
27+
search: '%original_detection_search% | search dest = "$dest$"'
28+
earliest_offset: $info_min_time$
29+
latest_offset: $info_max_time$
30+
- name: View risk events for the last 7 days for - "$dest$"
31+
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)`'
32+
earliest_offset: $info_min_time$
33+
latest_offset: $info_max_time$
34+
- name: Investigate processes on $dest$
35+
search: '| from datamodel Endpoint.Processes
36+
| search dest = "$dest$" AND process_name = "$process_name$"'
37+
earliest_offset: $info_min_time$
38+
latest_offset: $info_max_time$
39+
rba:
40+
message: The process $process_name$ was launched in a suspicious manner by $parent_process_name$ on host $dest$
41+
risk_objects:
42+
- field: dest
43+
type: system
44+
score: 70
45+
threat_objects:
46+
- field: process_name
47+
type: process
48+
tags:
49+
analytic_story:
50+
- Windows Persistence Techniques
51+
asset_type: Endpoint
52+
mitre_attack_id:
53+
- T1546
54+
- T1053.005
55+
product:
56+
- Splunk Enterprise
57+
- Splunk Enterprise Security
58+
- Splunk Cloud
59+
security_domain: endpoint
60+
tests:
61+
- name: True Positive Test
62+
attack_data:
63+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546/compattelrunner_abuse/compattelrunner_abuse.log
64+
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
65+
sourcetype: XmlWinEventLog
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Windows Compatibility Telemetry Tampering Through Registry
2+
id: 43834687-cc48-4878-a2fa-f76e4271791f
3+
version: 1
4+
date: '2025-02-13'
5+
author: Steven Dick
6+
status: production
7+
type: TTP
8+
description: This detection identifies suspicious modifications to the Windows Compatibility Telemetry registry settings, specifically within the "TelemetryController" registry key and "Command" registry value. It leverages data from the Endpoint.Registry data model, focusing on registry paths and values indicative of such changes. This activity is significant because CompatTelRunner.exe and the "Microsoft Compatibility Appraiser" task always run as System and can be used to elevate privileges or establish a highly privileged persistence mechanism. If confirmed malicious, this could enable unauthorized code execution, privilege escalation, or persistent access to the compromised system.
9+
data_source:
10+
- Sysmon Event ID 13
11+
search: |-
12+
| tstats `security_content_summariesonly` min(_time) as firstTime, max(_time) as lastTime, count FROM datamodel=Endpoint.Registry WHERE (Registry.registry_path = "*\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\TelemetryController*" AND Registry.registry_value_name="Command" NOT Registry.registry_value_data IN ("(empty)")) BY Registry.dest Registry.user Registry.registry_path Registry.registry_key_name Registry.registry_value_name Registry.registry_value_data Registry.process_guid
13+
| `drop_dm_object_name(Registry)`
14+
| eval process = registry_value_data
15+
| `security_content_ctime(firstTime)`
16+
| `security_content_ctime(lastTime)`
17+
| `windows_compatibility_telemetry_tampering_through_registry_filter`
18+
how_to_implement: The detection is based on data that originates from Endpoint Detection and Response (EDR) agents. These agents are designed to provide security-related telemetry from the endpoints where the agent is installed. To implement this search, you must ingest logs that contain the process GUID, process name, and parent process. Additionally, you must ingest complete command-line executions. These logs must be processed using the appropriate Splunk Technology Add-ons that are specific to the EDR product. The logs must also be mapped to the `Processes` node of the `Endpoint` data model. Use the Splunk Common Information Model (CIM) to normalize the field names and speed up the data modeling process.
19+
known_false_positives: None identified
20+
references:
21+
- https://attack.mitre.org/techniques/T1546/
22+
- https://scythe.io/threat-thursday/windows-telemetry-persistence
23+
- https://www.trustedsec.com/blog/abusing-windows-telemetry-for-persistence
24+
drilldown_searches:
25+
- name: View the detection results for - "$dest$" and "$user$"
26+
search: '%original_detection_search% | search dest = "$dest$" user = "$user$"'
27+
earliest_offset: $info_min_time$
28+
latest_offset: $info_max_time$
29+
- name: View risk events for the last 7 days for - "$dest$" and "$user$"
30+
search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$user$","$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)`'
31+
earliest_offset: $info_min_time$
32+
latest_offset: $info_max_time$
33+
- name: Investigate registry changes on $dest$
34+
search: '| from datamodel Endpoint.Registry
35+
| search registry_path = "*\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\TelemetryController*" AND dest = "$dest$"'
36+
earliest_offset: $info_min_time$
37+
latest_offset: $info_max_time$
38+
rba:
39+
message: The process $process$ was added to registry settings for the Compatibility Appraiser by $user$ on host $dest$
40+
risk_objects:
41+
- field: dest
42+
type: system
43+
score: 70
44+
- field: user
45+
type: user
46+
score: 70
47+
threat_objects:
48+
- field: process
49+
type: process
50+
tags:
51+
analytic_story:
52+
- Windows Persistence Techniques
53+
asset_type: Endpoint
54+
mitre_attack_id:
55+
- T1546
56+
- T1053.005
57+
product:
58+
- Splunk Enterprise
59+
- Splunk Enterprise Security
60+
- Splunk Cloud
61+
security_domain: endpoint
62+
tests:
63+
- name: True Positive Test
64+
attack_data:
65+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546/compattelrunner_abuse/compattelrunner_abuse.log
66+
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
67+
sourcetype: XmlWinEventLog
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)