A whistleblower has revealed that internal security services have used this spyware since 1438 AH (2017) to target prominent figures, both inside and outside the country.
A former member of Morocco's internal intelligence service has helped provide unprecedented information about how the North African state has used hacking software – including the Pegasus spyware – to target journalists, human rights defenders and French politicians, as well as ministers in the Spanish government and police officers.
The Pegasus programme, produced by the company NSO Group, which is based in Israeli-occupied territory, allows its operator to access all the contents of the targeted person's mobile phone, including emails, text messages and photos. The programme can also activate the phone's microphone and camera, turning it into a listening device.
Although NSO Group claims that Pegasus is sold exclusively to governments to help them track criminals and terrorists, there is confirmed information that it has been used by several states to target opponents, journalists, diplomats and politicians.
Morocco has long denied using Pegasus to target its critics at home or abroad, and has claimed that the journalists who investigated NSO Group were "unable to prove any link" connecting the country to the company.
However, evidence provided by a whistleblower – who worked for the General Directorate for Territorial Surveillance (DGST) in Morocco for nearly a decade – indicates that the country's internal security services began using Pegasus in 1438 AH (2017), and continued to use it against local and foreign targets over four years.
The testimony of this source, who is known by the pseudonym "Safir", forms the basis of a years-long investigation conducted by Moroccan journalist Hicham Mansouri, which led to a joint investigation by several media organisations, with technical support from Amnesty International's Security Lab.
The consortium – coordinated by Forbidden Stories and comprising 14 media organisations, including Le Monde, Haaretz, El Confidencial, Die Zeit and The Guardian – analysed material detailing Moroccan surveillance practices, from leaked emails and targeting records related to Pegasus and other spyware, to victim testimonies and internal training materials. Two other former Moroccan intelligence agents provided information and confirmed the facts; Safir's testimony is corroborated by leaked material, including the Pegasus Project dataset, which underwent digital forensic analysis by Amnesty International's Security Lab.
According to information gathered by the consortium, NSO representatives gave a lengthy and detailed demonstration of new technologies – including Pegasus – to senior Moroccan intelligence officials and technical experts at an expensive villa in Rabat in 1438 AH (2017). The source stated that the house was known as "FSSYS Villa", after FSSYS Maroc – then the Moroccan branch of the Emirati intermediary surveillance company al-Fahad – which regularly used the property for such demonstrations.
The data indicates that those attending the demonstration immediately recognised the "revolutionary" potential of Pegasus; its ability to hack remotely meant they would no longer need direct physical access to their targets' mobile phones. During the demonstration, NSO representatives hacked several test phones, activating cameras, switching on microphones and accessing data and messages remotely.
The whistleblower suggested that the spyware – which costs vast sums – was a gift from the United Arab Emirates. Safir said: "Millions mean nothing to the Emiratis; the UAE bought the programme and redistributed it to friendly intelligence agencies. You could say it's like a Netflix service: one friend pays the subscription, while the others use his account."
Before the DGST adopted Pegasus, the agency relied on a mix of traditional human intelligence methods, such as targeting computers in internet cafés, and even persuading shopkeepers to sell opponents mobile phones preloaded with other spyware. According to Safir, the new, expensive spyware was only used to target figures of exceptional importance, after all cheaper and less sophisticated options had been exhausted.
They say: "We never start with Pegasus; it is the beast's weapon."
Evidence gathered for the journalistic investigation – titled "The Pegasus Project: Inside the Moroccan Surveillance Machine" – reveals that four specific Moroccan mobile phone numbers were selected as Pegasus targets in Dhu al-Hijjah 1438 AH (September 2017), apparently to test the nascent system in Morocco. These numbers included lines linked to two DGST employees, and were apparently entered in order to assess the spyware's capabilities.
The leaked database – which was the subject of an earlier investigation within the Pegasus Project – shows that the entry of the phone numbers of Moroccan journalists and human rights defenders into the Pegasus system began in the same month, Dhu al-Hijjah 1438 AH (September 2017). Targeting soon began to extend beyond Morocco's borders.
The leaked database included a Spanish number belonging to Aminatou Haidar, a prominent human rights activist from Western Sahara, who was found to have been a Pegasus target since 1439 AH (2018). Traces of the same spyware were also found on a second phone belonging to Haidar in Rabi' al-Awwal 1443 AH (November 2021). At the same time, a Spanish phone number belonging to the journalist Ignacio Cembrero, whose work focuses on the Maghreb region, was included in the Pegasus Project database.
Overall, Pegasus Project records show that more than 200 Spanish mobile phone numbers were selected for targeting with Pegasus by the end user believed to be Morocco. In Ramadan 1443 AH (May 2022), the Spanish government revealed that the mobile phones of Prime Minister Pedro Sánchez and Defence Minister Margarita Robles had been infected with the Pegasus spyware during Ramadan and Shawwal 1442 AH (May and June 2021).
The targeting took place at a time when Madrid and Rabat were embroiled in a tense diplomatic dispute, over Spain's decision to allow the leader of the Polisario Front – which long fought for the independence of Western Sahara from Morocco – to receive treatment for COVID-19 in a hospital in northern Spain.
It was later found that the phones of Spanish Interior Minister Fernando Grande-Marlaska and Agriculture Minister Luis Planas had also been targeted.
Repeated judicial attempts to uncover the truth about the use of Pegasus to target members of the Spanish government have failed. The investigating judge initially closed the inquiry in Dhu al-Hijjah 1444 AH (July 2023), but reopened it a few months later after French authorities provided information on the use of Pegasus to hack the mobile phones of French ministers, deputies, lawyers and journalists.
However, he suspended the investigation again in Dhu al-Hijjah of last year (January of this year), citing the continued absence of cooperation from the Israeli occupation authorities – including their failure to respond to his request for a statement from NSO Group's chief executive – which he considered a breach of the "principle of good faith" between states.
Nevertheless, recent analyses point to the responsibility of Morocco's DGST for targeting senior Spanish politicians. Material gathered by the Pegasus Project – including court documents – shows that one of the attackers' accounts dedicated to Morocco's Pegasus system, which was used to target politicians, journalists and human rights defenders in France, was also used to target the phones of Robles and Grande-Marlaska.
Despite doubts about Morocco's involvement in the Pegasus targeting of Spanish politicians, Grande-Marlaska last year awarded Abdellatif Hammouchi, Director General of the DGST, the highest decoration bestowed by the Spanish Guardia Civil, a security force under both the Interior and Defence ministries. The move was not welcomed by one of the Guardia Civil's trade unions, which considered that awarding the prize to "a man who has faced international accusations of human rights abuses and espionage" was an insult to the dignity of the force's officers.
More damning still, leaked documents, images and testimonies – issued by Spanish security forces and by a former Moroccan intelligence agent – indicate that the DGST used its technical expertise to try to access the communications of Guardia Civil officers who had, as they claimed, travelled to Morocco to exchange counter-terrorism expertise.
The personal phone number of a senior Guardia Civil officer appeared five times on the list of targets selected for monitoring via Pegasus by the end user believed to be Morocco.
In this context, a former DGST officer told the journalistic consortium: "We spy on everyone", adding that these targeted surveillance operations were carried out "as a precaution". For its part, a senior Guardia Civil official described the disclosure of the espionage that targeted his force as "treason".
Although officers of Spain's other national law enforcement agency, the Policía Nacional, follow strict precautionary measures when travelling to Morocco – including using separate portable devices to handle sensitive information – Guardia Civil personnel did not believe such precautions were necessary when cooperating with an ally.
A senior Guardia Civil intelligence officer said: "We did not do that because we did not suspect that we might be spied on."
Further evidence of Morocco's use of Pegasus emerged last year, after Meta, the owner of WhatsApp, filed a lawsuit against NSO Group in the United States, accusing it of exploiting its messaging platform to target individuals. A presentation document – disclosed after its confidentiality was lifted with some information redacted – submitted to the board of Q Cyber Technologies, NSO Group's parent company, in Dhu al-Qa'dah 1439 AH (early August 2018), contained a list of code names for Pegasus end users.
According to reports published by the Israeli newspaper Haaretz, the countries that use Pegasus are assigned a name based on the first letter of the country's name and the name of a car manufacturer; for example, the name "Subaru" was previously used to refer to the Kingdom of Saudi Arabia. Now, the name "Morgan" has been shown to refer to Morocco, after former NSO employees confirmed to the journalistic consortium that Morocco was a Pegasus end user known by this code name.
In Rabi' al-Awwal 1443 AH (November 2021), NSO Group was placed on the US blacklist after the administration of Joe Biden concluded that the company had acted "contrary to the foreign policy and national security interests of the United States". Three weeks later, the Israeli economic newspaper Calcalist reported that the Israeli occupation's Ministry of Defence claimed it had banned the export of Israeli cyber technology to a number of countries, including Morocco and the United Arab Emirates.
NSO Group, the Moroccan government, the authorities of the United Arab Emirates, and the al-Fahad parent company were contacted for comment on the matter, as were the Spanish government and its interior, foreign and defence ministries.
The Guardian.




