Detection rules › Sigma

Scheduled Task Creation Via Schtasks.EXE

Status
test
Severity
low
Log source
category process_creation, product windows
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the creation of scheduled tasks by user accounts via the "schtasks" utility.

Known false positives

  • Administrative activity
  • Software installation

MITRE ATT&CK coverage

Telemetry coverage

Rule body

title: Scheduled Task Creation Via Schtasks.EXE
id: 92626ddd-662c-49e3-ac59-f6535f12d189
status: test
description: Detects the creation of scheduled tasks by user accounts via the "schtasks" utility.
references:
    - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks-create
author: Florian Roth (Nextron Systems)
date: 2019-01-16
modified: 2025-10-22
tags:
    - attack.execution
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1053.005
    - attack.s0111
    - car.2013-08-001
    - stp.1u
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\schtasks.exe'
        CommandLine|contains: ' /create '
    filter_main_system_user:
        User|contains: # covers many language settings
            - 'AUTHORI'
            - 'AUTORI'
    filter_optional_msoffice:
        #  schtasks.exe /Create /tn "Microsoft\Office\Office Performance Monitor" /XML "C:\ProgramData\Microsoft\ClickToRun\{9AC08E99-230B-47e8-9721-4577B7F124EA}\Microsoft_Office_Office Performance Monitor.xml"
        ParentImage:
            - 'C:\Program Files\Microsoft Office\root\integration\integrator.exe'
            - 'C:\Program Files (x86)\Microsoft Office\root\integration\integrator.exe'
        Image:
            - 'C:\Windows\System32\schtasks.exe'
            - 'C:\Windows\SysWOW64\schtasks.exe'
        CommandLine|contains: 'Microsoft\Office\Office Performance Monitor'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Administrative activity
    - Software installation
level: low

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection

selection:
    Image|endswith: '\schtasks.exe'
    CommandLine|contains: ' /create '

Stage 2: not filter_main_system_user

filter_main_system_user:
    User|contains:
        - 'AUTHORI'
        - 'AUTORI'

Stage 3: not filter_optional_msoffice

filter_optional_msoffice:
    ParentImage:
        - 'C:\Program Files\Microsoft Office\root\integration\integrator.exe'
        - 'C:\Program Files (x86)\Microsoft Office\root\integration\integrator.exe'
    Image:
        - 'C:\Windows\System32\schtasks.exe'
        - 'C:\Windows\SysWOW64\schtasks.exe'
    CommandLine|contains: 'Microsoft\Office\Office Performance Monitor'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
UsermatchAUTHORIexcludes:User field:"User" value:"AUTHORI"
UsermatchAUTORIexcludes:User field:"User" value:"AUTORI"
ImageeqC:\Windows\SysWOW64\schtasks.exeexcludes:Image field:"Image" value:"C:\Windows\SysWOW64\schtasks.exe"
ImageeqC:\Windows\System32\schtasks.exeexcludes:Image field:"Image" value:"C:\Windows\System32\schtasks.exe"
ParentImageeqC:\Program Files (x86)\Microsoft Office\root\integration\integrator.exeexcludes:ParentImage field:"ParentImage" value:"C:\Program Files (x86)\Microsoft Office\root\integration\integrator.exe"
ParentImageeqC:\Program Files\Microsoft Office\root\integration\integrator.exeexcludes:ParentImage field:"ParentImage" value:"C:\Program Files\Microsoft Office\root\integration\integrator.exe"
CommandLinematchMicrosoft\Office\Office Performance Monitorexcludes:CommandLine field:"CommandLine" value:"Microsoft\Office\Office Performance Monitor"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /create corpus 15 (sigma 15)
field:"CommandLine" kind:match value:" /create "
Imageends_with
  • \schtasks.exe corpus 55 (sigma 55)
field:"Image" kind:ends_with value:"\schtasks.exe"