Ransomware will infect a computer and encrypt all of the data to make it inaccessible. It can come as a payload with a worm that can spread across an entire network.