Apple Inc. said it never worked with the National Security Agency to create a back-door way for the organization to spy on iPhone users and it was unaware of any program to target its products.

The company issued a statement Tuesday in response to a leaked document alleging that the NSA had targeted Apple's iPhones in a spyware program called "DROPOUTJEEP" in 2008. The document said once the software was installed on an iPhone, it had the ability to access the device's data, activate the phone's microphone or camera,...