What is this strange process `qemu` connecting to minergate.com?
Qemu is a virtual emulator. Minergate is mining software. As mentioned it is probably installed via something you installed by Homebrew.

I would recommend a AntiVirus