"One computer and main server has been affected by the virus," IG Manoj Abraham, Nodal officer, Cyberdome told PTI.
As per the warning on the affected computer screen, the files have been encrypted and if it is to be retrieved, ransom in the form of bitcoin has to be remitted, he said.
It is suspected that the cyber attack has come from overseas.
Some affected files were restored using backup system, the police said.
In a 'ransomware' cyber attack in June this year, six computers of the Southern Railway office in Thiruvananthapuram had been hit by the 'WannaCry' virus but there was no data loss.
For the latest News & Live Updates on Election Results from each assembly constituency in Madhya Pradesh, Rajasthan, Mizoram, Chhattisgarh, Telangana, like us on Facebook or follow us on Twitter for updates.