> The MS security software (for better or worse), is better than any open-source linux solution

is it able to detect ransomware ?

Seeing MS and security in the same sentence makes me suspicious.

Yes. Their security products are not terrible outside the fact many are acquisitions that have been shoehorned poorly into InTune.