qemu-system-x86_64 runs 100% CPU

Hello,


I am having this issue with two tasks in Activity Monitor draining my CPU continuously running at 100%+ both.

qemu-system-x86_64

tools-service

Haven't seen these two before, I've run malware-adware programs but my system seems clear.

Also tried to force quit but it runs again right after.

Anyone with knowledge on this issue?


Thank you all in advance.


User uploaded file

MacBook Pro TouchBar and Touch ID, macOS Mojave (10.14), null

Posted on Oct 27, 2018 3:54 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 30, 2019 9:02 AM

After some digging, since I also have the same thing, I found that it is a crypto mining malware that can be bundled with software, notably pirated softs.


I checked out `"/usr/local/Cellar/qemu/3.0.0/bin/qemu-system-x86_64"` and found other files.


Check around for a couple other files. I found a background agent that is linked at `"/usr/libexec/AppleQEMUGuestAgent"`, which leads also to a .plist file at `"/System/Library/LaunchDaemons/com.apple.AppleQEMUGuestAgent.plist"`. Judging by the lines inside the plist, it probably is. Also, If you find that your mac fan is throttling but you are not using and heavy apps, it is also a very clear indicator that cryptocurrency mining malware is present. Good thing you deleted the binary.


Pressing `Command-Shift-G` and typing `"/System"` (no brackets for any of the directories). I then put in the search bar "qemu" and clicked on the "system" button instead of This Mac, and that is how I found a plist file that is stated. BUT PLEASE READ. Instead of searching qemu, I searched instead `"x86_64"` (no brackets). This brought up a couple files, like 8. Delete them too. If you check them out, they all seem to be linked to mining. check the files out yourself in an app such as TextEdit, and hopefully you will see the same. (CRED TO "edgytwelvie" for this)


ALL OF THE FILES STATED HERE SHOULD BE DELETED, well, at least I did. If you do not have nessasary perms, even when sudo, try disabling SIP, deleting the files, then RE-ENABLE SIP.


Hope this helps someone.


Sources(if u wanna check them out, i also did my own searching):

```

https://discussions.apple.com/thread/8602989

______

https://apple.stackexchange.com/questions/346172/what-is-this-strange-process-qemu-connecting-to-minergate-com/359046#359046

______

https://forums.developer.apple.com/thread/109460

______

44 replies

Nov 17, 2018 2:36 PM in response to stoke.monkey

stoke.monkey wrote:


I'm having the very same issue, following an installation of Albleton 10 from a torrent file. I assume you're referring to a clean install, or does simply removing Ableton and reinstalling OS X resolve the issue?


Assume all your passwords have been compromised, multiple backdoors have been installed, all of your contact data has been compromised, all of the passwords and all of the data in your mail archive has been uploaded and analyzed and that using automated tools for finding credit card information and passwords and other sensitive data, that your email contacts will be receiving spoofed email “from you”, and that your entire cache of photos has been uploaded. Prolly a few other things got swiped, too.


If yu’re very lucky, all of that didn’t happen. Best case, you mined some worthless cryptocurrency, or had your processor enlisted to crack passwords or some such, But given how automated the scammers are getting with their tools, that’s far from a certainty.


Wipe, reinstall, change all your passwords, etc.

Feb 12, 2019 5:05 PM in response to Macloni

Hi,

I had the problem since yesterday, after some investigation I found the solution by removing the following files from my system.

Just open a Terminal windows and use the following commands.


sudo rm -R /usr/local/cellar/qemu


sudo rm -R /Library/Application Support/.Qemusys

sudo rm -R /Library/Application Support/.System-Monitor

sudo rm /Library/LaunchDaemons/com.buildtools.system-monitor.plist

sudo rm /library/LaunchDaemons/com.buildtools.tools-service.plist

sudo rm /Library/LaunchDaemons/com.modulesys.qemuservice.plist

sudo rm /Library/LaunchDaemons/com.systools.cpumonitor.plist


then goto


cd /usr/local/bin/


sudo rm -R .Tools-Service

sudo rm cpumonitor

sudo rm system-monitor

sudo rm tools-service


Please be careful with these commands, they are dangerous if you enter them wrong.

Best is to cut and paste them on the command line.


And next time, buy software instead of ....


Apr 19, 2019 10:34 AM in response to Macloni

if anyone else is looking here for answers on this now I was able to remove it completely without reinstalling osx. if you follow these steps given by Edgytwelvie (steps below) (credit to him for savin my butt with this part). When you get to about step 10 and you find a QUEMU file ending in .KEXT and one ending in a .PLIST your mac will not allow you to delete this because they have imbedded themselves as essential to macs OS. so when you try to drag into the trash it might say "this operation cannot be completed because this file is required by OS." So to delete those you must reboot your mac into recovery mode by restarting it then holding command R. Once you are in recovery mode look up top for utilities then hit that and open terminal. you will need to type in csrutil disable it will ask for your password then it should disable it. now restart your mac NORMALLY and locate the qemu KEXT file and the qemu PLIST and throw them in the trash and empty the trash.. now reboot back into recovery mode as you did before.. open terminal and type csrutil enable and press enter... once you reboot normally your problem should be solved.. i would recommend shutting off laptop for a while before using it again.



STEPS:

1. Launch Activity Monitor and locate "qemu-system-x86_64"

2. Double click on it and on the bottom left of Activity Monitor click "Sample"

3. Once the sample has been taken, you should see lots of random digits which might intimidate you, but one of the subheadings in the sample should be called "Path:". Copy the path you see. My path was something like this: /usr/local/bin/qemu-system-x86_64

4. Launch Finder and simultaneously click "Shift" "Command" "G"

5. Paste the path that you copied from step 3 and click "Go"

6. This should locate a Qemu file, delete that immediately

7. For safe measure, we will now delete everything from your System which contains either the words "qemu" or "x86_64"

8. Press "Shift" "Command" "G" again and in the search box type "/system"

10. Where it says "search" on the top right of your finder, search for "qemu". For me this came up with nothing, but if you look closely that's because it's searching on "This Mac". Click the tab which allows you to search on the "System".

11. If this brings up a number of files, delete all of them. Make sure to empty your trash too. (if you cant delete them look up at the first body of text)

12. Repeat steps 10 & 11 but instead of searching for "qemu" search for "x86_64" (if you cant delete them look up at the first body of text)

13. Shut down your computer completely for a period of time. For me it was 10 hours, the time from when I slept to woke up the next day

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

qemu-system-x86_64 runs 100% CPU

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.