Kaspersky recently reported on a new mobile Advanced Persistent Threat (APT) campaign that specifically targets iOS devices via iMessage. Following the six-month investigation, the company’s researchers have published an in-depth analysis of the exploitation chain and uncovered details of the spyware implant operation. The implant, dubbed TriangleDB, is deployed by exploiting a kernel vulnerability to acquire root privileges on the targeted iOS device. Once deployed, it operates solely in the device’s memory, hence traces of the infection disappear upon the device reboot. Consequently, if the victim restarts their device, the attacker needs to reinfect it by sending another iMessage with a malicious attachment, initiating the entire exploitation process once again. If no reboot occurs, the implant will automatically uninstall itself after 30 days, unless the attackers extend this period. Operating as complex spyware, TriangleDB performs a wide range of data collection and monitoring capabilities.
In total, the implant includes 24 commands with diverse functionalities. These commands serve various purposes, such as interacting with the device’s filesystem (including file creation, modification, exfiltration, and removal), managing processes (listing and termination), extracting keychain items to gather victim credentials, and monitoring the victim’s geolocation, among others.
While analyzing TriangleDB, Kaspersky experts discovered that the CRConfig class contains an unused method called populateWithFieldsMacOSOnly. While not utilized in the iOS implant, its presence suggests the possibility of targeting macOS devices with a similar implant.
“As we delved into the attack, we discovered a sophisticated iOS implant that displayed numerous intriguing oddities. We continue analyzing the campaign and will keep everyone updated with further insights into this sophisticated attack. We call upon the cybersecurity community to unite, share knowledge and collaborate to get a clearer picture around the threats out there,” comments Georgy Kucherin, security expert at Kaspersky Global Research and Analysis Team (GReAT).
To learn more about TriangleDB spyware, visit Securelist.com.
Kaspersky researchers have released a special ‘triangle_check’ utility that automatically searches for the malware infection. For a detailed guide on how to check your device, read the blogpost.
In order to avoid falling victim to a targeted attack by a known or unknown threat actor, Kaspersky researchers recommend implementing the following measures: