A cryptocurrency miner botnet has infected more than half a million machines, hijacking them to mine as much as $3.6 million worth of monero.