Binary Paths
Overview
Services sometimes have executables attached to them. If we have the right permissions to the service then we can change the binary path (executable file) to a malicious one.
Exploitation via Powershell
View services
View permissions
Mask
Permissions
F
Full access
M
Modify access
RX
Read and execute access
R
Read-only access
W
Write-only access
Replace service binary with malicious one then restart service
Exploitation using PowerUp
Run PowerUp on machine
Change the binary path
Start service
Exploitation via Accesschk64
Check for services with write permissions
Query the service
Changing the binary path is the same as the last method
Last updated