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, intercept text messages or narrow down a user's location using cell towers.

"Apple has never worked with the NSA to create a backdoor in any of our products, including iPhone," the company said. "Additionally, we have been unaware of this alleged NSA program targeting our products. We care deeply about our customers' privacy and security. Our team is continuously working to make our products even more secure, and we make it easy for customers to keep their software up to date with the latest advancements."

The leaked document was dated October 2008, implying that these methods were for older devices running older versions of Apple's iOS operating system. A person familiar with the matter said Apple doesn't believe that such spyware has attacked its latest hardware—from iPhone 5 and beyond—or software including its iOS 7 operating system.

The document relating to Apple was part of a larger cache detailing ways the NSA can gain access to equipment made by Cisco Systems Inc., Juniper Networks Inc., and others.