Sigma rule: Suspicious Modification Of Scheduled Tasks

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-1fc30f7b940a, updated 2022-11-18T00:00:00.000Z.

Rule

Title
Suspicious Modification Of Scheduled Tasks
Status
test
Level
high
Author
Nasreddine Bencherchali (Nextron Systems)
Date
2022-07-28
Modified
2022-11-18
File
rules/windows/process_creation/proc_creation_win_schtasks_change.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects when an attacker tries to modify an already existing scheduled tasks to run from a suspicious location
Attackers can create a simple looking task in order to avoid detection on creation as it's often the most focused on
Instead they modify the task after creation to include their malicious payload

Log source

product
windows
category
process_creation

Detection

selection_schtasks:
    Image|endswith: '\schtasks.exe'
    CommandLine|contains|all:
        - ' /Change '
        - ' /TN '
selection_susp_locations:
    CommandLine|contains:
        - '\AppData\Local\Temp'
        - '\AppData\Roaming\'
        - '\Users\Public\'
        - '\WINDOWS\Temp\'
        - '\Desktop\'
        - '\Downloads\'
        - '\Temporary Internet'
        - 'C:\ProgramData\'
        - 'C:\Perflogs\'
        - '%ProgramData%'
        - '%appdata%'
        - '%comspec%'
        - '%localappdata%'
selection_susp_images:
    CommandLine|contains:
        - 'regsvr32'
        - 'rundll32'
        - 'cmd /c '
        - 'cmd /k '
        - 'cmd /r '
        - 'cmd.exe /c '
        - 'cmd.exe /k '
        - 'cmd.exe /r '
        - 'powershell'
        - 'mshta'
        - 'wscript'
        - 'cscript'
        - 'certutil'
        - 'bitsadmin'
        - 'bash.exe'
        - 'bash '
        - 'scrcons'
        - 'wmic '
        - 'wmic.exe'
        - 'forfiles'
        - 'scriptrunner'
        - 'hh.exe'
        - 'hh '
condition: all of selection_*

False positives (as the rule lists them)

  • Unknown

Tags

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

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

Sources and licences

  • SigmaHQ

    "Suspicious Modification Of Scheduled Tasks" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_schtasks_change.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: Suspicious Modification Of Scheduled Tasks",
entity page, dataset version ref-1fc30f7b940a, updated 2022-11-18T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/1c0e41cd-21bb-4433-9acc-4a2cd6367b9b (accessed 2026-11-03).
Underlying source: SigmaHQ rule 1c0e41cd-21bb-4433-9acc-4a2cd6367b9b, 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.