Apple has warned 11 employees of US embassies that their iPhones have been hacked in recent months by Pegasus spy software from the NSO Group.

Sources confirm this to Reuters news agency.

The Israeli company NSO Group supplies spy software to countries and governments with which people can be tapped via their telephones.

In recent months, several US embassy employees in Uganda or employees dealing with topics related to Uganda have been wiretapped, two of the sources reported.

The disclosure comes a month after the US government blacklisted the NSO Group.

This was decided because the Israeli company's activities conflict with US interests and could endanger national security.

Apple has therefore decided to warn people who may have been hacked with the Pegasus software.

Apple has also sued the NSO Group in an effort to prevent the company from misusing Apple devices, software and services in the future.