The U.S. National Security Agency was developing a software implant in 2008 for Apple iPhones that allowed the agency to take almost total control of the device, including retrieving text messages and voicemail and remotely turning on its microphone and camera, according to a report by Der Spiegel.