macOS root password & malware?
You can get and run Malwarebytes. This supposedly finds any malware on your Mac. If that finds nothing I'd look for a virus checker with a free trial period and run it as a secondary test. Here is a link to a review of Mac virus checkers. Malwarebytes can be found at this link.