If you are root, you can also strace the process and grab the password, without modifying anything.
If the platform isn't secure, the app can't be trusted. Basic defense rule.
If the platform isn't secure, the app can't be trusted. Basic defense rule.