Windows 10 has a built-in ransomware block, you just need to enable
Windows 10 includes a built-in antivirus system called Windows Defender. It is automatically enabled when you set up a new computer. This provides some protection against malware threats from the wild. Did you know that there is an optional layer that will protect your files in the event of ransomware? You will need to enable ransomware protection manually in Windows 10.
Or more specifically, a feature called ‘Controlled folder access.’