logoalt Hacker News

novafuncyesterday at 5:18 PM1 replyview on HN

Any user process can append anything they want to your shell rc (.bashrc, .zshrc). In this case, they added a bash function for a fake sudo prompt. It then uses the password the user entered to run a malicious payload as root.


Replies

silver_sunyesterday at 6:11 PM

If you're running a malicious user process with write (or read) access to your files, you are arguably already compromised.

show 2 replies