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

What You Need to Know about the Episource Data Breach

What You Need to Know about the Episource Data Breach

Episource is a California-based healthcare services and technology company that provides risk adjustment and medical coding services to healthcare plans, doctors, and several other types of healthcare organizations.

What you need to know about the Krispy Kreme Data Breach

What you need to know about the Krispy Kreme Data Breach

The popular doughnut and coffeehouse chain Krispy Kreme was established in 1937 in Winston-Salem, North Carolina. It has grown over the years and currently operates 1,500 shops and 17,900 points of access in 40 nations.

What You Need to Know about the Ocuco Data Breach

What You Need to Know about the Ocuco Data Breach

Ocuco is a Dublin-based organization that specializes in optical software solutions. Established in 1993 by Leo Mac Canna, the company initially developed software for independent optometrists.

What You Need to Know about the TxDOT Data Breach

What You Need to Know about the TxDOT Data Breach

The Texas Department of Transportation (TxDOT) is responsible for designing, planning, operating, building, and maintaining the state's transportation system to deliver a reliable and safe transportation system.

What You Need to Know about the AT&T Data Breach

What You Need to Know about the AT&T Data Breach

AT&T, one of the largest telecommunications providers in the United States and the fourth-largest telecommunications company in the world by revenue, experienced a significant data leak, which became public in June 2025.

What You Need to Know about the Mainstreet Bank Data Breach

What You Need to Know about the Mainstreet Bank Data Breach

MainStreet is a community-oriented bank in Fairfax, Virginia. Established in 2004, it is under the MainStreet Bancshares Incorporated, a small-cap financial holding organization.

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