PCMag editors select and review products independently. If you buy through affiliate links, we may earn commissions, which help support our testing.

New Mac Malware Spreads Via Xcode Projects From Software Developers

The attack can spread to other developers' Mac computers in the event they run or incorporate the malicious Xcode project into their own software products.

 & Michael Kan Principal Reporter

Our team tests, rates, and reviews more than 1,500 products each year to help you make better buying decisions and get more from technology.

Our Expert
LOOK INSIDE PC LABS HOW WE TEST
65 EXPERTS
43 YEARS
41,500+ REVIEWS

Hackers have been trying to hijack Mac computers by secretly placing malware inside software projects from third-party developers. 

The attacks have targeted projects created with Xcode, Apple’s software platform to develop apps for its various operating systems. Security researchers at antivirus vendor Trend Micro discovered two Xcode projects that were actually Trojan horses for malware. 

“In this case, malicious code is injected into local Xcode projects so that when the project is built, the malicious code is run,” Trend Micro wrote in a report. “This poses a risk for Xcode developers in particular.”

Xcode projects are often shared over GitHub, a popular website developers across the globe use to distribute their code. As a result, the attack can spread to other developers' Mac computers in the event they run or incorporate the malicious Xcode project for their own software products. 

Once the Trojanized Xcode project runs, it’ll attempt to install malware on the victim’s Mac. According to Trend Micro, the malicious code is capable of taking screenshots from the device, stealing files from the computer, and delivering ransomware, which can hold the computer hostage unless the victim pays up.  

The malware can also hijack the Safari browser to modify displayed websites, and capture information from visited web pages, including login credentials. 

It's unclear how the hackers initially slipped the malware into the Xcode projects. But Trend Micro investigated the command and control server communicating with the malware, and obtained a list of IP addresses for the infected computers. “Out of the 380 entries, users from China are the highest with 152, followed by users from India with 103,” the antivirus vendor said. 

Trend Micro, which is among the vendors that offer Mac-based antivirus products, is now encouraging Apple developers to “triple-check” their software projects for any malicious code before running them.

Further Reading

Security Reviews

Security Best Picks

About Our Expert

Michael Kan

Michael Kan

Principal Reporter

My Experience

I've been a journalist for over 15 years. I got my start as a schools and cities reporter in Kansas City and joined PCMag in 2017, where I cover satellite internet services, cybersecurity, PC hardware, and more. I'm currently based in San Francisco, but previously spent over five years in China, covering the country's technology sector.

Since 2020, I've covered the launch and explosive growth of SpaceX's Starlink satellite internet service, writing 600+ stories on availability and feature launches, but also the regulatory battles over the expansion of satellite constellations, fights with rival providers like AST SpaceMobile and Amazon, and the effort to expand into satellite-based mobile service. I've combed through FCC filings for the latest news and driven to remote corners of California to test Starlink's cellular service.

I also cover cyber threats, from ransomware gangs to the emergence of AI-based malware. In 2024 and 2025, the FTC forced Avast to pay consumers $16.5 million for secretly harvesting and selling their personal information to third-party clients, as revealed in my joint investigation with Motherboard.

I also cover the PC graphics card market. Pandemic-era shortages led me to camp out in front of a Best Buy to get an RTX 3000. I'm now following how the AI-driven memory shortage is impacting the entire consumer electronics market. I'm always eager to learn more, so please jump in the comments with feedback and send me tips.

The Best Tech I've Had:

  • My first video game console: a Nintendo Famicom
  • I loved my Sega Saturn despite PlayStation's popularity.
  • The iPod Video I received as a gift in college
  • Xbox 360 FTW
  • The Galaxy Nexus was the first smartphone I was proud to own.
  • The PC desktop I built in 2013, which still works to this day.

Read full bio