BEIJING (Reuters) - Cyber attacks against the United States from China are eroding the country's credibility and scaring off potential foreign investors afraid of losing their intellectual property, a senior U.S. official said on Tuesday.