Sigma rule: Suspicious Schtasks Execution AppData Folder

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-758bd52cbbd6, updated 2022-07-28T00:00:00.000Z.

Rule

Title
Suspicious Schtasks Execution AppData Folder
Status
test
Level
high
Author
pH-T (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
Date
2022-03-15
Modified
2022-07-28
File
rules/windows/process_creation/proc_creation_win_schtasks_appdata_local_system.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the creation of a schtask that executes a file from C:\Users\<USER>\AppData\Local

Log source

product
windows
category
process_creation

Detection

selection:
    Image|endswith: '\schtasks.exe'
    CommandLine|contains|all:
        - '/Create'
        - '/RU'
        - '/TR'
        - 'C:\Users\'
        - '\AppData\Local\'
    CommandLine|contains:
        - 'NT AUT' # This covers the usual NT AUTHORITY\SYSTEM
        - ' SYSTEM ' # SYSTEM is a valid value for schtasks hence it gets it's own value with space
filter:
    # FP from test set in SIGMA
    ParentImage|contains|all:
        - '\AppData\Local\Temp\'
        - 'TeamViewer_.exe'
    Image|endswith: '\schtasks.exe'
    CommandLine|contains: '/TN TVInstallRestore'
condition: selection and not 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

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

Sources and licences

  • SigmaHQ

    "Suspicious Schtasks Execution AppData Folder" by pH-T (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_schtasks_appdata_local_system.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 Schtasks Execution AppData Folder",
entity page, dataset version ref-758bd52cbbd6, updated 2022-07-28T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/c5c00f49-b3f9-45a6-997e-cfdecc6e1967 (accessed 2026-11-03).
Underlying source: SigmaHQ rule c5c00f49-b3f9-45a6-997e-cfdecc6e1967, 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.