


Perceptive Security
SOC/SIEM Consultancy

New XCSSET variant targets macOS devs via compromised Xcode projects
Published:
4 augustus 2026 om 19:03:09
Alert date:
4 augustus 2026 om 20:02:01
Source:
bleepingcomputer.com
Operating Systems, Ransomware & Malware, Supply Chain & Dependencies, Web Technologies, Data Breach & Exfiltration
A new variant of the XCSSET malware is actively targeting macOS developers through compromised Xcode projects and GitHub repositories. XCSSET is a well-known malware family that embeds malicious code into legitimate Xcode projects, spreading to other developers who clone or use the infected repositories. The campaign targets thousands of macOS users, making it a significant supply chain threat. The malware is capable of stealing sensitive data, capturing screenshots, and accessing browser credentials. This variant represents an evolution of the original XCSSET discovered in 2020, continuing to exploit the developer ecosystem as an attack vector. The use of GitHub as a distribution mechanism amplifies the potential reach of the campaign.
Technical details
XCSSET v40 is a new variant of the macOS malware targeting developers via compromised Xcode projects and GitHub repositories. The threat actor injects a downloader script into benign files within vulnerable Git-hosted Xcode projects. When developers build the compromised project, the malware installs and then spreads to every other Xcode project on the system. The infection follows a four-stage chain and deploys 17 separate modules enabling credential theft, keystroke logging, clipboard manipulation, browser hijacking, and data exfiltration. Two new modules were introduced: (1) A Chrome hijacker that wraps Chrome in a malicious launcher, enables Chrome DevTools Protocol (CDP) on a local port, fetches JavaScript from a C2 server, intercepts web traffic including credentials, cookies, and MetaMask transactions, manipulates payments on the fly, and enables fileless reverse shell system command execution. (2) A Telegram trojanizer that deletes the legitimate Telegram Desktop app and replaces it with a malicious version to intercept communications. Evasion techniques include periodically re-compiling the loader on the C2 server, using separate encryption keys for inbound and outbound communications, and obfuscating function names, variables, and strings with build-unique ciphers. The malware attempts to disable macOS security features including XProtect, MRT, TCC, and Rapid Security Response, terminates Apple's CloudTelemetryService, and prevents XProtect signature updates. Two distinct attack waves were observed in mid-April and early May 2026.
Mitigation steps:
1. Monitor for anomalous AppleScript activity on macOS systems. 2. Monitor for unauthorized browser modifications, particularly to Google Chrome. 3. Watch for suspicious macOS defaults domain changes. 4. Detect and investigate ad hoc-signed applications that bypass Gatekeeper. 5. Scan open-source dependencies and Xcode projects before integrating them into software development pipelines. 6. Verify integrity of Xcode projects downloaded from GitHub or other repositories before building. 7. Check for unexpected disabling of macOS security features (XProtect, MRT, TCC, Rapid Security Response). 8. Monitor for unexpected termination of CloudTelemetryService. 9. Verify the integrity of the Telegram Desktop application binary. 10. Audit all Xcode projects on developer systems for injected scripts. 11. Developers should avoid downloading Xcode projects from untrusted or unverified sources.
Affected products:
macOS (all versions targeted since at least 2021)
Xcode (Apple SDK - compromised project files)
GitHub repositories (compromised Git repositories)
Google Chrome (hijacked via Chrome DevTools Protocol)
Telegram Desktop (replaced with trojanized version)
Related links:
https://www.bleepingcomputer.com/news/security/apple-fixes-three-zero-days-one-abused-by-xcsset-macos-malware/
https://www.bleepingcomputer.com/news/security/microsoft-warns-of-new-xcsset-macos-malware-variant-targeting-xcode-devs/
https://www.bleepingcomputer.com/news/security/microsoft-spots-xcsset-macos-malware-variant-used-for-crypto-theft/
Related CVE's:
Related threat actors:
IOC's:
Anomalous AppleScript activity, Unauthorized browser modifications to Google Chrome, Suspicious macOS defaults domains, Ad hoc-signed applications bypassing Gatekeeper, Chrome DevTools Protocol (CDP) enabled on local port, Fileless reverse shell activity on macOS, Disabled or blocked XProtect, MRT, TCC, Rapid Security Response, Terminated CloudTelemetryService process, Blocked XProtect signature updates, Replaced Telegram Desktop application binary, Downloader scripts injected into Xcode project files
This article was created with the assistance of AI technology by Perceptive.
