Persistence via TelemetryController Scheduled Task Hijack
Detects the successful hijack of Microsoft Compatibility Appraiser scheduled task to establish persistence with an integrity level of system.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2020/08/17"
3integration = ["endpoint", "windows", "system", "m365_defender", "sentinel_one_cloud_funnel"]
4maturity = "production"
5updated_date = "2024/10/15"
6min_stack_version = "8.14.0"
7min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
8
9[rule]
10author = ["Elastic"]
11description = """
12Detects the successful hijack of Microsoft Compatibility Appraiser scheduled task to establish persistence with an
13integrity level of system.
14"""
15from = "now-9m"
16index = [
17 "winlogbeat-*",
18 "logs-endpoint.events.process-*",
19 "logs-windows.forwarded*",
20 "logs-windows.sysmon_operational-*",
21 "endgame-*",
22 "logs-system.security*",
23 "logs-m365_defender.event-*",
24 "logs-sentinel_one_cloud_funnel.*",
25]
26language = "eql"
27license = "Elastic License v2"
28name = "Persistence via TelemetryController Scheduled Task Hijack"
29references = ["https://www.trustedsec.com/blog/abusing-windows-telemetry-for-persistence"]
30risk_score = 73
31rule_id = "68921d85-d0dc-48b3-865f-43291ca2c4f2"
32severity = "high"
33tags = [
34 "Domain: Endpoint",
35 "OS: Windows",
36 "Use Case: Threat Detection",
37 "Tactic: Persistence",
38 "Tactic: Privilege Escalation",
39 "Data Source: Elastic Endgame",
40 "Data Source: Elastic Defend",
41 "Data Source: System",
42 "Data Source: Microsoft Defender for Endpoint",
43 "Data Source: Sysmon",
44 "Data Source: SentinelOne",
45]
46timestamp_override = "event.ingested"
47type = "eql"
48
49query = '''
50process where host.os.type == "windows" and event.type == "start" and
51 process.parent.name : "CompatTelRunner.exe" and process.args : "-cv*" and
52 not process.name : ("conhost.exe",
53 "DeviceCensus.exe",
54 "CompatTelRunner.exe",
55 "DismHost.exe",
56 "rundll32.exe",
57 "powershell.exe")
58'''
59
60
61[[rule.threat]]
62framework = "MITRE ATT&CK"
63[[rule.threat.technique]]
64id = "T1053"
65name = "Scheduled Task/Job"
66reference = "https://attack.mitre.org/techniques/T1053/"
67[[rule.threat.technique.subtechnique]]
68id = "T1053.005"
69name = "Scheduled Task"
70reference = "https://attack.mitre.org/techniques/T1053/005/"
71
72
73[[rule.threat.technique]]
74id = "T1574"
75name = "Hijack Execution Flow"
76reference = "https://attack.mitre.org/techniques/T1574/"
77
78
79[rule.threat.tactic]
80id = "TA0003"
81name = "Persistence"
82reference = "https://attack.mitre.org/tactics/TA0003/"
83[[rule.threat]]
84framework = "MITRE ATT&CK"
85[[rule.threat.technique]]
86id = "T1053"
87name = "Scheduled Task/Job"
88reference = "https://attack.mitre.org/techniques/T1053/"
89[[rule.threat.technique.subtechnique]]
90id = "T1053.005"
91name = "Scheduled Task"
92reference = "https://attack.mitre.org/techniques/T1053/005/"
93
94
95[[rule.threat.technique]]
96id = "T1574"
97name = "Hijack Execution Flow"
98reference = "https://attack.mitre.org/techniques/T1574/"
99
100
101[rule.threat.tactic]
102id = "TA0004"
103name = "Privilege Escalation"
104reference = "https://attack.mitre.org/tactics/TA0004/"
References
Related rules
- Adding Hidden File Attribute via Attrib
- Bypass UAC via Event Viewer
- Creation or Modification of a new GPO Scheduled Task or Service
- Execution via MSSQL xp_cmdshell Stored Procedure
- New ActiveSyncAllowedDeviceID Added via PowerShell