As tech giants grow fearful of the mounting threats, some of the largest companies have started ramping up their spending on security – even hiring armed guards to travel with top executives.