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...
macOS 26 Xcode

Apple Releases Xcode 27.1 Beta With iPhone Duo Support

Friday September 18, 2026 11:06 am PDT by
Apple today released the first Xcode 27.1 beta. The latest version of the tool adds support for iPhone Duo app development. Available on Apple silicon Macs running macOS 26.6 or later, Xcode 27.1 includes updated SDKs for the iPhone Duo, and a simulator that supports the device's new poses and...
apple welcome home event

Apple Product Launch Announced for October 13: 'Welcome Home'

Thursday October 8, 2026 9:04 am PDT by
Apple today announced an upcoming product launch that will take place on Tuesday, October 13. We are expecting Apple's announcement to focus on new smart home products, including the long-rumored smart home hub, a new Apple TV 4K, and a refreshed HomePod mini. Subscribe to the MacRumors YouTube channel for more videos. The home hub is an all-new device that's like a cross between an iPad and...

Top Rated Comments

macduke Avatar
144 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
144 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
144 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)
144 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
144 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
144 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
New Apple TV 4K, HomeView, and HomePod Mini: 16 Details Just Leaked
New Apple TV 4K, HomeView, and HomePod Mini: 16 Details Just Leaked
5 hours ago
New Entry-Level iPad Not Expected Until Early 2027
New Entry-Level iPad Not Expected Until Early 2027
9 hours ago
Apple Plans Major iPhone Duo Retail Showcase, But Supply Will Be Limited
Apple Plans Major iPhone Duo Retail Showcase, But Supply Will Be Limited
9 hours ago
Apple TV 4K Getting A19 Chip and a Potentially Easier-to-Find Siri Remote
Apple TV 4K Getting A19 Chip and a Potentially Easier-to-Find Siri Remote
10 hours ago
New Mac Mini and Mac Studio Receive Up to $200 Price Cuts at Amazon
New Mac Mini and Mac Studio Receive Up to $200 Price Cuts at Amazon
10 hours ago
Apple HomeView Smart Hub to Ship in Mid-November in Four Colors
Apple HomeView Smart Hub to Ship in Mid-November in Four Colors
10 hours ago
New Apple TV 4K and HomePod Mini to Ship on October 30
New Apple TV 4K and HomePod Mini to Ship on October 30
11 hours ago
AirPods Max 2 Available for $429 in All Colors on Amazon
AirPods Max 2 Available for $429 in All Colors on Amazon
11 hours ago
Rumor: Apple to Announce New Partnership With ADT
Rumor: Apple to Announce New Partnership With ADT
23 hours ago
AirPods 5 vs. AirPods 5 With Wireless Charging Case Buyer's Guide
AirPods 5 vs. AirPods 5 With Wireless Charging Case Buyer's Guide
1 day ago
Accessory Deals This Weekend: Save on TVs, Headphones, and Smart Home Gear
Accessory Deals This Weekend: Save on TVs, Headphones, and Smart Home Gear
1 day ago
Apple's All-New Home Hub Will Be Revealed October 13: What to Expect
Apple's All-New Home Hub Will Be Revealed October 13: What to Expect
1 day ago
Apple Announcing HomePod Mini 2 Next Week With These New Features
Apple Announcing HomePod Mini 2 Next Week With These New Features
1 day ago
A New Apple TV 4K is Finally Coming on Tuesday
A New Apple TV 4K is Finally Coming on Tuesday
1 day ago
Top Stories: Apple's 'Welcome Home' Launch on October 13 and More
Top Stories: Apple's 'Welcome Home' Launch on October 13 and More
2 days ago
Apple Stores Will Add Your Name to iPhone Duo's Startup Screen
Apple Stores Will Add Your Name to iPhone Duo's Startup Screen
2 days ago
SpaceX Inches Closer to Becoming a U.S. Carrier
SpaceX Inches Closer to Becoming a U.S. Carrier
2 days ago
Apple Potentially Behind 'HomeView' Trademark Filed Alongside 'homeOS' Last Year
Apple Potentially Behind 'HomeView' Trademark Filed Alongside 'homeOS' Last Year
2 days ago
Mark Your Calendar: Six Important Apple Dates Coming Up This Month
Mark Your Calendar: Six Important Apple Dates Coming Up This Month
2 days ago
MacRumors Giveaway: Win an Apple Watch Series 12 and a Nylon Band From Southern Straps
MacRumors Giveaway: Win an Apple Watch Series 12 and a Nylon Band From Southern Straps
2 days ago
First Apple TV 4K Now 'Vintage' Ahead of New Model Coming on Tuesday
First Apple TV 4K Now 'Vintage' Ahead of New Model Coming on Tuesday
2 days ago
The MacRumors Show: Apple's Smart Home Products Are Coming
The MacRumors Show: Apple's Smart Home Products Are Coming
2 days ago
Apple Shares Fall After News of iPhone 18 Pro Order Cuts
Apple Shares Fall After News of iPhone 18 Pro Order Cuts
2 days ago
Leak Details iPhone Features for Apple's LG Home Accessories
Leak Details iPhone Features for Apple's LG Home Accessories
2 days ago
Prime Day Leftover Deals: AirPods Max 2 for $429, Mac Mini for $779.99, and More
Prime Day Leftover Deals: AirPods Max 2 for $429, Mac Mini for $779.99, and More
2 days ago
Every M5 MacBook Air Now $200 Off on Amazon
Every M5 MacBook Air Now $200 Off on Amazon
2 days ago
Mac Shipments Fall, But Apple Still Gains Ground in Shrinking Market
Mac Shipments Fall, But Apple Still Gains Ground in Shrinking Market
3 days ago
Apple Reportedly Cuts iPhone 18 Pro Orders After Price Hike Dampens Demand
Apple Reportedly Cuts iPhone 18 Pro Orders After Price Hike Dampens Demand
3 days ago
Apple Signs Hiring and Licensing Deal With AI Podcast Startup Huxe
Apple Signs Hiring and Licensing Deal With AI Podcast Startup Huxe
3 days ago
Apple's October 13 Launch: What's Coming
Apple's October 13 Launch: What's Coming
3 days ago