Detection rules › Sigma

Suspicious Scheduled Task Write to System32 Tasks

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

Detects the creation of tasks from processes executed from suspicious locations

MITRE ATT&CK coverage

TacticTechniques
Execution
Persistence
Privilege Escalation

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule body

title: Suspicious Scheduled Task Write to System32 Tasks
id: 80e1f67a-4596-4351-98f5-a9c3efabac95
status: test
description: Detects the creation of tasks from processes executed from suspicious locations
references:
    - Internal Research
author: Florian Roth (Nextron Systems)
date: 2021-11-16
modified: 2022-01-12
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.t1053
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|contains: '\Windows\System32\Tasks'
        Image|contains:
            - '\AppData\'
            - 'C:\PerfLogs'
            - '\Windows\System32\config\systemprofile'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|contains: '\Windows\System32\Tasks'
    Image|contains:
        - '\AppData\'
        - 'C:\PerfLogs'
        - '\Windows\System32\config\systemprofile'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imagematch
  • C:\PerfLogs
  • \AppData\ corpus 6 (sigma 6)
  • \Windows\System32\config\systemprofile
field:"Image" kind:match
TargetFilenamematch
  • \Windows\System32\Tasks
field:"TargetFilename" kind:match value:"\Windows\System32\Tasks"