Security researchers at Trend Micro have discovered a new kind of Mac malware which can “command and control” a target system.
The researchers described the malware, which is part of the XCSSET family, as “an unusual infection related to Xcode developer projects.” The malware is unusual because it is injected into Xcode projects, and when the project is built, the malicious code is run. A developer’s Xcode project was found to be able to contain the malware, which “leads to a rabbit hole of malicious payloads.”
The discovery poses a significant risk for Xcode developers. Trend Micro identified developers affected by the malware who share their projects via GitHub, leading to a potential supply-chain attack for users who rely on repositories for their own projects. Google’s VirusTotal scanning software managed to identify the malware, which indicates the threat is at large.
Affected developers may unwittingly distribute the trojan to their users in the form of compromized Xcode projects and built applications. The malware is particularly dangerous because verification methods, such as checking hashes, would not identify infection as the developers would be unaware that they are distributing malicious files.
To protect against this type of threat, Trend Micro encourages users to only download apps from official marketplaces and consider multilayered security solutions.