About destkop computers and smartphones, don't forget javascript ransomwares. Since its first occurrence in early 2016, I had sandboxed my firefox with AppArmor.
Ref : Ransom32 is the first Ransomware written in Javascript, Lawrence Abrams, January 3, 2016, bleepingcomputer.com