Ransomware is a malicious piece of software that infects a machine and encrypts its files, making them inaccessible until the user pays a ransom in Bitcoin. The ransomware spreads between machines by exploiting a leaked tool developed by the NSA that can attack multiple unsecure devices across a network of computers.