One the nastiest threats of that kind is a potentially unwanted application (PUA) that takes over the main web navigation preferences in Safari, Google Chrome, or Mozilla Firefox and causes an incessant rerouting to Yahoo Search.
To get rid of malware, you need to purchase the full version of Combo Cleaner.
The free scanner checks whether your Mac is infected with Yahoo redirect virus.