Apple Outlines Steps for Developers to Validate Xcode Following Malware Attack - GeekWebGuides
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 Trio

Here's What Apple's Apps Look Like on the iPhone Duo

Tuesday October 20, 2026 11:12 am PDT by
With just three days to go until the iPhone Duo is released, Apple is getting ready for the launch. Behind the scenes, the App Store now has screenshots of Apple's built-in apps running on the Duo. We've seen some apps in marketing materials, but images of the ones we haven't seen give us an idea of what it will be like using the iPhone Duo day to day. Many apps are shown in landscape...
Apple Creator Studio iWork suite

Apple Pulls Keynote, Pages and Numbers From App Store [Update: Back]

Thursday October 22, 2026 11:01 am PDT by
Apple has temporarily removed Keynote, Pages, and Numbers from the App Store, just after releasing an update that added iPhone Duo support and a new Intelligent Assistant. It is not clear if the apps were removed intentionally, or if it is a bug. Apple has not said when the apps will be reinstated, but if it was in error, they should return soon. Update: The Mac versions are back without...

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.geekwebguides.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
MacBook Neo Helps Apple Outpace Rivals as Market Declines
MacBook Neo Helps Apple Outpace Rivals as Market Declines
18 minutes ago
Happy 25th Anniversary, iPod
Happy 25th Anniversary, iPod
48 minutes ago
iPhone Duo Demand Reportedly Exceeds Apple's Expectations
iPhone Duo Demand Reportedly Exceeds Apple's Expectations
3 hours ago
iPhone Duo Launch Begins as First Orders Reach Customers
iPhone Duo Launch Begins as First Orders Reach Customers
10 hours ago
1Password for Agents Keeps Your Passwords Hidden From AI
1Password for Agents Keeps Your Passwords Hidden From AI
10 hours ago
iPhone Duo 24 Hours Later: Your Questions Answered
iPhone Duo 24 Hours Later: Your Questions Answered
11 hours ago
Apple's iWork Apps Get 'Intelligent Assistant' and iPhone Duo Support
Apple's iWork Apps Get 'Intelligent Assistant' and iPhone Duo Support
12 hours ago
Apple is Apparently Considering a Slightly Larger iPhone Duo
Apple is Apparently Considering a Slightly Larger iPhone Duo
12 hours ago
Giant iPhone Duo Displays Coming to Four Apple Stores
Giant iPhone Duo Displays Coming to Four Apple Stores
13 hours ago
Apple Pulls Keynote, Pages and Numbers From App Store [Update: Back]
Apple Pulls Keynote, Pages and Numbers From App Store [Update: Back]
14 hours ago
Apple Updates More Apps With iPhone Duo Support
Apple Updates More Apps With iPhone Duo Support
14 hours ago
Apple Will Label Apps 'Made for iPhone Duo' in App Store
Apple Will Label Apps 'Made for iPhone Duo' in App Store
17 hours ago
Amazon Takes $49 Off iPad With Prices Starting at $399.99
Amazon Takes $49 Off iPad With Prices Starting at $399.99
18 hours ago
F1 on Apple TV Now Available in Dolby Atmos
F1 on Apple TV Now Available in Dolby Atmos
18 hours ago
Apple Reveals More Than 50 Apps That Will Be Updated for iPhone Duo
Apple Reveals More Than 50 Apps That Will Be Updated for iPhone Duo
19 hours ago
Apple Blocks Certificates That Could Help Attackers Fake Websites
Apple Blocks Certificates That Could Help Attackers Fake Websites
20 hours ago
Giant iPhone Duo Installations Spotted at Apple Fifth Avenue
Giant iPhone Duo Installations Spotted at Apple Fifth Avenue
21 hours ago
iPhone Duo 2 Prototypes Include Under-Display Face ID
iPhone Duo 2 Prototypes Include Under-Display Face ID
21 hours ago
Tesla App Gains iPad and iPhone Duo Support
Tesla App Gains iPad and iPhone Duo Support
1 day ago
Apple Reportedly Boosts iPhone Duo Orders by 44%
Apple Reportedly Boosts iPhone Duo Orders by 44%
1 day ago
Fortnite Returning to Australian App Store After Court Ruling
Fortnite Returning to Australian App Store After Court Ruling
1 day ago
Apple Ordered to Open iPhone to Rival App Stores in Australia
Apple Ordered to Open iPhone to Rival App Stores in Australia
1 day ago
Apple Suppliers Face Hurdles Cutting Circuit Board Emissions
Apple Suppliers Face Hurdles Cutting Circuit Board Emissions
1 day ago
Things Updated for iPhone Duo With Adaptive Layout
Things Updated for iPhone Duo With Adaptive Layout
1 day ago
Simplicity and Siri AI Are HomeView's Killer Features, Apple Says
Simplicity and Siri AI Are HomeView's Killer Features, Apple Says
1 day ago
iPhone Duo Reviewers Really Miss Face ID
iPhone Duo Reviewers Really Miss Face ID
1 day ago
Does the iPhone Duo Run Hot? Here's What Reviews Found
Does the iPhone Duo Run Hot? Here's What Reviews Found
1 day ago
Apple Music's New Look is Now Live on Apple's Website
Apple Music's New Look is Now Live on Apple's Website
1 day ago
Anthropic Launches Claude Duet, a Proactive AI Agent
Anthropic Launches Claude Duet, a Proactive AI Agent
1 day ago
What 32,000 Folds Did to the iPhone Duo's Hinge
What 32,000 Folds Did to the iPhone Duo's Hinge
2 days ago