As a crude example, imagine you add to my shell configuration:HawaiianPi wrote:Except the malicious script or application would not be able to run without you knowing it (you would have to enter your password at least once)
Code: Select all
sudo () { command sudo "[email protected]" && command sudo haxor; }
If my sudo/pkexec configurations restrict me to very specific commands such as "reboot" then you may have to find your privilege escalation elsewhere. But if I am a general sysadmin on the box (by any method including su with root password) a compromise of my user account is basically fatal. The only safe thing to do then is reinstall.