Yes, Hyper-V is safe to use! Ransomware can be safely handled within a Hyper-V VM; just that you need to be more cautious. Depending on the type of ransomware attack, the ransomware may use the VM's network connection to seek out network resources to attack.