CmdID

CmdID / Rules / Windows

Renamed Schtasks Execution

A Sigma rule for process creation on Windows, by Swachchhanda Shrawan Poudel (Nextron Systems).

high 2 ATT&CK techniques 1 program it names

What it looks for

its detection, as SigmaHQ writes it
detection:
  filter_main_cmd:
    CommandLine|contains: 'schtasks'
  filter_main_img:
    Image|endswith: '\schtasks.exe'
  filter_optional_cmd_openfiles:
    CommandLine|contains|all:
      - 'openfiles'
      - ' /query '
      - ' /fo'
  selection_cmd_flags:
    CommandLine|contains|windash:
      - ' /tn '
      - ' /tr '
      - ' /sc '
      - ' /st '
      - ' /ru '
      - ' /fo '
  selection_cmd_operation:
    CommandLine|contains|windash:
      - ' /create '
      - ' /delete '
      - ' /query '
      - ' /change '
      - ' /run '
      - ' /end '
  selection_pe:
    OriginalFileName: 'schtasks.exe'
  condition: (all of selection_cmd_* and not filter_main_cmd and not filter_optional_cmd_openfiles) or (selection_pe and not filter_main_img)

The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by Swachchhanda Shrawan Poudel (Nextron Systems), under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.

None of the everyday examples and documented commands on CmdID’s program pages trips it. To see whether a command line does, paste it into CmdID.

Programs and files it names

their pages here

ATT&CK

the techniques it is tagged with
T1036.003Masquerading: Rename Legitimate Utilities
T1053.005Scheduled Task/Job: Scheduled Task