Chinese premier Wen Jiabao described reports of Chinese hackers breaking into German computers as a matter of "grave concern" and said Monday that his country will cooperate with Germany to resolve the matter.

Jiabao's comments, made during a press conference with German Chancellor Angela Merkel in Beijing, were prompted by a report published two days earlier in the German news magazine Der Spiegel claiming that Chinese hackers had been able to infect German government computers with spyware.

Merkel said that for Chinese relations with industrialized countries to move ahead, everyone needs to "respect a set of game rules" and "protect intellectual property rights."

Security experts from Germany's Federal Office for Information Security (BSI) and Federal Data Protection Office discovered Trojan horse programs in computers used in several government ministries, including the Foreign Ministry, the Ministry of Economics and the Research and Development Ministry, as well as Merkel's office, the report in Der Spiegel said.

Although the first Trojan horse software was detected in May, there are continued attempts to sneak spyware into government computers via the Internet, according to Spiegel.

Security experts monitoring data traffic were able to stop the transmission of a 160G-byte file from a German ministry to China, but no one would say if hackers succeeded in stealing other files, the magazine reported.

BSI and the Federal Data Protection Office declined to comment.

A spokesman at the Federal Ministry of the Interior, while declining to comment on the Spiegel story specifically, said that the federal government, in general, is aware of increased efforts to steal information from computers in the private and public sectors.

"We are making a huge effort to ensure that government systems remain protected from outside attacks," the spokesman said. "So far, we've been able to avoid any damage."

(Information from pool reporters located in Beijing was used in this report.)