The Times said that it withheld some of those details, at the request of U.S. intelligence officials, when it reported in summer 2012 on American cyberattacks on Iran.
Hong Lei, a spokesman for China's Foreign Ministry, said Wednesday that the U.S. "on one hand has been playing up the cyber threats from other countries, and on the other hand has been implementing cyber surveillance endangering the sovereignty, security and public privacy of other countries."
Hong called on the U.S. to "work with the international community to create international regulations and build a peaceful, safe, open and cooperative cyberspace."
At New Delhi's Institute of Defense Studies and Analyses, cybersecurity expert Cherian Samuel said, "If it had been any other country doing this kind of thing, the U.S. would have come down on them like a ton of bricks with punitive sanctions."
Associated Press researcher Yu Bing in Beijing and writer Nirmala George in New Delhi contributed to this report.