Poisoned Pipeline / Incidents / AS485

AS485 · 2015-09

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

supply-chain Xcode toolchain

T0170 · Defense Evasion · Malicious compiler or interpreter

The toolchain was modified so every build linked the attacker's object
file without showing the change in Xcode's interface.

T0109 · Resource Development · Publish malicious artifact

Repackaged Xcode installers were uploaded to a public file-sharing
service for developers to download.

T0159 · Execution · Malicious artifact execution

Apps built with the trojanized compiler ran the injected CoreServices
code on user devices and in the App Store.

T0197 · Initial Access · Use code from untrusted source

Developers installed a compiler from a third-party mirror rather than
Apple's own distribution.

Framework gaps noted

Sources