Sigma rule: Scheduled Task Executing Encoded Payload from Registry
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-694bb72c9f7a, updated 2023-02-04T00:00:00.000Z.
Rule
- Title
- Scheduled Task Executing Encoded Payload from Registry
- Status
- test
- Level
- high
- Author
- pH-T (Nextron Systems), @Kostastsale, TheDFIRReport, X__Junior (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
- Date
- 2022-02-12
- Modified
- 2023-02-04
- File
- rules/windows/process_creation/proc_creation_win_schtasks_reg_loader_encoded.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the creation of a schtask that potentially executes a base64 encoded payload stored in the Windows Registry using PowerShell.
Log source
- product
- windows
- category
- process_creation
Detection
selection_img:
# schtasks.exe /Create /F /TN "{97F2F70B-10D1-4447-A2F3-9B070C86E261}" /TR "cmd /c start /min \"\" powershell.exe -Command IEX([System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String((Get-ItemProperty -Path HKCU:\SOFTWARE\Pvoeooxf).yzbbvhhdypa))) " /SC MINUTE /MO 30
- Image|endswith: '\schtasks.exe'
- OriginalFileName: 'schtasks.exe'
selection_cli_create:
CommandLine|contains: '/Create'
selection_cli_encoding:
CommandLine|contains:
- 'FromBase64String'
- 'encodedcommand'
selection_cli_get:
CommandLine|contains:
- 'Get-ItemProperty'
- ' gp ' # Alias
selection_cli_hive:
CommandLine|contains:
- 'HKCU:'
- 'HKLM:'
- 'registry::'
- 'HKEY_'
condition: all of selection_*False positives (as the rule lists them)
- Unlikely
Tags
- attack.privilege-escalation
- attack.execution
- attack.persistence
- attack.t1053.005
- attack.t1059.001
MITRE ATT&CK ids this rule names
References
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_schtasks_reg_loader_encoded.yml
Sources and licences
SigmaHQ
"Scheduled Task Executing Encoded Payload from Registry" by pH-T (Nextron Systems), @Kostastsale, TheDFIRReport, X__Junior (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_schtasks_reg_loader_encoded.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Scheduled Task Executing Encoded Payload from Registry",
entity page, dataset version ref-694bb72c9f7a, updated 2023-02-04T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/c4eeeeae-89f4-43a7-8b48-8d1bdfa66c78 (accessed 2026-11-03).
Underlying source: SigmaHQ rule c4eeeeae-89f4-43a7-8b48-8d1bdfa66c78, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.