Weak Permissions
Here would be an examples of weak permissions abuse
Permissive File System ACLs
Running SharpUp
PS C:\> .\SharpUp.exe auditChecking Permissions with icacls
icaclsPS C:\> icacls "C:\Program Files (x86)\PCProtect\SecurityService.exe"Replacing Service Binary with malicious one
C:\> cmd /c copy /Y SecurityService.exe "C:\Program Files (x86)\PCProtect\SecurityService.exe"
C:\> sc start SecurityServiceWeak Service Permissions
Checking Modifiable Services with SharpUp
Checking Permissions with accesschk
accesschkChanging the Service Binary Path
Stopping & Starting the Service
Confirming Privilege Escalation
Resetting the Binary Path (Cleanup)
Unquoted Service Path
Finding Unquoted Service Paths
Permissive Registry ACLs
Checking for Weak Service ACLs in the Registry
Changing ImagePath with PowerShell
ImagePath with PowerShellModifiable Registry Autorun Binaries
Checking Startup Programs
Last updated