Detection rules › Sigma

Scheduled task enumerated

Status
experimental
Severity
medium
Log source
category process_creation, product windows
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker enumerates scheduled task configuration.

Known false positives

  • Administrator checking task status

MITRE ATT&CK coverage

Telemetry coverage

Rule body

title: Scheduled task enumerated
description: Detects scenarios where an attacker enumerates scheduled task configuration.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0007-Discovery/T1016-System%20Network%20Configuration%20Discovery
- https://strontic.github.io/xcyclopedia/library/schtasks.exe-5BD86A7193D38880F339D4AFB1F9B63A.html
- https://enigma0x3.net/2016/05/25/userland-persistence-with-scheduled-tasks-and-com-handler-hijacking/
tags:
- attack.discovery
- attack.t1016
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection:
  selection:
    EventID: 4688
    NewProcessName|endswith: \schtasks.exe
    CommandLine|contains|all: # full command: "schtasks /query /xml"
      - schtasks
      - query
  condition: selection
falsepositives:
- Administrator checking task status
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  EventID: 4688
  NewProcessName|endswith: \schtasks.exe
  CommandLine|contains|all:
    - schtasks
    - query

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • query corpus 8 (sigma 7, splunk 1)
  • schtasks corpus 6 (sigma 5, kusto 1)
field:"CommandLine" kind:match
NewProcessNameends_with
  • \schtasks.exe corpus 55 (sigma 55)
field:"Image" kind:ends_with value:"\schtasks.exe"