Conhost Spawned By Uncommon Parent Process

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects when the Console Window Host (conhost.exe) process is spawned by an uncommon parent process, which could be indicative of potential code injection activity.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND (PROCESSNAME endswith "\conhost.exe" AND PARENTPROCESSNAME endswith "\explorer.exe,\lsass.exe,\regsvr32.exe,\rundll32.exe,\services.exe,\smss.exe,\spoolsv.exe,\svchost.exe,\userinit.exe,\wininit.exe,\winlogon.exe") AND PARENTPROCESSCOMMANDLINE notcontains "-k apphost -s AppHostSvc,-k imgsvc,-k localService -p -s RemoteRegistry,-k LocalSystemNetworkRestricted -p -s NgcSvc,-k NetSvcs -p -s NcaSvc,-k netsvcs -p -s NetSetupSvc,-k netsvcs -p -s wlidsvc,-k NetworkService -p -s DoSvc,-k wsappx -p -s AppXSvc,-k wsappx -p -s ClipSVC,-k wusvcs -p -s WaaSMedicSvc" AND PARENTPROCESSCOMMANDLINE notcontains "C:\Program Files (x86)\Dropbox\Client\,C:\Program Files\Dropbox\Client" select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Tim Rauch, Elastic (idea)