The hackers were working with a unit in the Russian Main Intelligence Directorate, according to the DOJ.