MacBook Pro randomly force shuts down - malware
I have a mid to late 2014 MacBook Pro that was recently infected with a form of malware that would force both Safari and Chrome to randomly open windows with ads. I believe it was a malware that masked itself as an Adobe Flash Player installer. (Yeah I know lol).
in the process of removing any malware and associated files with Malwarebites and another trusted antivirus scanner, the browser problems have disappeared, as well I deleted a program that would allow remote access that I never installed. Found all associated files to this, and removed them. So far, malware wise, they have been successfully removed.... except for on serious side effect.
While in normal mode, the MacBook will randomly forcefully shutdown. It will happen as if someone is pressing and holding the power button. I have tried to source this problem unsuccessfully. Now if I leave the MacBook alone, it will take 15-20 minutes to happen. If I begin doing something, even in Parallels Windows, the shutdown will happen randomly within 10 minutes. The more you work, the sooner a shutdown will happen. If I boot to Safe Mode, it will not happen.
due to limitations of space and external drives, reinstalling iOS is out of the question at this point. Instead, I need to know where to look to stop this shutdown.
MacBook Pro 15", macOS 10.13