Does dataGuard protect OneDrive folders from ransomware attacks or is it just meant for local files?
DataGuard can protect files under OneDrive. It restricts access to unknown apps and does not mess up OneDrive application livecycle.
By default this support is not enabled. To active it, add %userprofile%\OneDrive to protected folders.