How tech companies prepare for cyber attacks