Net.EXE Execution
A Sigma rule for process creation on Windows, from SigmaHQ’s threat hunting rules, by Michael Haag, Mark Woan (improvements), James Pemberton / @4A616D6573 / oscd.community (improvements).
low 10 ATT&CK techniques 3 programs it names 10 everyday examples trip it
What it looks for
detection:
selection_cli:
CommandLine|contains:
- ' accounts'
- ' group'
- ' localgroup'
- ' share'
- ' start'
- ' stop '
- ' user'
- ' view'
selection_img:
- Image|endswith:
- '\net.exe'
- '\net1.exe'
- OriginalFileName:
- 'net.exe'
- 'net1.exe'
condition: all 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 Michael Haag, Mark Woan (improvements), James Pemberton / @4A616D6573 / oscd.community (improvements), 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
Add a user to the local security group (run in elevated console) on the page for net
net localgroup "Administrators" username /addIdentifyTo display a list of all user accounts for the local computer, run the following command on the page for net user
net userIdentifyTo display information about the user account TommyH, run the following command on the page for net user
net user tommyhIdentifyTo 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"IdentifyTo 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