Secretary of State John Kerry called the incident an "attempted intrusion" that was still under investigation.

The report has not officially been confirmed by the US homeland security.

Both countries have long accused each other of cyberspying.

The US acknowledges that it conducts espionage but says unlike China it does not spy on foreign companies and pass what it finds to its own companies, the BBC's China editor Carrie Gracie says.

Beijing typically shrugs accusations off as a smear motivated by those who find its growing technological might hard to bear, our correspondent adds.

Mr Kerry told the Associated Press news agency on Thursday he and Treasury Secretary Jack Lew, who are in China as part of an annual forum between the two governments, were only notified of the accusation of wrongdoing after the gathering's conclusion.

"We did not raise it in specific terms," he said about the latest accusation, adding it did not appear sensitive material was compromised. "We raised the subject, obviously."

An unnamed official told the New York Times that the March attack was traced to China, but it is unclear if the latest accusation was connected to the government - a China spokesman said it was "resolutely opposed" to internet hacking.

"Some of the American media and cyber-security firms are making constant efforts to smear China and create the so-called China cyber threat," Foreign Ministry spokesman Hong Lei said.