Apple Outlines Steps for Developers to Validate Xcode Following Malware Attack - MacRumors
Skip to Content

Apple Outlines Steps for Developers to Validate Xcode Following Malware Attack

Following last week's disclosure of new iOS malware called XcodeGhost, which arose from malicious versions of Xcode hosted on third-party servers, Apple has outlined instructions for developers to ensure the version of Xcode they are using is valid.

XcodeGhost-Featured
When downloading Xcode from the Mac App Store, or Apple's website so long as Gatekeeper is enabled, OS X automatically checks the app's code signature and validates it against Apple's code. If you must obtain Xcode elsewhere, follow these steps:

To verify the identity of your copy of Xcode run the following command in Terminal on a system with Gatekeeper enabled:
spctl --assess --verbose /Applications/Xcode.app

where /Applications/ is the directory where Xcode is installed. This tool performs the same checks that Gatekeeper uses to validate the code signatures of applications. The tool can take up to several minutes to complete the assessment for Xcode.

The tool should return the following result for a version of Xcode downloaded from the Mac App Store:
/Applications/Xcode.app: accepted
source=Mac App Store

and for a version downloaded from the Apple Developer web site, the result should read either
/Applications/Xcode.app: accepted
source=Apple

or

/Applications/Xcode.app: accepted
source=Apple System

Any result other than ‘accepted’ or any source other than ‘Mac App Store’, ‘Apple System’ or ‘Apple’ indicates that the application signature is not valid for Xcode. You should download a clean copy of Xcode and recompile your apps before submitting them for review.

Apple issued a statement in response to XcodeGhost over the weekend, noting that it has removed all infected apps it is aware of from the App Store and is working with developers to ensure they are using a legitimate version of Xcode.

"We’ve removed the apps from the App Store that we know have been created with this counterfeit software. We are working with the developers to make sure they’re using the proper version of Xcode to rebuild their apps."

XcodeGhost affected dozens, and possibly hundreds, of App Store apps. iPhone, iPad and iPod touch users should read what you need to know about XcodeGhost to learn more about the malware and how to keep yourself protected.

Popular Stories

iPhone Duo Slack

Apple Announces iPhone Duo Apps Can Now Be Submitted to App Store

Monday October 5, 2026 7:15 pm PDT by
Apple today announced that apps optimized for the iPhone Duo can now be submitted for App Store approval, ahead of the foldable device launching on Friday, October 23. While existing App Store apps will automatically run on the iPhone Duo, only apps built with the iOS 27.1 SDK or later can dynamically resize to fill the entire space of the inner display, whereas unoptimized apps will have...
iphone duo screen crack in store

Crackgate? iPhone Duo Owners Report Screens Breaking Along the Hinge

Friday October 23, 2026 11:05 am PDT by
Some iPhone Duos are already experiencing hinge issues that cause display cracks, based on photos shared on Reddit and the MacRumors forums. Almost all of the display faults are right along the hinge, and most result in a line of bright pixels across one side of the screen. An iPhone Duo owner in Australia said his device cracked after being opened fewer than 20 times, and there was no...
Apple Music iPod Page Not Found

Apple Music Has a Hidden iPod You Can Play With

Friday October 23, 2026 7:11 am PDT by
Apple Music has a 404 page easter egg on the web: a functional iPod that appears when you load a page that does not exist, such as music.apple.com/macrumors. "Page Not Found," says Apple. "Give this a spin instead." Apple is clever with this. If you navigate to music.apple.com/ipod instead, the page says "Looking for something?" instead of "Page Not Found." The easter egg is only...

Top Rated Comments

macduke Avatar
145 months ago
Apple should block any developers who used counterfeit versions from being able to submit to the App Store. This level of stupidity shouldn't be allowed on their platform.
Score: 22 Votes (Like | Disagree)
nagromme Avatar
145 months ago
Band-Aid achieved. But it shouldn't be possible to do this in the first place--it's a security hole and one that could have been expected. Maybe have iTunes Connect only accept submissions from an unmodified Xcode? I'm not sure this is at all simple to implement, but I'm sure it's important to do so

Developers are to blame too--especially multi-person companies should know better. But the platform should still be protected from developers making mistakes--or being attacked in other as-yet-unknown ways that might make it possible to secretly modify their Xcode. After all, it's possible to choose to bypass the Mac's security features (like Gatekeeper), and some people have reasons to do so. Further checks from Apple's remote end are called for, I think.
Score: 6 Votes (Like | Disagree)
jasnw Avatar
145 months ago
On a tangent, but a strongly related one, what's to keep whomever put the malicious Xcode out on Baidu in the first place from having a house stable of devs building malicious apps using their own Xcode? From what I've read, Apple was unable to catch these apps from being borked in the first place. I've long had a healthy skepticism about accessing any critical (financial, medical, etc) websites from a mobile device, now I'm positively paranoid about it.
Score: 5 Votes (Like | Disagree)
145 months ago
"Following last week's disclosure of new iOS malware called XcodeGhost ('https://www.macrumors.com/2015/09/20/xcodeghost-chinese-malware-faq/'), which arose from malicious versions of Xcode hosted on third-party servers, Apple has outlined instructions ('https://developer.apple.com/news/?id=09222015a') for developers to ensure the version of Xcode they are using is valid."


Step 1: Download Xcode from Apple.com


Congratulations, you now have a genuine version of Xcode ;)
Score: 5 Votes (Like | Disagree)
Icy1007 Avatar
145 months ago
Considering I am not an idiot and I downloaded Xcode from Apple's dev portal, I think my copy is clean.
Score: 5 Votes (Like | Disagree)
TMRJIJ Avatar
145 months ago
When you find that an app on that list ('https://forums.macrumors.com/threads/what-you-need-to-know-about-ios-malware-xcodeghost.1918784/#post-21896151') is in your Home Screen



Attachment Image
Score: 4 Votes (Like | Disagree)
Latest Stories
Apple Display Veterans Step Back as New Leaders Take Over
Apple Display Veterans Step Back as New Leaders Take Over
4 hours ago
OLED MacBook Air and iMac Remain in Testing
OLED MacBook Air and iMac Remain in Testing
5 hours ago
Apple Addresses Web Security Threat, Working on macOS Update With Additional Fix
Apple Addresses Web Security Threat, Working on macOS Update With Additional Fix
9 hours ago
iPhone Duo Can Run Automations When You Open or Close It
iPhone Duo Can Run Automations When You Open or Close It
10 hours ago
Adjust iPhone Duo's Outer Display to Accommodate Your Case
Adjust iPhone Duo's Outer Display to Accommodate Your Case
10 hours ago
iFixit iPhone Duo Teardown Points to Possible Cause of Screen Cracks
iFixit iPhone Duo Teardown Points to Possible Cause of Screen Cracks
11 hours ago
Apple Stores Reportedly Rolling Out New Anti-Theft System for iPhones
Apple Stores Reportedly Rolling Out New Anti-Theft System for iPhones
17 hours ago
AirTag 2 Drops to New Low Price of $23 on Amazon
AirTag 2 Drops to New Low Price of $23 on Amazon
18 hours ago
New iMac and 14-Inch MacBook Pro With M6 Chip Expected This Week
New iMac and 14-Inch MacBook Pro With M6 Chip Expected This Week
18 hours ago
Apple Reportedly Announcing New MacBook Pro With OLED Touchscreen on Wednesday
Apple Reportedly Announcing New MacBook Pro With OLED Touchscreen on Wednesday
18 hours ago
Apple Wants to Fix Safari's Cramped Layout on iPhone Duo
Apple Wants to Fix Safari's Cramped Layout on iPhone Duo
1 day ago
Instagram Launches Apple TV App With Reels and More
Instagram Launches Apple TV App With Reels and More
1 day ago
Apple's 'Servant' Copyright Lawsuit Win Upheld on Appeal
Apple's 'Servant' Copyright Lawsuit Win Upheld on Appeal
1 day ago
'Arguably Better Than Face ID': the iPhone Duo Touch ID Tip to Try
'Arguably Better Than Face ID': the iPhone Duo Touch ID Tip to Try
1 day ago
Verizon Apologizes for iPhone Duo Pre-Order Delays, Giving Customers $100 Gift Card
Verizon Apologizes for iPhone Duo Pre-Order Delays, Giving Customers $100 Gift Card
2 days ago
Skip the Touch ID Scan: Unlock iPhone Duo With Apple Watch
Skip the Touch ID Scan: Unlock iPhone Duo With Apple Watch
2 days ago
iPhone Duo Fails JerryRigEverything's Dusty Durability Test
iPhone Duo Fails JerryRigEverything's Dusty Durability Test
2 days ago
Make iPhone Duo Volume Buttons Follow Screen Rotation
Make iPhone Duo Volume Buttons Follow Screen Rotation
2 days ago
iPhone Duo Teardowns Reveal Two Batteries and More
iPhone Duo Teardowns Reveal Two Batteries and More
2 days ago
M5 MacBook Air Returns to Prime Day Low With $200 Amazon Discount
M5 MacBook Air Returns to Prime Day Low With $200 Amazon Discount
2 days ago
Top Stories: Apple 'Pro and Tell' Debut, iPhone Duo Launch, and More
Top Stories: Apple 'Pro and Tell' Debut, iPhone Duo Launch, and More
2 days ago
Apple Store Pickup System for iPhone Duo Just Went Live Again in U.S. and Canada
Apple Store Pickup System for iPhone Duo Just Went Live Again in U.S. and Canada
2 days ago
Apple Closes French Stores Ahead of Further Protests
Apple Closes French Stores Ahead of Further Protests
2 days ago
Apple Pushes Back on DOJ Request for More Evidence
Apple Pushes Back on DOJ Request for More Evidence
2 days ago
The iPhone Duo Can Be a Tiny Mac, a Toaster, and a Nintendo DS
The iPhone Duo Can Be a Tiny Mac, a Toaster, and a Nintendo DS
2 days ago
Using an Apple Pencil With the iPhone Duo: What to Know
Using an Apple Pencil With the iPhone Duo: What to Know
2 days ago
Apple Store Pickup for iPhone Duo Starting to Resume But Very Limited
Apple Store Pickup for iPhone Duo Starting to Resume But Very Limited
3 days ago
iPhone Duo Jailbroken on Launch Day
iPhone Duo Jailbroken on Launch Day
3 days ago
Apple Seeds Updated watchOS 27.2 Release Candidate
Apple Seeds Updated watchOS 27.2 Release Candidate
3 days ago
Apple Store in UK Reopens With New Design on iPhone Duo Launch Day
Apple Store in UK Reopens With New Design on iPhone Duo Launch Day
3 days ago