CmdID

CmdID / Rules / Windows

Schtasks Creation Or Modification With SYSTEM Privileges

A Sigma rule for process creation on Windows, by Nasreddine Bencherchali (Nextron Systems).

high 1 ATT&CK technique 1 program it names

What it looks for

its detection, as SigmaHQ writes it
detection:
  filter_optional_avira:
    CommandLine|contains:
      - '/Create /F /RU System /SC WEEKLY /TN AviraSystemSpeedupVerify /TR '
      - ':\Program Files (x86)\Avira\System Speedup\setup\avira_speedup_setup.exe'
      - '/VERIFY /VERYSILENT /NOSTART /NODOTNET /NORESTART" /RL HIGHEST'
  filter_optional_office:
    CommandLine|contains|all:
      - 'Subscription Heartbeat'
      - '\HeartbeatConfig.xml'
      - '\Microsoft Shared\OFFICE'
  filter_optional_teamviewer:
    CommandLine|contains|all:
      - '/TN TVInstallRestore'
      - '\TeamViewer_.exe'
    Image|endswith: '\schtasks.exe'
  selection_root:
    CommandLine|contains:
      - ' /change '
      - ' /create '
    Image|endswith: '\schtasks.exe'
  selection_run:
    CommandLine|contains: '/ru '
  selection_user:
    CommandLine|contains:
      - 'NT AUT'
      - ' SYSTEM '
  condition: all of selection_* and not 1 of filter_optional_*

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 Nasreddine Bencherchali (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
T1053.005Scheduled Task/Job: Scheduled Task