Skip to Content

New Mac Malware Found to Infect via Xcode

Security researchers at Trend Micro have discovered a new kind of Mac malware which can "command and control" a target system.

xcode 6

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.

The malware spreads via infected Xcode projects because it can create maliciously modified applications. Specifically, the malware was found to be capable of abusing Safari and other browsers to steal data. It can use a vulnerability to read and dump cookies, create backdoors in Javascript, and in turn modify displayed websites, steal private banking information, block password changes, and steal newly modified passwords. It was also found to be able to steal information from apps such as Evernote, Notes, Skype, Telegram, QQ, and WeChat, take screenshots, upload files to the attacker's specified server, encrypt files, and display a ransom note.

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.

Popular Stories

macOS 26 Xcode

Apple Releases Xcode 27.3 Beta With Three New Features

Wednesday November 4, 2026 11:27 am PST by
Apple on Tuesday released the first Xcode 27.3 beta with three new features: GitHub Copilot support within the built-in coding assistant, the ability for developers to test Siri AI integration in their apps, and additional APIs for developers to optimize their apps for the upcoming MacBook Pro models with...
MacBook Neo 2 on Yellow Feature

Apple Reportedly Plans to Release These Products in February or March

Sunday November 22, 2026 7:32 am PST by
Apple plans to unveil an iPhone 18e, iPhone 18, updated entry-level iPad, and new MacBook Neo and MacBook Air models around February or March next year, according to the latest word from Bloomberg's Mark Gurman. In his Power On newsletter today, Gurman said Apple has some additional products planned for the first half of 2027, including the iPhone Air 2 and new iPad Air and iPad Pro models,...
Black Friday Deals 26 4

Apple Black Friday Deals Available Now: AirPods, Apple Watches, MacBooks, and More

Saturday November 21, 2026 9:17 am PST by
Black Friday is just a few days away, taking place on Friday, November 27 in 2026. As always, this will be the best time of the year to shop for great deals, including popular Apple products like AirPods, iPad, Apple Watch, and more. Note: MacRumors is an affiliate partner with some of these vendors. When you click a link and make a purchase, we may receive a small payment, which helps us keep ...

Top Rated Comments

82 months ago
If only there was the technology to prevent this spread. Perhaps something similar to containing a bunch of sand in some kind of box-shaped enclosure.
Score: 15 Votes (Like | Disagree)
russell_314 Avatar
82 months ago
This is why we can’t have nice things 😂
Score: 11 Votes (Like | Disagree)
82 months ago
Now imagine if the malware made it into a Mac App Store app.

This is why we notarize our Mac apps.
Score: 7 Votes (Like | Disagree)
Scottsoapbox Avatar
82 months ago
Can't blame the non-tech savy people for this one.
Score: 6 Votes (Like | Disagree)
lostngone Avatar
82 months ago
Good thing I never migrated to Xcode... CodeWarrior Pro 4 is the only way to compile!
Score: 6 Votes (Like | Disagree)
82 months ago
This whole thing is super fishy. From Trend Micro's technical brief:


We have found two Xcode projects infected by the malware from researching online. One happened on July 13 and the other on July 31. Fortunately, these projects are not too relevant for other users to download and integrate these into their own projects. Still, this proves how dangerous the XCSSET malware could be for developers.
This is really the definition of FUD, no?

So out of the millions of users on GitHub and trillions of lines of code, Trend Micro found just 2 repos with Mac malware?

No self-respecting developer is going to ever use these two repos in the first place. Developers use projects with good documentation that serve an actual need.

Occam's razor more likely says they found malware authors posting to GitHub. A conspiracy theorist might even say they perhaps planted it themselves.

And why are these repos even still active? Malware is against GH's TOS. If Trend Micro actually cared, they'd report these repos as nefarious. Otherwise they have little proof as reporting anything.

And on the linked page:

To protect systems from this type of threat, users should only download apps from official and legitimate marketplaces. Users can also consider multilayered security solutions such as Trend Micro Home Security for Mac, which provides comprehensive security and multidevice protection against cyberthreats. Enterprises can take advantage of Trend Micro’s Smart Protection Suites with XGen™ security, which infuses high-fidelity machine learning into a blend of
Alerting users to security threats is one thing. Hawking your products at the exact same time is a little desperate IMO.
Score: 5 Votes (Like | Disagree)
Latest Stories
Missed That $149 AirPods Pro 3 Deal? Amazon Just Brought It Back
Missed That $149 AirPods Pro 3 Deal? Amazon Just Brought It Back
7 minutes ago
Tidal Bans AI Music, While Apple Music Sticks to Labels
Tidal Bans AI Music, While Apple Music Sticks to Labels
8 minutes ago
Add Holiday Lights and Snow to Your Mac With Festivitas
Add Holiday Lights and Snow to Your Mac With Festivitas
48 minutes ago
Meta's Muse AI Agent Comes to Instagram DMs
Meta's Muse AI Agent Comes to Instagram DMs
2 hours ago
Google Says Apple's iOS Browser Rules Offer 'Choice on Paper, Not in Practice'
Google Says Apple's iOS Browser Rules Offer 'Choice on Paper, Not in Practice'
3 hours ago
Walmart App Rolls Back Apple Pay Support After Just Weeks
Walmart App Rolls Back Apple Pay Support After Just Weeks
4 hours ago
Black Friday Discount Hits 512GB MacBook Neo at $699 ($100 Off)
Black Friday Discount Hits 512GB MacBook Neo at $699 ($100 Off)
5 hours ago
Disney+ Black Friday Deal is Here: Bundle With Hulu for Just $4.99/Month for a Year
Disney+ Black Friday Deal is Here: Bundle With Hulu for Just $4.99/Month for a Year
5 hours ago
Signal Now Blocks AI Screen Access to Protect Chats
Signal Now Blocks AI Screen Access to Protect Chats
7 hours ago
Things 3.25 for Mac Gains Touch Gestures
Things 3.25 for Mac Gains Touch Gestures
8 hours ago
AirTag in (PRODUCT)RED?
AirTag in (PRODUCT)RED?
8 hours ago
M6 iMacs Get First Major Discounts With Up to $111 Off at Amazon
M6 iMacs Get First Major Discounts With Up to $111 Off at Amazon
9 hours ago
Apple to Celebrate 20 Years of (RED) With Special Event in New York
Apple to Celebrate 20 Years of (RED) With Special Event in New York
9 hours ago
Hidden Coupon Deal Knocks M6 MacBook Pro to $1,779 on Amazon
Hidden Coupon Deal Knocks M6 MacBook Pro to $1,779 on Amazon
9 hours ago
Apple to Release Four (RED) Products by Next Week
Apple to Release Four (RED) Products by Next Week
9 hours ago
iPhone Air 2 and iPhone 18 Rumored to Feature Thicker Cameras
iPhone Air 2 and iPhone 18 Rumored to Feature Thicker Cameras
9 hours ago
EU in Talks With Apple Over Barriers to Rival iPhone Browsers
EU in Talks With Apple Over Barriers to Rival iPhone Browsers
10 hours ago
iPhone 18e to Get Redesigned, iPad Pro-Style Camera
iPhone 18e to Get Redesigned, iPad Pro-Style Camera
11 hours ago
iPhone Duo: 20 Tips to Get the Most Out of Apple's Foldable
iPhone Duo: 20 Tips to Get the Most Out of Apple's Foldable
12 hours ago
Meta's Muse Personal AI Agent Launches in the UK
Meta's Muse Personal AI Agent Launches in the UK
13 hours ago
OpenAI Brings GPT-6.2 Sol to ChatGPT's Chat Tab
OpenAI Brings GPT-6.2 Sol to ChatGPT's Chat Tab
1 day ago
Google Search Gets Wallet Access, With Drive Coming Soon
Google Search Gets Wallet Access, With Drive Coming Soon
1 day ago
Apple Store With All-New Design Opening in UK Next Month
Apple Store With All-New Design Opening in UK Next Month
1 day ago
Apple Announces 'Ted Lasso' Renewed for Fifth Season
Apple Announces 'Ted Lasso' Renewed for Fifth Season
1 day ago
MacBook Neo Sees Record Low $599 Price in Latest Black Friday Sale ($100 Off) [Update: Gone]
MacBook Neo Sees Record Low $599 Price in Latest Black Friday Sale ($100 Off) [Update: Gone]
1 day ago
Grab an AirTag 2 for Just $18 at Best Buy and Amazon
Grab an AirTag 2 for Just $18 at Best Buy and Amazon
1 day ago
Apple Bringing Back (PRODUCT)RED With Red HomePod Mini 2 and AirPods Max 2
Apple Bringing Back (PRODUCT)RED With Red HomePod Mini 2 and AirPods Max 2
1 day ago
Best Black Friday Streaming Deals on Apple TV, Peacock, HBO Max, and More
Best Black Friday Streaming Deals on Apple TV, Peacock, HBO Max, and More
1 day ago
Threads is Getting an iPad App
Threads is Getting an iPad App
1 day ago
Developer Turns MacBook Trackpad Into a Speaker Using Haptic Motor
Developer Turns MacBook Trackpad Into a Speaker Using Haptic Motor
1 day ago