Skip to main content
Mallory
Malware

XcodeGhost

Tracked since Dec 5, 2025 · Updated 3 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors0Associated
ATT&CK11Techniques
IOCs11Tracked
Type
Infostealer
Capabilities
Credential theftExfiltrationSpoofingInitial access
Delivery
Landing page
Platforms
iOSmacOS

XcodeGhost is a software supply-chain malware operation centered on trojanized copies of Apple’s Xcode development environment. The malicious Xcode packages were distributed to developers, particularly in China, through unofficial mirrors and file-sharing services that offered faster downloads than Apple’s infrastructure. Developers who built iOS applications with the altered toolchain unknowingly compiled malicious code into their apps, allowing the malware to propagate downstream to end users through otherwise legitimate applications, including apps that reached Apple’s App Store.

The malicious modifications were embedded in repackaged Xcode releases and abused Xcode’s default framework search behavior so that an added Mach-O object file was linked into compiled applications without the developer’s awareness. Once an infected application executed on iOS, the implanted code collected device and application metadata such as app identity, device characteristics, locale information, timing data, and network context, then encrypted and transmitted that information to attacker-controlled infrastructure over HTTP. XcodeGhost also supported user-deception behavior by displaying fake alert dialogs that could be used to phish credentials.

XcodeGhost is notable as an early large-scale compromise of Apple’s software development ecosystem and a prominent example of compiler or build-environment malware. The incident demonstrated that compromising developer tooling can bypass normal trust assumptions around signed applications and app-store distribution. Risk extended beyond public App Store software to enterprise-distributed iOS applications and potentially to Apple-platform software built outside Apple’s review pipeline. The campaign primarily affected Apple developer workflows and iOS applications, with broader implications for macOS development environments because the compromised toolchain itself ran on Apple desktop systems.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
MITRE ATT&CK

Techniques & procedures

11 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

4 techniques
T1195Supply Chain CompromiseEvidence1

XcodeGhost is the first compiler malware in OS X. Its malicious code is located in a Mach-O object file that was repackaged into some versions of Xcode installers. These malicious installers were then uploaded to Baidu’s cloud file sharing service for used by Chinese iOS/OS X developers.

T1195.001Compromise Software Dependencies and Development ToolsEvidence1

XcodeGhost implemented malicious code in its own CoreServices object file, and copies this file to a specific position that is one of Xcode’s default framework search paths. Hence, the code in the malicious CoreServices file will be added into any iOS app compiled with the infected Xcode without the developers’ knowledge.

T1195.002Compromise Software Supply ChainEvidence1

The repackaging of legitimate software with a malicious implant. Such trojanized software is either hosted on the official yet compromised website of a software company or spread via BitTorrent or other similar hosting zones.

T1566PhishingEvidence1

Fake device notifications A malicious application could send fake device notifications to the user. Clicking on the device notification could trigger the malicious application to display an input prompt.

Execution

2 techniques
T1574Hijack Execution FlowEvidence1

XcodeGhost exploits Xcode’s default search paths for system frameworks... XcodeGhost implemented malicious code in its own CoreServices object file, and copies this file to a specific position that is one of Xcode’s default framework search paths.

T1574.008Path Interception by Search Order HijackingEvidence1

XcodeGhost exploits Xcode’s default search paths for system frameworks... Hence, the code in the malicious CoreServices file will be added into any iOS app compiled with the infected Xcode without the developers’ knowledge.

Stealth

3 techniques
T1036MasqueradingEvidence1

By searching for “Xcode 下载” (Xcode downloading) in Google... these posts provided links to download all versions of Xcode from 6.0 to 7.0... All of the links direct to Baidu Yunpan... we found that all versions of Xcode between 6.1 to 6.4 were infected.

T1574Hijack Execution FlowEvidence1

XcodeGhost exploits Xcode’s default search paths for system frameworks... XcodeGhost implemented malicious code in its own CoreServices object file, and copies this file to a specific position that is one of Xcode’s default framework search paths.

T1574.008Path Interception by Search Order HijackingEvidence1

XcodeGhost exploits Xcode’s default search paths for system frameworks... Hence, the code in the malicious CoreServices file will be added into any iOS app compiled with the infected Xcode without the developers’ knowledge.

Discovery

2 techniques
T1082System Information DiscoveryEvidence1

When an infected app is executed... malicious code will collect some system and app information... The collected information includes: Current time, Current infected app’s name, The app’s bundle identifier, Current device’s name and type, Current system’s language and country, Current device’s UUID, Network type

T1518Software DiscoveryEvidence1

The collected information includes: Current infected app’s name, The app’s bundle identifier

Command and Control

1 technique
T1071Application Layer ProtocolEvidence1

Then, XcodeGhost will encrypt the information, and upload it to a C2 server through the HTTP protocol.

Exfiltration

1 technique
T1041Exfiltration Over C2 ChannelEvidence1

Then, XcodeGhost will encrypt the information, and upload it to a C2 server through the HTTP protocol.

Indicators of compromise

Observables

11 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching11Match every observed IP, domain, and hash against your live telemetry.
Associated threat actorsGroups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping11Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.