Detection rules › Sigma

Scheduled Task Created - FileCreation

Status
test
Severity
low
Log source
category file_event, product windows
Author
Center for Threat Informed Defense (CTID) Summiting the Pyramid Team
Source
github.com/SigmaHQ/sigma

Detects the creation of a scheduled task via file creation.

Known false positives

  • Normal behaviour on Windows

MITRE ATT&CK coverage

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule body

title: Scheduled Task Created - FileCreation
id: a762e74f-4dce-477c-b023-4ed81df600f9
status: test
description: Detects the creation of a scheduled task via file creation.
references:
    - https://center-for-threat-informed-defense.github.io/summiting-the-pyramid/analytics/task_scheduling/
    - https://posts.specterops.io/abstracting-scheduled-tasks-3b6451f6a1c5
author: Center for Threat Informed Defense (CTID) Summiting the Pyramid Team
date: 2023-09-27
tags:
    - attack.execution
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1053.005
    - attack.s0111
    - car.2013-08-001
    - detection.threat-hunting
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|contains:
            - ':\Windows\System32\Tasks\'
            - ':\Windows\SysWOW64\Tasks\'
            - ':\Windows\Tasks\'
    condition: selection
falsepositives:
    - Normal behaviour on Windows
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|contains:
        - ':\Windows\System32\Tasks\'
        - ':\Windows\SysWOW64\Tasks\'
        - ':\Windows\Tasks\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenamematch
  • :\Windows\SysWOW64\Tasks\
  • :\Windows\System32\Tasks\ corpus 2 (sigma 2)
  • :\Windows\Tasks\ corpus 2 (sigma 2)
field:"TargetFilename" kind:match