Photo from fb.ru

The report comes at a time when several Western governments, including the United States, France and Britain, have accused Russia of resorting to hacking to influence elections -- allegations Moscow has repeatedly dismissed as baseless, Reuters reported.

A report from the Danish Defence Intelligence Service's unit for cyber security said "a foreign player" had spied against Danish authorities and gained access to non-classified documents.

It did not name the country behind the espionage, but Foreign Minister Claus Hjort Frederiksen told Berlingske it was Russia.

"It is linked to the intelligence services or central elements in the Russian government, and it is a constant battle to keep them away," Frederiksen told the newspaper.

Read alsoU.S. charges Russian spies, criminal hackers in Yahoo intrusionA spokeswoman from the Danish Defence Ministry confirmed that the minister had been quoted correctly but said he would give no further comments for the time being.

Spokespeople at the Kremlin were not available to comment on Sunday.

Frederiksen told Berlingske the hacking had been possible due to insufficient security around emails with non-classified material, something that has since been improved.

Read alsoDef. Ministry comments on Russian hackers' 'attack' on AFU artilleryThe group behind the attack went under the name APT28 or Fancy Bear and was one of two groups which allegedly gained illegal access to U.S. democrats' emails last year, according to Berlingske.

Frederiksen said in January that Denmark plans to increase military spending in response to Russian missile deployments in the Baltic region that it perceives as a threat.