Ransomware attack sparks surge in demand for specialist shares