XCSSET v40 Spreads Through Compromised Xcode Projects, Adds Chrome and Telegram Modules

Summary
Unit 42 reports that XCSSET v40 infects developers who build compromised Xcode projects, then spreads through shared source code. New modules hijack Chrome and replace Telegram Desktop, while the malware adds evasion tactics and attempts to disable macOS protections.
Key points
- The malware is distributed through compromised Git repositories that inject a downloader into Xcode project files; developers are infected when they build the projects.
- XCSSET can propagate to other Xcode projects on an infected system and spread through shared source code.
- Unit 42 observed 17 modules for activities including credential theft, keylogging, clipboard manipulation, browser hijacking, and data exfiltration.
- A new Chrome module enables the Chrome DevTools Protocol on a local port to retrieve JavaScript from attacker infrastructure, enabling web traffic interception and a fileless reverse shell.
- A new Telegram trojanizer replaces Telegram Desktop with a malicious version; Unit 42 could not decrypt its configuration, so its exact functionality is unknown.
- Evasion measures include re-compiling the loader on the command-and-control server, separate encryption keys for inbound and outbound communications, and obfuscated code.
- XCSSET attempts to disable XProtect, MRT, TCC, and Rapid Security Response; Unit 42 recommends monitoring for anomalous AppleScript activity and unauthorized browser modifications.
Article Details
- Attack Vectors
- XCSSET v40 is distributed through compromised Git repositories and Xcode projects containing a downloader script; developers are infected when they build the poisoned projects, which then propagate through other Xcode projects and shared source code.
- A Chrome hijacker wraps the browser in a malicious launcher, enables the Chrome DevTools Protocol on a local port, and fetches JavaScript from attacker C2 infrastructure to intercept web traffic and enable system command execution through a fileless reverse shell.
- A Telegram trojanizer replaces the legitimate Telegram Desktop application with a malicious version; its exact functionality is unknown because Unit 42 could not retrieve its encrypted configuration.
- The malware uses separate encryption keys for inbound and outbound communications, periodically recompiles its loader on the C2 server, and obfuscates function names, variables, and strings with build-unique ciphers.
- Defensive Notes
- Monitor for anomalous AppleScript activity, unauthorized browser modifications, suspicious macOS defaults domains, and ad hoc-signed applications that bypass Gatekeeper.
- Scan open-source dependencies to reduce the risk of compromised repositories entering software development pipelines.
- Monitor and protect macOS security mechanisms, including XProtect, MRT, TCC, and Rapid Security Response; the article reports that XCSSET attempts to disable them and prevent XProtect signature updates.
MITRE ATT&CK
T1027 · Obfuscated Files or InformationXCSSET obfuscates function names, variables, and strings using build-unique ciphers.T1056.001 · KeyloggingAmong its modules, XCSSET performs keystroke logging.T1059.004 · Unix ShellThe Chrome hijacker enables system command execution through a fileless reverse shell.T1115 · Clipboard DataAmong its modules, XCSSET performs clipboard manipulation.T1185 · Browser Session HijackingThe Chrome hijacker wraps the browser in a malicious launcher and intercepts web traffic, including credentials and cookies.T1195.001 · Compromise Software Dependencies and Development ToolsXCSSET is distributed through compromised Git repositories and poisoned Xcode projects containing an injected downloader script.T1204.002 · Malicious FileDevelopers become infected when they build Xcode projects containing the poisoned code.T1539 · Steal Web Session CookieThe Chrome hijacker can intercept cookies from web traffic.T1562.001 · Disable or Modify ToolsXCSSET attempts to disable macOS security protections, terminates Apple’s CloudTelemetryService, and prevents XProtect signature updates.
Malware
Products
GitHubXCSSET version 40 has resurfaced to target macOS users by infecting compromised Xcode projects and GitHub repositories, spreading when developers build the poisoned code.Google ChromeThe updated malware adds new Chrome hijacking and Telegram trojanizing modules, along with stronger evasion tactics and aggressive attempts to disable macOS security protections.macOSXCSSET version 40 has resurfaced to target macOS users by infecting compromised Xcode projects and GitHub repositories, spreading when developers build the poisoned code.Telegram DesktopThe Telegram trojanizer deletes the legitimate Telegram Desktop application on infected systems and replaces it with a malicious version, potentially used for intercepting victims’ communications.XcodeXCSSET version 40 has resurfaced to target macOS users by infecting compromised Xcode projects and GitHub repositories, spreading when developers build the poisoned code.
