China-based hackers have gained access to the email accounts of about 25 organisations, including government agencies, Microsoft says.
The software giant has not provided details of where the government agencies are based.
However, the US Department of Commerce has confirmed to the BBC that Microsoft notified it about the attack.
Secretary of Commerce Gina Raimondo was among the individuals impacted by the breach, according to reports.
"Microsoft notified the Department of a compromise to Microsoft's Office 365 system, and the Department took immediate action to respond," a US Department of Commerce spokesperson told the BBC.
"We are monitoring our systems and will respond promptly should any further activity be detected," they added.
US media reported that the State Department had also been targeted by the hackers.
The State Department did not immediately respond to a BBC request for comment.
China's embassy in London told the Reuters news agency that the accusation was "disinformation" and called the US government "the world's biggest hacking empire and global cyber thief."
Microsoft said the China-based hacking group - which it refers to as Storm-0558 - had accessed email accounts by forging digital authentication tokens required by the system. The tokens are typically used to verify a person's identity.
"Storm-0558 primarily targets government agencies in Western Europe and focuses on espionage, data theft, and credential access," the firm said.
The company said its investigations found that the breaches began in the middle of May and that it has now "mitigated the attack and have contacted impacted customers."
"We added substantial automated detections for known indicators of compromise associated with this attack... and we have found no evidence of further access," it added.
In May, Microsoft and Western spy agencies said Chinese hackers had used "stealthy" malware to attack critical infrastructure on American military bases in Guam.
Experts said it was one of the largest known cyber espionage campaigns against the US.
A key US military outpost, Guam's ports and air bases would be crucial to any Western response to a conflict in Asia.
Beijing called the Microsoft report "highly unprofessional" and "disinformation".
China routinely denies involvement in hacking operations regardless of the available evidence or context.
Latest Stories
-
Body of Ghanaian teen who died under suspicious circumstances in Latvia returned home
6 minutes -
The Self-Defeating spiral of regulatory technology?
20 minutes -
Police launch investigation into fatal shooting of Kusasi Chief in Asawase
24 minutes -
WAFCON 2024: ‘This one really hurt’– Jennifer Cudjoe reacts to semifinal loss
28 minutes -
Former Black Queens coach Nora Häuptle was overhyped – Former GFA EXCO Member
36 minutes -
WAFCON 2024: ‘Build on this and you’ll be champions’ – Kurt tells Black Queens
1 hour -
Kelvin Taylor deserved fair hearing before arrest warrant – UGBS Lecturer
1 hour -
NRSA orders immediate removal of billboards in road medians over safety concerns
1 hour -
Duffuor Case: Accepting 60% recovery undermines justice and accountability – Sulemana Braimah
1 hour -
WAFCON 2024: Sports Minister lauds ‘courageous’ Black Queens performance against Morocco
2 hours -
Prices of some imported goods could be reduced in coming weeks – GIFF assures
2 hours -
Attorney-General to address uniBank case, asset recovery updates on Monday – Kwakye Ofosu
2 hours -
Duffuor Case: Manhyia South MP questions why State settled for only 60% recovery
2 hours -
Venus Williams, 45, becomes second oldest winner
2 hours -
WAFCON 2024: Ghana to face South Africa in third place play-off
2 hours