Usually malicious software is pretty easy to remove from a Mac. But if you get something that has dug in like a tick, here is some witch hazel or cigarette embers you can use to get it out.
This page has a bunch of potential solutions. Read through the words because the advice given is meant to be done in a complete manner.
Enjoy!