Apple: We had no role in NSA's alleged iPhone hack

Getty Images

Apple says it played no role in the National Security Agency's alleged efforts to hack the iPhone, explaining that it was unaware of a recently revealed program apparently aimed at turning the best-selling smartphone into an improvised listening device.

(Read more: NSA hacks Microsoft error messages: Report )

The company, based in Cupertino, Calif., said Tuesday that it had never worked with the NSA to deliberately weaken its products, promising that Apple would "defend our customers from security attacks, regardless of who's behind them."

Apple's statement follows the disclosure by privacy advocate Jacob Appelbaum of a leaked document describing an NSA-designed "software implant" intended to turn an iPhone into a pocket-sized informer, secretly recording audio, stealing files and harvesting contact information.

The revelation was one of series of disclosures that have rattled the NSA in the past six months.