are onedrive files safe from ransomware?
OneDrive for Business can be used as a protection mechanism against ransomware. ... So OneDrive itself doesn't prevent ransomware attacks, but in the event of an attack you can use OneDrive to restore previous versions of files. The version history feature of OneDrive only supported Office file types until recently.