{"id":12319,"date":"2015-09-22T13:50:46","date_gmt":"2015-09-22T17:50:46","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=12319"},"modified":"2021-05-10T15:40:19","modified_gmt":"2021-05-10T19:40:19","slug":"xcodeghost","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2015\/09\/22\/xcodeghost\/","title":{"rendered":"XcodeGhost"},"content":{"rendered":"<p><a href=\"https:\/\/developer.apple.com\/news\/?id=09222015a\">Apple<\/a> (<a href=\"https:\/\/news.ycombinator.com\/item?id=10259071\">comments<\/a>):<\/p>\n<blockquote cite=\"https:\/\/developer.apple.com\/news\/?id=09222015a\"><p>We recently removed apps from the App Store that were built with a counterfeit version of Xcode which had the potential to cause harm to customers. You should always <a href=\"http:\/\/developer.apple.com\/xcode\/download\/\">download Xcode<\/a> directly from the Mac App Store, or from the Apple Developer website, and leave Gatekeeper enabled on all your systems to protect against tampered software.<\/p><\/blockquote>\n<p><a href=\"http:\/\/daringfireball.net\/linked\/2015\/09\/21\/ios-malware\">John Gruber<\/a>:<\/p>\n<blockquote cite=\"http:\/\/daringfireball.net\/linked\/2015\/09\/21\/ios-malware\"><p>They didn&rsquo;t attack the App Store itself, instead, they created a hacked version of Xcode that seems to work as expected but inserts the malware payload into the apps it compiles. Why in the world would developers download Xcode from a source other than Apple? <a href=\"http:\/\/qz.com\/506582\/chinas-awful-internet-speed-has-spread-malware-to-millions-of-smartphones\/\">Because China&rsquo;s internet speeds are so slow<\/a> (and Xcode is a multi-gigabyte download).<\/p><\/blockquote>\n<p><a href=\"http:\/\/www.macrumors.com\/2015\/09\/20\/xcodeghost-chinese-malware-faq\/\">Joe Rossignol<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.macrumors.com\/2015\/09\/20\/xcodeghost-chinese-malware-faq\/\"><p>Palo Alto Networks has shared a <a href=\"http:\/\/forums.macrumors.com\/threads\/what-you-need-to-know-about-ios-malware-xcodeghost.1918784\/#post-21896151\">full list of over 50 infected iOS apps<\/a>, including WeChat, NetEase Cloud Music, WinZip, Didi Chuxing, Railway 12306, China Unicom Mobile Office and Tonghuashun.<\/p>\n<p>[&#8230;]<\/p>\n<p>iOS apps infected with XcodeGhost malware can and do collect information about devices and then encrypt and upload that data to command and control (C2) servers run by attackers through the HTTP protocol.<\/p><\/blockquote>\n<p><a href=\"http:\/\/www.wired.com\/2015\/09\/apple-removes-300-infected-apps-app-store\/\">Joseph Cox<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.wired.com\/2015\/09\/apple-removes-300-infected-apps-app-store\/\"><p>Apple has now removed over 300 pieces of software from the App Store, after malware that targeted developers managed to create infected iOS apps. On top of that, it looks like the apps are more dangerous to Apple customers than previously thought.<\/p>\n<p>[&#8230;]<\/p>\n<p>But according to findings from one researcher, and then built upon by Xiao, the infected apps are also capable of receiving commands from the attacker. These commands can apparently allow a hacker to read and write data to the victim&rsquo;s clipboard, open specific URLs, or prompt a fake alert on the victim&rsquo;s screen. Some of these could be used to steal passwords, Xiao claims.<\/p><\/blockquote>\n<p>So much for the idea that App Review protects us from malware.<\/p>\n<p>Previously: <a href=\"http:\/\/mjtsai.com\/blog\/2015\/03\/10\/the-cias-xcode\/\">The CIA&rsquo;s Xcode<\/a>.<\/p>\n<p>Update (2015-09-22): <a href=\"http:\/\/arstechnica.com\/security\/2015\/09\/apple-scrambles-after-40-malicious-xcodeghost-apps-haunt-app-store\/\">Dan Goodin<\/a>:<\/p>\n<blockquote cite=\"http:\/\/arstechnica.com\/security\/2015\/09\/apple-scrambles-after-40-malicious-xcodeghost-apps-haunt-app-store\/\"><p>This&nbsp;isn&rsquo;t the first time a malicious app has made its way into the App Store, since there are a handful of other times bad titles have been found. Still, the number of infections and of the iOS users potentially affected appeared to be highly unusual, if not unprecedented. What&rsquo;s more, Chinese firm Qihoo360 Technology, <a href=\"http:\/\/www.theguardian.com\/technology\/2015\/sep\/21\/apple-removes-malicious-programs-after-first-major-attack-on-app-store\">reportedly has said<\/a> the number of affected apps is much bigger than originally reported, with a total of 344.<\/p>\n<p>The list of infected apps includes some of the most popular apps in China, including the ride-hailing app Didi Kuaidi. WeChat, which has some 500 million users, was also affected, although the infection was limited only to version 6.2.5. People using version 6.2.6 and later aren&rsquo;t affected, the chat developer said in a <a href=\"http:\/\/blog.wechat.com\/2015\/09\/19\/fixed-security-flaw-in-wechat-v6-2-5-for-ios\/\">blog post<\/a>.<\/p>\n<\/blockquote>\n<p><a href=\"https:\/\/twitter.com\/rosyna\/status\/646396894369972225\">Rosyna Keller<\/a> says that XcodeGhost <a href=\"https:\/\/twitter.com\/rosyna\/status\/646128592854777856\">does<\/a> <a href=\"https:\/\/twitter.com\/rosyna\/status\/646129731650195457\">not<\/a> prompt for passwords. <\/p>\n<p><a href=\"http:\/\/researchcenter.paloaltonetworks.com\/2015\/09\/update-xcodeghost-attacker-can-phish-passwords-and-open-urls-though-infected-apps\/\">Claud Xiao<\/a>:<\/p>\n<blockquote cite=\"http:\/\/researchcenter.paloaltonetworks.com\/2015\/09\/update-xcodeghost-attacker-can-phish-passwords-and-open-urls-though-infected-apps\/\"><p>In the current version of the code, XcodeGhost cannot be directly used to phish iCloud passwords. However, by changing a few simple lines of code, it can do that.<\/p><\/blockquote>\n<p><a href=\"http:\/\/www.apple.com\/cn\/xcodeghost\/#english\">Apple<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.apple.com\/cn\/xcodeghost\/#english\"><p>We&rsquo;re not aware of personally identifiable customer data being impacted and the code also did not have the ability to request customer credentials to gain iCloud and other service passwords.<\/p><\/blockquote>\n<p>Update (2015-10-04): <a href=\"http:\/\/brockerhoff.net\/blog\/2015\/09\/29\/rb-app-checker-lite-and-ghosts\/\">Rainer Brockerhoff<\/a>:<\/p>\n<blockquote cite=\"http:\/\/brockerhoff.net\/blog\/2015\/09\/29\/rb-app-checker-lite-and-ghosts\/\">\n<p>Needless to say, the new version of RB App Checker Lite also detects the added frameworks and warns: &ldquo;3 frameworks are suspect: they use system names but are NOT signed by Apple!&rdquo;.<\/p>\n<p>[&#8230;]<\/p>\n<p>Therefore, unless you check the entire app contents with GateKeeper, RB App Checker Lite (or even the codesign command-line utility), it will be humanly impossible to pick out visually &mdash; by inspection in the Finder &mdash; if anything has been changed inside Xcode. So keep GateKeeper turned on! One suggestion Apple should implement is running GateKeeper tests for Apple-signed software even if GateKeeper has been deliberately disabled.<\/p>\n<\/blockquote>\n\n<p id=\"xcodeghost-update-2021-05-07\">Update (2021-05-07): <a href=\"https:\/\/www.vice.com\/en\/article\/n7bbmz\/the-fortnite-trial-is-exposing-details-about-the-biggest-iphone-hack-of-all-time\">Lorenzo Franceschi-Bicchierai<\/a> (<a href=\"https:\/\/twitter.com\/lorenzofb\/status\/1390718360434917377\">tweet<\/a>):<\/p>\n<blockquote cite=\"https:\/\/www.vice.com\/en\/article\/n7bbmz\/the-fortnite-trial-is-exposing-details-about-the-biggest-iphone-hack-of-all-time\">\n<p>As part of the trial against Epic Games, Apple released emails that show that 128 million users, of which 18 million were in the U.S., downloaded apps containing malware known as XCodeGhost from the App Store.<\/p>\n<\/blockquote>\n\n<p id=\"xcodeghost-update-2021-05-10\">Update (2021-05-10): <a href=\"https:\/\/arstechnica.com\/gadgets\/2021\/05\/apple-brass-discussed-disclosing-128-million-iphone-hack-then-decided-not-to\/\">Dan Goodin<\/a>:<\/p>\n<blockquote cite=\"https:\/\/arstechnica.com\/gadgets\/2021\/05\/apple-brass-discussed-disclosing-128-million-iphone-hack-then-decided-not-to\/\">\n<p>In September 2015, Apple managers had a dilemma on their hands: should, or should they not, notify 128 million iPhone users of what remains the worst mass iOS compromise on record? Ultimately, all evidence shows, they chose to keep quiet.<\/p>\n<\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/05\/07\/epic-v-apple-day-4\/\">Epic v. Apple, Day 4<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/04\/05\/facebook-breach\/\">Facebook Breach<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Apple (comments): We recently removed apps from the App Store that were built with a counterfeit version of Xcode which had the potential to cause harm to customers. You should always download Xcode directly from the Mac App Store, or from the Apple Developer website, and leave Gatekeeper enabled on all your systems to protect [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2019-07-30T13:54:31Z","apple_news_api_id":"15e582ba-4027-4aa4-8a9f-34fe27d9dcc5","apple_news_api_modified_at":"2021-05-10T19:40:23Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAg==","apple_news_api_share_url":"https:\/\/apple.news\/AFeWCukAnSqSKnzT-J9ncxQ","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[1846,91,465,31,504,355,71,1285,48,226],"class_list":["post-12319","post","type-post","status-publish","format-standard","hentry","category-technology","tag-app-review","tag-appstore","tag-gatekeeper","tag-ios","tag-malware","tag-privacy","tag-programming","tag-rb-app-checker-lite","tag-security","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=12319"}],"version-history":[{"count":11,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12319\/revisions"}],"predecessor-version":[{"id":32434,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12319\/revisions\/32434"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=12319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=12319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=12319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}