Allegations that China was engaged in computer espionage worldwide are "lies" fabricated by people aiming to tarnish the rising Asian giant, the foreign ministry said on Tuesday.
"Some people outside of China are bent on fabricating lies of so-called Chinese computer spies," ministry spokesman Qin Gang told journalists.
"Their attempt to tarnish China with lies is doomed to failure."
Qin had been asked to respond to a report by Canadian researchers that said a shadowy cyber-espionage network based mostly in China had infiltrated government and private computers around the world.
The network, known as GhostNet, infected 1,295 computers in 103 countries and penetrated systems containing sensitive information in top political, economic and media offices, the researchers said in a report.
The report by Information Warfare Monitor was commissioned by the office of the Dalai Lama, the exiled Tibetan spiritual leader, which was alarmed by possible breaches of security in the computer systems of his exiled government.
The 10-month investigation by specialists based at the University of Toronto found the spying was being done from computers based almost exclusively in China.
But researchers said that while the findings were disturbing there was no conclusive evidence the Chinese government was involved, highlighting that China now had the world's highest number of Internet users.
Qin insisted that the Chinese government has always been opposed to criminal activity on the Internet, including hacking into the computers of others.
He said a "Cold War" attitude towards China persisted overseas, which viewed its rise as a global power as an international threat.
"Outside China there is a ghost called a Cold War ghost and a virus called the China threat," Qin said.
"People haunted by the Cold War ghost occasionally suffer a seizure caused by the China threat virus."