Poisoned Pipeline / Incidents / AS485
Trojanized Xcode installers from a Chinese file-sharing service put a compiler backdoor into dozens of iOS apps, some in the App Store
iOS / App StoremacOS softwareDeveloper workstation
Unit 42 found malicious Mach-O object files repackaged into Xcode installers
distributed through Baidu's cloud file-sharing service, where Chinese developers
downloaded them to avoid slow access to Apple's servers. The modified Ld.xcspec
forced the linker to load the attacker's CoreServices framework into every app
built with the compromised compiler. At least 39 iOS apps were infected,
including WeChat and Didi, and some passed App Store review. Qihoo 360 listed 344
infected apps and the Pangu team claimed 3,418. Apple removed infected apps and
told developers to rebuild with the official Xcode; Baidu removed the installers
and Amazon shut down the C2 servers. It was reported as iOS malware, not as a
supply-chain incident. It is the canonical compiler and toolchain compromise:
the artifact that shipped was clean in review and malicious by construction.
Mapped techniques
- T0170 Malicious compiler or interpreter
- T0109 Publish malicious artifact
- T0159 Malicious artifact execution
- T0197 Use code from untrusted source
supply-chain Xcode toolchain
The toolchain was modified so every build linked the attacker's object
file without showing the change in Xcode's interface.
Repackaged Xcode installers were uploaded to a public file-sharing
service for developers to download.
Apps built with the trojanized compiler ran the injected CoreServices
code on user devices and in the App Store.
Developers installed a compiler from a third-party mirror rather than
Apple's own distribution.
Framework gaps noted
- No technique covers trusting a mirror for a build tool. The compiler is not a runtime dependency, so dependency scanning and the era's SBOM work do not see it, and the shipped app tests clean.
Sources
- https://unit42.paloaltonetworks.com/novel-malware-xcodeghost-modifies-xcode-infects-apple-ios-apps-and-hits-app-store/
- https://unit42.paloaltonetworks.com/malware-xcodeghost-infects-39-ios-apps-including-wechat-affecting-hundreds-of-millions-of-users/
- https://unit42.paloaltonetworks.com/more-details-on-the-xcodeghost-malware-and-affected-ios-apps/