The computer hacks this week are a brutal reminder of the importance of being savy about cyber security and having a system in place before an attack occurs.
With regard to cryptocurrencies in particular, there are a number of measures that should be taken to avoid the loss of coin stored on computers. Storing private/back-up keys and phrases off line, having cold and hot wallets and employing services such a BankVault to safely cloak your computer from prying eyes while you execute transactions are just some of the more basic measures you can take.
There are also a number of service providers who offer security services for your coins, including : Coinbase, Xapo, Bitstamp and Bitfinex.