{"id":31930,"date":"2021-03-19T17:01:23","date_gmt":"2021-03-19T21:01:23","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=31930"},"modified":"2021-03-19T17:02:57","modified_gmt":"2021-03-19T21:02:57","slug":"xcodespy-malware","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2021\/03\/19\/xcodespy-malware\/","title":{"rendered":"XcodeSpy Malware"},"content":{"rendered":"<p><a href=\"https:\/\/labs.sentinelone.com\/new-macos-malware-xcodespy-targets-xcode-developers-with-eggshell-backdoor\/\">Phil Stokes<\/a> (via  <a href=\"https:\/\/twitter.com\/objective_see\/status\/1372786182644371459\">Patrick Wardle<\/a>, <a href=\"https:\/\/www.macrumors.com\/2021\/03\/18\/xcodespy-malware-targeting-apple-developers\/\">MacRumors<\/a>):<\/p>\n<blockquote cite=\"https:\/\/labs.sentinelone.com\/new-macos-malware-xcodespy-targets-xcode-developers-with-eggshell-backdoor\/\"><p>Threat actors are abusing the Run Script feature in Apple&rsquo;s Xcode IDE to infect unsuspecting Apple Developers via shared Xcode Projects.<\/p>\n<p>XcodeSpy is a malicious Xcode project that installs a custom variant of the EggShell backdoor on the developer&rsquo;s macOS computer along with a persistence mechanism.<\/p>\n<p>The backdoor has functionality for recording the victim&rsquo;s microphone, camera and keyboard, as well as the ability to upload and download files.<\/p>\n<p>[&#8230;]<\/p>\n<p>The sample we analyzed used a copy of a legitimate open-source project that can be found on Github called <a href=\"https:\/\/github.com\/potato04\/TabBarInteraction\">TabBarInteraction<\/a>.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/www.zdziarski.com\/blog\/?p=5009\">Jonathan Zdziarski<\/a> (in 2015, via <a href=\"https:\/\/twitter.com\/0xmachos\/status\/1372669036476174344\">mikey<\/a>):<\/p>\n<blockquote cite=\"https:\/\/www.zdziarski.com\/blog\/?p=5009\"><p>Early this morning, The Intercept <a href=\"https:\/\/firstlook.org\/theintercept\/documents\/\">posted several documents<\/a> pertaining to CIA&rsquo;s research into compromising iOS devices (along with other things) through Sandia National Laboratories, a major research and development contractor to the government. The documents outlined a number of project talks taking place at a closed government conference referred to as the Jamboree in 2012.<\/p><p>[&#8230;]<\/p><p>Strawhorse, a malicious implementation of Xcode, where App Store developers (likely not suspected of any crimes) would be targeted, and their dev machines backdoored to give CIA injection capabilities into compiled applications. The malicious Xcode variant was capable of stealing the developer&rsquo;s private codesign keys, which would be smuggled out with compiled binaries. It would also disable securityd so that it would not warn the developer that this was happening. The stolen keys could later be used to inject and sign payloads into the developer&rsquo;s own products without their permission or knowledge, which could then be widely disseminated through the App Store channels. This could include trojans or watermarks, as the document suggests. With the developer keys extracted, binary modifications could also be made at a later time, if such an injection framework existed.<\/p><p>In spite of what The Intercept wrote, there is no evidence that Strawhorse was slated for use en masse, or that it even reached an operational phase.<\/p><\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2020\/08\/14\/xcsset-mac-malware\/\">XCSSET Mac Malware<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Phil Stokes (via Patrick Wardle, MacRumors): Threat actors are abusing the Run Script feature in Apple&rsquo;s Xcode IDE to infect unsuspecting Apple Developers via shared Xcode Projects. XcodeSpy is a malicious Xcode project that installs a custom variant of the EggShell backdoor on the developer&rsquo;s macOS computer along with a persistence mechanism. The backdoor has [&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":"2021-03-19T21:01:26Z","apple_news_api_id":"f4dba064-ca23-4158-94cc-5826512dabe8","apple_news_api_modified_at":"2021-03-19T21:03:01Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/A9NugZMojQViUzFgmUS2r6A","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":[1144,30,1891,504,71,48,226],"class_list":["post-31930","post","type-post","status-publish","format-standard","hentry","category-technology","tag-central-intelligence-agency-cia","tag-mac","tag-macos-11-0","tag-malware","tag-programming","tag-security","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31930","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=31930"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31930\/revisions"}],"predecessor-version":[{"id":31931,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31930\/revisions\/31931"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=31930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=31930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=31930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}