A former US cybersecurity official estimates North Korea earns 25% of its GDP through ransomware cyberattacks.