This does not solve the whole problem, but nonetheless an important step. Never reveal the password or username on a command. The mount command can use a “credential’ file. As long as the file itself is secure, the username and password are now safe from ps -Af.