German security services have admitted they uncovered a Russian cyberattack in December. Sources say the malware had been planted up to a year earlier.
The German government admitted on Wednesday that the Foreign and Defense ministries had been infiltrated by Russian hacking group APT28.
Citing anonymous sources, the German news agency dpa reported the group likely placed a piece of malware on a key government network. The malware could have remained the government's networks for as long as a year, security officials said, according to Deutsche Welle.
The German Interior Ministry confirmed the breach.
The targeted ministries had since taken necessary measures to investigate the attack and protect their data, the spokesman added.
How much data was intercepted over the time remains unclear.
Read alsoReport: Dutch spies caught Russian hackers on tape – VOA
APT28, also known as Fancy Bear, has been linked to Russian military intelligence. The group was identified as the likely source of an attack on the German parliament in 2015, and NATO and governments in eastern Europe.
Read alsoU.S. intel chiefs warn Russia intending to meddle in midterm elections – media
German officials had feared that a trove of private documents could be released ahead of last September's federal elections, as happened just before the final round of the French election in May. However, those fears proved unfounded.