Yes, Defender can block ransomware attacks. Each version of Defender may have unique features designed to detect and prevent ransomware attacks. For example, Microsoft Defender for Office 365 includes protection against zero-day malware and phishing attacks.