Skip to main content
Protect My Mac — FreeNo credit card required

XCSSET is a trojan targeting macOS, first discovered in 2020. XCSSET is a sophisticated macOS malware that infects Xcode developer projects. When a developer builds an infected project, the malware executes and can steal browser cookies, inject JavaScript into Safari, screenshot the desktop, and exfiltrate files. It spreads developer-to-developer as infected projects are shared via GitHub. CoreLock detects this threat using CoreLock detects XCSSET through Xcode project file analysis scanning for injected build phases, behavioral monitoring of unauthorized Safari manipulation, YARA rules targeting known XCSSET module signatures, and network detection of data exfiltration during build processes.

DangerTrojanDiscovered 2020

XCSSET

Also known as: OSX.XCSSET, Xcode Malware

What is XCSSET?

XCSSET is a sophisticated macOS malware that infects Xcode developer projects. When a developer builds an infected project, the malware executes and can steal browser cookies, inject JavaScript into Safari, screenshot the desktop, and exfiltrate files. It spreads developer-to-developer as infected projects are shared via GitHub.

How It Spreads

Infected Xcode projects shared on GitHub repositories

Developer-to-developer transmission when sharing project files

Modified Xcode build settings that execute malware during compilation

Trojanized open-source libraries imported as project dependencies

Signs of Infection

Modified build settings in .xcodeproj files you did not change

Unexpected network connections during Xcode builds

Safari extensions or data you did not install

Screenshots being taken without your knowledge (check ~/Library)

How to Remove XCSSET

1

Inspect Xcode projects

Check the build phase scripts in all your Xcode projects. XCSSET injects a malicious Run Script phase that executes during builds. Look for unfamiliar scripts referencing /tmp or hidden directories.

2

Remove infected project components

Delete the injected build scripts and any related files in your project directories. Compare your .xcodeproj files against clean versions from version control.

3

Clean browser data

XCSSET targets Safari cookies and can inject JavaScript. Clear Safari data, remove unknown extensions, and reset browser settings to defaults.

4

Remove persistence files

Delete any LaunchAgents or cron jobs created by the malware. Check ~/Library for unusual files or directories created around the time you opened the infected project.

5

Scan with CoreLock

Run a CoreLock scan to detect any remaining XCSSET modules including its screenshot, keylogging, and data exfiltration components.

Prevention Tips

Audit Xcode projects from external sources before building them

Review build phase scripts in any shared or forked project

Use git diff to inspect changes in .xcodeproj files before committing

Enable CoreLock's developer mode to monitor Xcode build processes for injection attacks

How CoreLock Detects XCSSET

Real-time Detection

CoreLock detects XCSSET through Xcode project file analysis scanning for injected build phases, behavioral monitoring of unauthorized Safari manipulation, YARA rules targeting known XCSSET module signatures, and network detection of data exfiltration during build processes.

Frequently Asked Questions

Am I at risk from XCSSET if I am not a developer?

XCSSET primarily targets developers through Xcode projects. If you do not use Xcode or build code from external sources, your risk is low. However, applications built from infected projects could contain the malware, so end users can be indirectly affected.

How does XCSSET infect Xcode projects?

XCSSET modifies the build settings in .xcodeproj files, adding a malicious Run Script build phase. When the project is compiled, this script executes the malware. The infection persists in the project file, so anyone who builds the project gets infected.

What data does XCSSET steal?

XCSSET can steal Safari cookies and passwords, take screenshots, access Evernote data, exfiltrate files, inject JavaScript into web pages for phishing, and encrypt files for ransom. It is a modular framework with multiple payload capabilities.

Protect Your Mac from XCSSET

Download CoreLock to detect and remove XCSSET and other macOS threats. AI-powered analysis, real-time monitoring, and one-click remediation.

Download CoreLock Free

Available for macOS and Windows