Apple’s Xcode Under Attack by Hackers Planting Malware

  • By Dawna M. Roberts
  • Published: Mar 29, 2021
  • Last Updated: Mar 18, 2022

 Nefarious criminals are loading Xcode developer projects with malware designed to compromise the Xcode network targeting developers and researchers.

What is Happening?

On Thursday, security experts released a report about a new cyber threat where hackers are injecting malicious code into an Xcode project available on GitHub. The threat is called “XcodeSpy” and uses a common Xcode snippet available for download from GitHub called TabBarInteraction. Developers use the snippet to animate iOS tab bars during user interaction.

When a user downloads the tainted code, it installs a “custom variant of the EggShell backdoor on the developer’s macOS along with a persistence mechanism,” according to The Hacker News.

Because hackers are using Xcode to deliver the payload, threat researchers said that Apple developers are the only targets. However, they had seen something similar before when a North Korean group used “a Visual Studio project designed to load a malicious DLL on Windows systems.”

The malware exploits a feature of Apple’s IDE that allows developers to run a shell script when they launch an instance of the new project. Without knowing what to look for, a developer would be unaware that the malicious code was executed on their system.

More Technical Details of the Attack

According to The Hacker News, “Besides including the original code, XcodeSpy also contains an obfuscated Run Script that’s executed when the developer’s build target is launched. The script then contacts an attacker-controlled server to retrieve a custom variant of the EggShell backdoor on the development machine, which comes with capabilities to record information from the victim’s microphone, camera, and keyboard.”

Threat researchers found two variants of the malicious EggShell payload so far, targeting Asian developers. These findings are on the heels of hackers “previously resorting to tainting Xcode executables (aka XCodeGhost) to inject malicious code into iOS apps compiled with the infected Xcode without the developers’ knowledge, and subsequently, use the infected apps to collect information from the devices once they are downloaded and installed from the App Store.

Trend Micro found similar threats in August 2020 that installed a mac malware dubbed XCSSET that has the capabilities to steal passwords, capture screenshots, grab other credentials, and steal private information from messages, notes, and other apps. This particular threat had a ransomware component and could encrypt files and demand a ransom to unlock them.

What is Xcode?

Xcode is Apple’s integrated development environment (IDE) and a proprietary developer tool for building apps that work on macOS, iOS, iPadOS, tvOS, and WatchOS. The downloadable app is a visual coding tool that makes it easy for new and veteran developers to create apps quickly and easily.

Xcode first came out in 2003 and has been steadily improved with new releases leading up to the latest, which was January 26, 2021, version 12.4. Users can download all previous releases. Although Xcode uses a visual environment, it also includes Command Line Tools (CLT) to mimic the UNIX-style environment. The tool supports many different programming languages, including:

  • C, C++.
  • Objective-C.
  • Objective-C++.
  • Java.
  • AppleScript.
  • Python.
  • Ruby.
  • ResEdit (Rez).
  • Swift.
It also supports via third-party add-ons, GNU Pascal,[6] Free Pascal,[7] Ada,[8] C#,[9] Go,[10] Perl,[11] and D.[12].

How Can Developers Stay Safe?

A few tips to keep Apple developers safe are:

  • Only download Xcode files and samples from trusted sources. 
  • Run all downloads through an antivirus/anti-malware scanner. 
  • Run all your scripts on a clean machine (from a CD rather than the hard drive).
  • Keep good backups in the event that you are hacked or malware infected.
 
About the Author
IDStrong Logo

Related Articles

Instagram Vulnerability Allowed Hackers Access to Control Your Phone

Security experts Check Point Research discovered a critical vulnerability while examining Instagra ... Read More

Alien Malware Infects More than 226 Mobile Apps and Steals Bank Data

As reported on September 24, 2020, by ZDNet and ThreatPost, a new strain of malware named “A ... Read More

Universal Health Systems Hit by Ransomware Attack

Universal Health Systems (UHS), a Fortune 500 company owning more than 400 hospitals across the co ... Read More

Exchange Server Bug Exposes a Big Risk to Hackers

Months after Microsoft released a patch to fix a serious flaw in MS Exchange Server, more than 61% ... Read More

Clients’ Bank Data Exposed in Blackbaud Ransomware Attack

Blackbaud software was victim to a ransomware attack last May, and new information suggests that c ... Read More

Latest Articles

Juice Jacking: Why Using Public USB Charging Stations Can Lead to Identity Theft

Juice Jacking: Why Using Public USB Charging Stations Can Lead to Identity Theft

We've all been there: You're away from home when you notice your phone's battery is dangerously low. For most people, the quick solution is to find a public charging station and restore their battery power.

Why Some People Are Choosing a Permanent Digital Detox

Why Some People Are Choosing a Permanent Digital Detox

As our reliance on digital devices and technologies has increased, so have concerns about the negative effects of excessive screen time on mental and physical health.

Is It Possible to Erase Yourself from the Internet?

Is It Possible to Erase Yourself from the Internet?

Our digital footprint, the trail of data and information left behind while using the internet, can be overwhelming. It encompasses everything from our social media posts and the websites we have visited to the emails we've sent and the online searches we have conducted.

Cybersecurity Threats: What You Need to Know About Piggybacking

Cybersecurity Threats: What You Need to Know About Piggybacking

In cybersecurity, piggybacking refers to an unauthorized person gaining access to a restricted area or system by exploiting the access privileges of an authorized user, typically by following them or leveraging their credentials, usually without their knowledge or consent.

What You Need to Know about the Coast Guard Data Breach

What You Need to Know about the Coast Guard Data Breach

The Coast Guard is the only branch of the United States military in the Department of Homeland Security. It enforces federal law, controls the nation's borders and maritime Approaches, and protects the United States ports and waterways.

Mars Hydro Security Flaw Puts IoT Users at Risk

Mars Hydro Security Flaw Puts IoT Users at Risk

Mars Hydro is a leading Chinese brand producing a wide range of Internet of Things (IoT) devices for indoor gardening and the hydroponics industry.

Featured Articles

How to Buy a House with Bad Credit

How to Buy a House with Bad Credit

Buying your own home is the American Dream, but it might seem out of reach to those with bad credit. However, the good news is, if your credit is less than perfect, you do still have options and in most cases, can still buy a home.

How Secure Is Your Password? Tips to Improve Your Password Security

How Secure Is Your Password? Tips to Improve Your Password Security

Any good IT article on computers and network security will address the importance of strong, secure passwords. However, the challenge of good passwords is that most people have a hard time remembering them, so they use simple or obvious ones that pose a security risk.

Top 10 Senior Scams and How to Prevent Them

Top 10 Senior Scams and How to Prevent Them

Senior scams are becoming a major epidemic for two reasons. First, seniors often have a lot of money in the bank from a life of working hard and saving.

Notice

By proceeding with this scan, you agree to let IDStrong run a Free Scan of supplied parameters of your personal information and provide free preliminary findings in compliance with our Terms of Use and Privacy Notice. You consent to us using your provided information to complete the Free Scan and compare it against our records and breach databases or sources to provide your Free preliminary findings report.

Rest assured: IDStrong will not share your information with third parties or store your information beyond what is required to perform your scan and share your results.

Free Identity Threat Scan
Instantly Check if Your Personal Information is Exposed
All fields below are required
Please enter first name
Please enter last name
Please enter a city
Please select a state
Please enter an age
Please enter an email address
Close