This is “crazy stuff!!” See the Motherboard article here Ransomware Forces Two Chemical Companies to Order ‘Hundreds of New Computers’
While there is no single mitigation strategy to guarantee the prevention of cyber security incidents it’s fair to say the basics of securing a network and its resources were most likely not covered off appropriately by these two organisations.