Apple pioneered the idea of "app stores," where operating system vendors got to decide who could distribute software that ran on their platforms, arguing that these "curated" stores would ensure high quality and protect users from malicious and inferior code.
A now-fixed bug in Ios caused Chinese-localized Iphones to reboot any time the user tried to enter the character combination for a Taiwanese flag or the word "Taiwan"; the bug was caused by Apple's China-only censorship and surveillance software.
An indictment in the US District Court for the Northern District of Ohio's Eastern Division alleges that Phillip R Durachinsky created a strain of MacOS "creepware" called Fruitfly, which was able to covertly operate the cameras and microphones of infected computers as well as capturing and sharing porn searches from the infected machines; the indictment alleges that Durachinsky used the software for 13 years, targeting individuals, schools, and federal agencies including the Department of Energy.
If you run the Shazam song identification app an Mac, the mic will never switch off, even when the program reports that it has.