The attackers have apparently been targeting Microsoft SQL database servers to mine cryptocurrency for two years.