The US government has confirmed that its computer networks had been hit by a cyberattack, as The Washington Post reported at least two departments were targeted by Russian state hackers.

"We have been working closely with our agency partners regarding recently discovered activity on government networks," a spokesperson for the Cybersecurity and Infrastructure Security Agency told AFP.

"CISA is providing technical assistance to affected entities as they work to identify and mitigate any potential compromises."

The Post said the hacks were linked to an attack last week on cybersecurity firm FireEye, which said its own defences were breached by sophisticated attackers who stole tools used to test customers' computer systems.

FireEye said it suspected the attack was state-sponsored.

US media reports also said the FBI was investigating a group working for the Russian foreign intelligence service, SVR, and that breaches had been taking place for months.

The same group also reportedly hacked US government agencies during the Obama administration.

"The United States government is aware of these reports and we are taking all necessary steps to identify and remedy any possible issues related to this situation," National Security Council spokesman John Ullyot said.

Russia's embassy in the US hit back later Sunday against what it said were the "unfounded" media claims, denying any role in the alleged attacks.

"Malicious activities in the information space contradicts the principles of the Russian foreign policy, national interests and our understanding of interstate relations," the embassy said in a statement on its official Facebook page.

"Russia does not conduct offensive operations in the cyber domain."

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.