Briefing
When you type a command like ls, the shell does not immediately execute /usr/bin/ls.
It follows a resolution chain, checking aliases first, then functions, then builtins, and finally the $PATH.
An attacker who gains write access to a user's ~/.bashrc or ~/.bash_profile can inject a
malicious alias that shadows a legitimate binary. The user sees the command they expect, but the shell executes the attacker's payload.
Aliases sit at the top of the chain. They win every time.