Microsoft was breached in the massive hacking campaign disclosed by US officials this week, according to people familiar with the matter, adding a top technology target to a growing list of vital government agencies.