While antivirus software can detect and block some versions of WannaCry, it’s not foolproof. The best defense is a multi-layered approach, including software patches, backups, firewalls, and employee awareness.