How to protect Time Machine backups from Ransomware?
Probably the best low-impact solution is to use multiple disks. OSX supports it already.
You could keep a regular disk plugged in, and use the second disk on a weekly basis (keeping it unplugged and in a safe location). If your backup gets compromised you only risk losing a week's worth of work.
Also, keep your backups encrypted!