Scheduled TaskCache Change by Uncommon Program

Monitor the creation of a new key under 'TaskCache' when a new scheduled task is registered by a process that is not svchost.exe, which is suspicious

Sigma rule (View on GitHub)

 1title: Scheduled TaskCache Change by Uncommon Program
 2id: 4720b7df-40c3-48fd-bbdf-fd4b3c464f0d
 3status: test
 4description: Monitor the creation of a new key under 'TaskCache' when a new scheduled task is registered by a process that is not svchost.exe, which is suspicious
 5references:
 6    - https://thedfirreport.com/2021/03/29/sodinokibi-aka-revil-ransomware/
 7    - https://labs.f-secure.com/blog/scheduled-task-tampering/
 8author: Syed Hasan (@syedhasan009)
 9date: 2021-06-18
10modified: 2026-11-12
11tags:
12    - attack.privilege-escalation
13    - attack.execution
14    - attack.persistence
15    - attack.t1053
16    - attack.t1053.005
17logsource:
18    category: registry_set
19    product: windows
20detection:
21    selection:
22        TargetObject|contains: 'SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\'
23    filter_main_empty:
24        Details: '(Empty)'
25    filter_main_null:
26        Details: null
27    filter_main_other:
28        TargetObject|contains:
29            - 'Microsoft\Windows\UpdateOrchestrator'
30            - 'Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask\Index'
31            - 'Microsoft\Windows\Flighting\OneSettings\RefreshCache\Index'
32    filter_main_mousocoreworker:
33        Image|endswith: 'C:\Windows\System32\MoUsoCoreWorker.exe'
34    filter_main_microsoft_sd:
35        User|contains: # covers many language settings
36            - 'AUTHORI'
37            - 'AUTORI'
38        TargetObject|endswith: 'SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\SD'
39        Details: 'Binary Data'
40    filter_main_services:
41        Image|endswith: 'C:\Windows\System32\services.exe'
42    filter_main_tiworker:
43        Image|startswith: 'C:\Windows\'
44        Image|endswith: '\TiWorker.exe'
45    filter_main_svchost:
46        Image: 'C:\WINDOWS\system32\svchost.exe'
47    filter_main_ngen:
48        Image|startswith: 'C:\Windows\Microsoft.NET\Framework' # \Framework\ and \Framework64\
49        Image|endswith: '\ngen.exe'
50        TargetObject|contains:
51            - '\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tasks\{B66B135D-DA06-4FC4-95F8-7458E1D10129}'
52            - '\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\.NET Framework\.NET Framework NGEN'
53    filter_main_office:
54        Image:
55            - 'C:\Program Files\Microsoft Office\root\Integration\Integrator.exe'
56            - 'C:\Program Files (x86)\Microsoft Office\root\Integration\Integrator.exe'
57            - 'C:\Program Files\Common Files\microsoft shared\ClickToRun\OfficeC2RClient.exe'
58            - 'C:\Program Files (x86)\Common Files\microsoft shared\ClickToRun\OfficeC2RClient.exe'
59    filter_main_msiexec:
60        Image: 'C:\Windows\System32\msiexec.exe'
61    filter_main_explorer:
62        Image: 'C:\Windows\explorer.exe'
63        TargetObject|contains: '\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\PLA\Server Manager Performance Monitor\'
64    filter_main_system:
65        Image: 'System'
66    filter_main_runtimebroker:
67        Image: 'C:\Windows\System32\RuntimeBroker.exe'
68    filter_optional_container_worker:
69        Image|startswith:
70            - 'C:\Windows\System32\'
71            - 'C:\Windows\SysWOW64\'
72            - 'C:\Windows\WinSxS\'
73        Image|endswith: '\containerworker.exe'
74        TargetObject|contains: '\Windows\Containers\Layers\'
75    filter_optional_dropbox_updater:
76        Image:
77            - 'C:\Program Files (x86)\Dropbox\Update\DropboxUpdate.exe'
78            - 'C:\Program Files\Dropbox\Update\DropboxUpdate.exe'
79    filter_optional_edge:
80        Image|endswith:
81            - 'C:\Program Files (x86)\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe'
82            - 'C:\Program Files\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe'
83    filter_optional_onedrive:
84        Image|endswith:
85            - 'C:\Program Files (x86)\Microsoft OneDrive\OneDrive.exe'
86            - 'C:\Program Files\Microsoft OneDrive\OneDrive.exe'
87    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
88falsepositives:
89    - Unknown
90level: high

References

Related rules

to-top