US officials are investigating whether a massive cyber attack on the federal government's personnel office originated in China, a source familiar with the matter said on Thursday.