Apple now sends alerts directly to iPhones when it detects government-grade spyware like Pegasus targeting a user. https://support.apple.com/en-us/102174