githubEdit

unquoted-service-path

When a service is installed, the registry configuration specifies a path to the binary that should be executed on service start. If binary is not encapsulated within quotes, windows will attempt to locate the binary in different folders.

Searching for unquoted service paths

wmic service get name,displayname,pathname,startmode | findstr /i "auto" | findstr /i /v "c:\windows\\" | findstr /i /v "\""
								OR
wmic service get name,pathname,displayname,startmode | findstr /i "auto" | findstr /i /v "c:\windows\\"

Tool

 Invoke-AllChecks

E.g., Path

C:\Program
C:\Program Files
C:\Program Files (x86)\System
C:\Program Files (x86)\System Explorer\service\SystemExplorerService64

Know about the service starting time (to get to know about the service if it runs under system privileges)

sc qc <service Name>
			              OR

Query service

Check folder permissions

Start service

Checking for weak service ACL in registry

Changing Imagepath with powershell

Modifiable registry autorun binary (check start-up programs)

Lear more about this methodarrow-up-right

Last updated