I see a lot of people in the comments conflating legal requests and attacks. Regardless of your opinion on either of those issues, they are different things.
By "legal request" I mean requests made through channels of the law. These things aren't "attacks" because they're functionally not attacks. 'Cooperation' is the antithetical to 'attack'.
For example, when China demanded that iCloud for Chinese users was handed over to GCBD[0], and Apple complied, it was not, in any way, something that would be accurately described as an "attack". Apple cooperated with the demands that the legal environment presented.
If Apple learns of NSA surveillance of a specific individual... maybe? Beyond that what are you suggesting they do, send an alert to everyone in the US that the NSA might be spying on them?