Skip to content

Commit d254729

Browse files
authored
Add files via upload
1 parent bc334de commit d254729

File tree

2 files changed

+134
-0
lines changed

2 files changed

+134
-0
lines changed
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: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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: The process $process_name$ was launched in a suspicious manner by $parent_process_name$ on host $dest$ ----- 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+
- Sysmon Event ID 12
11+
- Sysmon Event ID 13
12+
- Sysmon Event ID 14
13+
search: |-
14+
| 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
15+
| `drop_dm_object_name(Registry)`
16+
| eval process = registry_value_data
17+
| `security_content_ctime(firstTime)`
18+
| `security_content_ctime(lastTime)`
19+
| `windows_compatibility_telemetry_tampering_through_registry_filter`
20+
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.
21+
known_false_positives: None identified
22+
references:
23+
- https://attack.mitre.org/techniques/T1546/
24+
- https://scythe.io/threat-thursday/windows-telemetry-persistence
25+
- https://www.trustedsec.com/blog/abusing-windows-telemetry-for-persistence
26+
drilldown_searches:
27+
- name: View the detection results for - "$dest$" and "$user$"
28+
search: '%original_detection_search% | search dest = "$dest$" user = "$user$"'
29+
earliest_offset: $info_min_time$
30+
latest_offset: $info_max_time$
31+
- name: View risk events for the last 7 days for - "$dest$" and "$user$"
32+
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)`'
33+
earliest_offset: $info_min_time$
34+
latest_offset: $info_max_time$
35+
- name: Investigate registry changes on $dest$
36+
search: '| from datamodel Endpoint.Registry
37+
| search registry_path = "*\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\TelemetryController*" AND dest = "$dest$"'
38+
earliest_offset: $info_min_time$
39+
latest_offset: $info_max_time$
40+
rba:
41+
message: The process $process$ was added to registry settings for the Compatibility Appraiser by $user$ on host $dest$
42+
risk_objects:
43+
- field: dest
44+
type: system
45+
score: 70
46+
- field: user
47+
type: user
48+
score: 70
49+
threat_objects:
50+
- field: process
51+
type: process
52+
tags:
53+
analytic_story:
54+
- Windows Persistence Techniques
55+
asset_type: Endpoint
56+
mitre_attack_id:
57+
- T1546
58+
- T1053.005
59+
product:
60+
- Splunk Enterprise
61+
- Splunk Enterprise Security
62+
- Splunk Cloud
63+
security_domain: endpoint
64+
tests:
65+
- name: True Positive Test
66+
attack_data:
67+
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546/compattelrunner_abuse/compattelrunner_abuse.log
68+
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
69+
sourcetype: XmlWinEventLog

0 commit comments

Comments
 (0)