"We will not allow North Korea to undermine global cybersecurity to advance its interests and generate illicit revenues in violation of our sanctions," Treasury Secretary Steven Mnuchin said in a statement. "The United States is committed to holding the regime accountable for its cyberattacks and other crimes and destabilizing activities."

WannaCry affected hundreds of thousands of computers in more than 150 countries last year and the Sony Pictures hack resulted in leaked films, scripts, employee information, internal emails and company passwords. It also led to the cancelled release of the film The Interview. In 2016, hackers breached the Bangladesh Bank's servers and made off with $81 million.

The DOJ unsealed a criminal complaint against Hyok today that alleges he was involved in a number of other cyberattacks that targeted South Korean figures and Lockheed Martin.