From a New York Times story and additional reporting by Al Jazeera:
Known as Project Raven, hackers employed state-of-the-art cyber-espionage tools to help the UAE engage in surveillance of other governments, armed groups, and human rights activists critical of the monarchy.
Interviews by Reuters news agency in 2019 with former Raven operatives, along with a review of thousands of pages of project documents and emails, showed spying techniques taught by the NSA were central to the UAE’s efforts to monitor opponents.
Source: UAE spies monitored Michelle Obama, Sheikha Moza emails: Report | Cybercrime News | Al Jazeera
Background: One of the former U.S. spies aiding the Persian Gulf monarchy in spying on its domestic political opponents–not terrorists–is Richard Clarke, a former U.S. counterterrorism official under President George W. Bush.