I have just got rid of MacOSDefender, which was making Google searches in the Safari browser redirect to Bing search results. Tried everything that could find, scanned with Sophos and Malwarebytes - the MacOSDefender persisted as did its Google to Bing redirects. I could see that MacOSDefender was running, but couldn't find it in Apps or elsewhere to delete.
Solution was downloading the diagnostic tool recommended already here: EtreCheck on the Mac App Store
Downloaded the EtreCheck app from the App store (free) and ran the software to generate a diagnostic report of what was happening on my computer. One set of results are grouped into Major problems, I looked at that.
Under this Major (or something like that) heading, there were 3 or 4 headings for problems it found. I clicked on Unknown issues and examined the list. At the bottom could see the problem MacOSDefender had been found and id'ed as a potential problem.
EtreCheck was unable to remove the offending file with a click, but did provide easy steps to manually remove it:
1) Restart computer in Safe Mode (hold Shift until your user name appears on restart)
2)Generate a new EtreCheck report
3)Click the Reveal config file button to open a Finder window with the launched config file selected (the one with MacOSDefender)
4)Drag the file to Trash
5) After all desired files have been removed, restart your computer
Good luck..., M