The Trump administration has acknowledged reports that hackers supported by a foreign government have breached the U.S. Treasury Department and a section of the U.S. Department of Commerce. These reports come just days after President Donald Trump fired the nation's top cybersecurity official Christopher Krebs.

National Security Council spokesman John Ullyot emailed a statement to CNBC noting that the U.S. government is aware of the aforesaid reports. They are taking the required steps to identify and rectify any possible issues due to this situation. Aside from that, a Department of Commerce spokesperson confirmed the reports of the hack.

A Commerce spokesperson confirmed to CBS News that there had been a breach in one of the bureaus. The spokesperson went on to say that they have asked the Cybersecurity and Infrastructure Security Agency (CISA) and the FBI to investigate but refused to comment further on the matter at the time.

The complex cyber hack targeted the Treasury Department, aside from the Commerce Department’s National Telecommunications and Information Administration (NTIA), which is a U.S. agency that crafts internet and telecommunications policy, according to Reuters. Sources told the outlet that the elaborated hack led to a National Security Council meeting over the weekend.

According to reports, hackers used the organization's Microsoft Office 365 platform to keep an eye on members' emails for several months. Details about the information that has been compromised by the hackers are still scarce. However, The Washington Post linked the hack to a group representing the Russian foreign intelligence service.

Meanwhile, the FBI is investigating a group called the Cozy Bear or the APT29. The hackers may have also breached the State Department, the White House networks, and the Joint Chiefs of Staff during the Obama administration. Krebs, who led the Department of Homeland Security’s Cybersecurity and Infrastructure Security Agency, was responsible for leading the effort to make sure the U.S. elections were safe.

In a couple of tweets, Trump accused Krebs of giving a highly inaccurate statement regarding the security of the 2020 election last month. Trump, who refuses to accept the election results, made baseless claims that the election was subject to massive improprieties and fraud.

Twitter immediately marked his tweets with a warning citing the claim about election fraud is disputed. Moreover, the courts have repeatedly turned down lawsuits the Trump campaign and its supporters have brought over the recently concluded presidential election.