Suspicious Service Path Modification

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects service path modification via the "sc" binary to a suspicious command or path

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND PROCESSNAME endswith "\sc.exe" AND (COMMANDLINE contains "config" AND COMMANDLINE contains "binPath") AND COMMANDLINE contains "powershell,cmd ,mshta,wscript,cscript,rundll32,svchost,dllhost,cmd.exe /c,cmd.exe /k,cmd.exe /r,cmd /c,cmd /k,cmd /r,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

Victor Sergeev, oscd.community, Nasreddine Bencherchali (Nextron Systems)