(CNN) Hackers linked to the Iranian government attempted to attack a 2020 US presidential campaign, as well as current and former US government officials, Microsoft said Friday.

The group Microsoft calls "Phosphorus" attempted the hacks between August and September, but the hackers were not successful, the company said.

Microsoft did not say what campaign was targeted but said it had informed those involved. The New York Times reported on Friday that President Donald Trump's reelection campaign was the one that had been targeted.

Trump's reelection campaign said in a statement Friday that it has no indication any of its infrastructure was targeted by the hackers. Communications director Tim Murtaugh declined to say whether any authorities have reached out.

In a blog post Friday , Tom Burt, Microsoft's corporate vice president for customer trust and security, wrote that the targeted accounts also included current and former US government officials, journalists covering global politics and prominent Iranians living outside of Iran.

Read More