U.S. Justice Department officials said on Thursday they have charged and sanctioned a North Korean man in the 2017 global WannaCry ransomware cyberattack and the 2014 cyberassault on Sony Corp.