So, you send someone a script... And they just run it?
If they do, then it doesn't matter if it uses/fakes sudo, or not. They have some bigger problems.
If they do, then it doesn't matter if it uses/fakes sudo, or not. They have some bigger problems.
I have some extra user accounts that I can sudo into to run scripts, plugins etc from e.g., github that I trust somewhat but not 100 percent. In case they do start mining bitcoins or sending spam mail I will find out and stop it.