Detection rules › Sigma

Scheduled Task Creation Masquerading as System Processes

Severity
high
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Source
upstream

Detects the creation of scheduled tasks that involve system processes, which may indicate malicious actors masquerading as or abusing these processes to execute payloads or maintain persistence.

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1053.005 Scheduled Task/Job: Scheduled Task
PersistenceT1053.005 Scheduled Task/Job: Scheduled Task
Privilege EscalationT1053.005 Scheduled Task/Job: Scheduled Task
Defense EvasionT1036.004 Masquerading: Masquerade Task or Service, T1036.005 Masquerading: Match Legitimate Resource Name or Location

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation

Stages and Predicates

Stage 1: all of selection_img

or:
Image|endswith: '\schtasks.exe'
OriginalFileName: schtasks.exe

Stage 2: all of selection_cli

or:
CommandLine|contains: ' audiodg'
CommandLine|contains: ' conhost'
CommandLine|contains: ' dwm.exe'
CommandLine|contains: ' explorer'
CommandLine|contains: ' lsass'
CommandLine|contains: ' lsm'
CommandLine|contains: ' mmc'
CommandLine|contains: ' msiexec'
CommandLine|contains: ' regsvr32'
CommandLine|contains: ' rundll32'
CommandLine|contains: ' services'
CommandLine|contains: ' spoolsv'
CommandLine|contains: ' svchost'
CommandLine|contains: ' taskeng'
CommandLine|contains: ' taskhost'
CommandLine|contains: ' wininit'
CommandLine|contains: ' winlogon'
CommandLine|contains: ' /create '

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • /create corpus 14 (sigma 14)
  • audiodg
  • conhost
  • dwm.exe
  • explorer
  • lsass
  • lsm
  • mmc
  • msiexec corpus 2 (sigma 2)
  • regsvr32
  • rundll32
  • services
  • spoolsv
  • svchost
  • taskeng
  • taskhost
  • wininit
  • winlogon
Imageends_with
  • \schtasks.exe corpus 45 (sigma 45)
OriginalFileNameeq
  • schtasks.exe corpus 14 (sigma 14)