NEW YORK (TheStreet) -- Apple (AAPL) - Get Report repaired a security flaw in its iPhones and iPads on Thursday after human rights activist Ahmed Mansoor's phone was the target of a thwarted text message hack, Reuters reports.

The text sent to Mansoor's phone included a link, which would have installed software to take advantage of unknown flaws in the iPhone 6, researchers at the University of Toronto's Citizen Lab said in a report cited by Reuters.

Mansoor is a prominent United Arab Emirates dissident.

"Once infected, Mansoor's phone would have become a digital spy in his pocket, capable of employing his iPhone's camera and microphone to snoop on activity in the vicinity of the device," Citizen Lab wrote in the report.

The program could also record messages from Facebook's (FB) WhatsApp and listen to Viber calls while also tracking Mansoor's movement.

The strong spyware is the first-known incident of software with the ability to remotely take control of a fully updated iPhone 6.

Since being alerted of the security breach last week, Apple has developed a fix to the flaws and released an automatic update to all iPhone 6 owners.

Shares of Apple were down in pre-market trading on Friday.

(Apple is a core holding of Jim Cramer's charitable trust Action Alerts PLUS. See all of his holding with a free trialhere.)

Separately, TheStreet Ratings objectively rated this stock according to its "risk-adjusted" total return prospect over a 12-month investment horizon. Not based on the news in any given day, the rating may differ from Jim Cramer's view or that of this articles's author.

TheStreet Ratings rated this stock as a "buy" with a ratings score of B+.

The company's strengths can be seen in multiple areas, such as its largely solid financial position with reasonable debt levels by most measures, expanding profit margins and notable return on equity. We feel its strengths outweigh the fact that the company has had lackluster performance in the stock itself.

You can view the full analysis from the report here: AAPL

Image placeholder title