Detection rules › Sigma
Scheduled Task Executing Payload from Registry
Detects the creation of a schtasks that potentially executes a payload stored in the Windows Registry using PowerShell.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | T1053.005 Scheduled Task/Job: Scheduled Task, T1059.001 Command and Scripting Interpreter: PowerShell |
| Persistence | T1053.005 Scheduled Task/Job: Scheduled Task |
| Privilege Escalation | T1053.005 Scheduled Task/Job: Scheduled Task |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
Stages and Predicates
Stage 1: all of selection_img
or:
Image|endswith: '\schtasks.exe'
OriginalFileName: schtasks.exe
Stage 2: all of selection_cli_create
CommandLine|contains: '/Create'
Stage 3: all of selection_cli_get
or:
CommandLine|contains: ' gp '
CommandLine|contains: Get-ItemProperty
Stage 4: all of selection_cli_hive
or:
CommandLine|contains: 'HKCU:'
CommandLine|contains: HKEY_
CommandLine|contains: 'HKLM:'
CommandLine|contains: 'registry::'
Stage 5: not 1 of filter_main_encoding
or:
CommandLine|contains: FromBase64String
CommandLine|contains: encodedcommand
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|
Image | ends_with |
|
OriginalFileName | eq |
|
Neighbors
Equivalent rules
1 other rule has the same matching logic as this one. Useful for cross-vendor comparison or picking the variant your stack supports. See eq_0005.