Sigma rule: Scheduled Task Executing Payload from Registry

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-53e5a9f0a5d4, updated 2023-07-18T00:00:00.000Z.

Rule

Title
Scheduled Task Executing Payload from Registry
Status
test
Level
medium
Author
X__Junior (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
Date
2023-07-18
File
rules/windows/process_creation/proc_creation_win_schtasks_reg_loader.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the creation of a schtasks that potentially executes a 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_get:
    CommandLine|contains:
        - 'Get-ItemProperty'
        - ' gp ' # Alias
selection_cli_hive:
    CommandLine|contains:
        - 'HKCU:'
        - 'HKLM:'
        - 'registry::'
        - 'HKEY_'
filter_main_encoding:
    CommandLine|contains:
        - 'FromBase64String'
        - 'encodedcommand'
condition: all of selection_* and not 1 of filter_*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.privilege-escalation
  • attack.execution
  • attack.persistence
  • attack.t1053.005
  • attack.t1059.001

MITRE ATT&CK ids this rule names

Related rules

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.yml

Sources and licences

  • SigmaHQ

    "Scheduled Task Executing Payload from Registry" by 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.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Scheduled Task Executing Payload from Registry",
entity page, dataset version ref-53e5a9f0a5d4, updated 2023-07-18T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/86588b36-c6d3-465f-9cee-8f9093e07798 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 86588b36-c6d3-465f-9cee-8f9093e07798, 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.