When we run a command by sudo, the password is asked
[sudo] password for user
If the sudo is not typed the password should not be asked. If asked, I would assume it as a fraud by the application.
How about graphical applications which ask us password through a GUI? If asked for password, how can we differentiate between Linux original password dialogue or a dialogue generated by the application to look like Linux one?