CmdID

CmdID / Rules / Windows

Discovery of a System Time

A Sigma rule for process creation on Windows, by E.M. Anhaus (originally from Atomic Blue Detections, Endgame), oscd.community.

low 1 ATT&CK technique 5 programs it names 4 everyday examples trip it

What it looks for

its detection, as SigmaHQ writes it
detection:
  selection_time:
    CommandLine|contains: 'time'
    Image|endswith:
      - '\net.exe'
      - '\net1.exe'
  selection_w32tm:
    CommandLine|contains: 'tz'
    Image|endswith: '\w32tm.exe'
  condition: 1 of selection_*

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 E.M. Anhaus (originally from Atomic Blue Detections, Endgame), oscd.community, 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.

Command lines that trip it

everyday examples from tldr-pages, CC BY 4.0, each read by CmdID

To add a user account for Jay Samson (user name: jays), with sign in rights from 8 AM to 5 PM, Monday through Friday, with the mandatory password Cyk4^g3B, and use the user's full name, run the following command on the page for net user

net user jays Cyk4^g3B /add /passwordreq:yes /times:monday-friday,8am-5pm /fullname:"Jay Jamison"Identify

To set the sign-in time from 8 AM to 5 PM for the username MikeD using 24-hour notation, run the following command on the page for net user

net user miked /time:M-F,08:00-17:00Identify

To set the sign-in time from 8 AM to 5 PM for MikeD using 12-hour notation, run the following command on the page for net user

net user miked /time:M-F,8AM-5PMIdentify

To specify sign-in hours of 4 AM to 12 PM on Monday, 12 PM to 8 PM on Tuesday, and 8 AM to 5 PM Wednesday through Friday for username AnibalS, run the following command on the page for net user

net user anibals /time:M,4AM-12PM;T,12PM-8PM;W-F,8AM-5PMIdentify

Programs and files it names

their pages here

ATT&CK

the techniques it is tagged with
T1124System Time Discovery