Suspicious New Service Creation

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects creation of a new service via "sc" command or the powershell "new-service" cmdlet with suspicious binary paths

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND ((PROCESSNAME endswith "\sc.exe" AND (COMMANDLINE contains "create" AND COMMANDLINE contains "binPath=")) OR (COMMANDLINE contains "New-Service" AND COMMANDLINE contains "-BinaryPathName")) AND COMMANDLINE contains "powershell,mshta,wscript,cscript,svchost,dllhost,cmd ,cmd.exe /c,cmd.exe /k,cmd.exe /r,rundll32,C:\Users\Public,\Downloads\,\Desktop\,\Microsoft\Windows\Start Menu\Programs\Startup\,C:\Windows\TEMP\,\AppData\Local\Temp" select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Nasreddine Bencherchali (Nextron Systems)