Australian PM Scott Morrison says the country’s major political parties and parliament were hit by a “malicious intrusion” on their computer networks.
The activity was carried out by a “sophisticated state actor”, he said.
But he added there was “no evidence of any electoral interference”. The nation will hold an election within months.
Mr Morrison’s comments follow an investigation into the hacking attempt, which was first thought to involve only the parliament’s servers.
“During the course of this work, we also became aware that the networks of some political parties – Liberal, Labor and Nationals – have also been affected,” he told the House of Representatives on Monday.
The prime minister did not say which foreign state, if any, was under suspicion. He said he would not provide additional detail on “operational matters”.
The Australian Cyber Security Centre said that although party systems had been compromised, it was not yet known if information had been stolen.
Australia ‘not exempt’
Mr Morrison, who leads the Liberal-National coalition, said: “We have put in place a number of measures to ensure the integrity of our electoral system.”
He added that security officials had briefed the nation’s electoral bodies and would provide support to all political parties.
Labor leader Bill Shorten said the cyber-attack was “of grave concern” following instances of “malicious activity” in other nations.
“We cannot be complacent and, as this most recent activity reported by the prime minister indicates, we are not exempt or immune,” he said.
The Australian government has faced a number of cyber-attacks in recent years, some of which have been attributed in local media to nations such as China.
In 2015 and 2016, there were high-profile attacks on the government’s weather and statistics agencies. In 2011, senior Australian ministers also had their email systems breached.
In the attack on the parliament’s computer network two weeks ago, officials had said there was “no evidence” that information had been accessed or stolen.
However, politicians’ passwords had been reset as a precaution.