It was done using pegasus exploit from NSO. A missed video call to the target on WhatsApp was all that necessary to deliver the payload, escape the sandbox & exploit the operating system.
What WhatsApp & CitizenLab said to the victims in India about the attack[0].