XCSSET Malware Evolves With New Modules and Techniques
Summary
Microsoft Threat Intelligence has identified a new XCSSET malware variant targeting macOS users, with software developers remaining a primary focus. The latest evolution adds capabilities for Firefox data theft, clipboard hijacking to steal cryptocurrency wallet addresses, and new persistence techniques using LaunchDaemons. XCSSET continues to infect Xcode projects, enabling propagation through developer environments and workflows.
Investigation
Researchers analyzed a four-stage infection chain beginning with compromised Xcode projects. The investigation examined run-only compiled AppleScripts and identified modules such as vexyeqj for information theft and xmyyeqjx for LaunchDaemon-based persistence. Analysts also discovered a modified version of the HackBrowserData project being used to steal browser credentials and other sensitive information.
Mitigation
Defenders should keep macOS systems and installed applications fully updated and carefully inspect Xcode projects obtained from untrusted repositories. Users should also remain cautious when copying cryptocurrency wallet addresses to reduce clipboard hijacking risks. Organizations should deploy Microsoft Defender for Endpoint on Mac with cloud-delivered protection and network protection enabled.
Response
When XCSSET activity is detected, organizations should quarantine affected endpoints and investigate unauthorized LaunchDaemon entries and suspicious files under /tmp and ~/ directories. Security teams should verify Xcode project integrity and monitor for unauthorized changes to macOS Software Update preferences. Any compromised clipboard activity or stolen browser data should also be identified and remediated.
Attack Flow
We are still updating this part.
Detections
Possible Malware Distribution via WebsiteHook Endpoints (via proxy)
IOCs (HashSha256) to detect: XCSSET evolves again: Analyzing the latest updates to XCSSET’s inventory
IOCs (HashMd5) to detect: XCSSET evolves again: Analyzing the latest updates to XCSSET’s inventory
Detect Temporary File Creation for Info-Stealer and LaunchDaemon Persistence [Linux File Event]
Detection of Suspicious Process Execution and Network Connection by Osascript [Windows Process Creation]
XCSSET Malicious Command Execution and Plist Modification Detection [Microsoft Windows Security Event Log]
## Simulation Execution
-
Attack Narrative & Commands: An adversary has gained initial access via a compromised Xcode project. To maintain persistence, the attacker attempts to modify a Plist file to load a malicious launch agent. To evade detection, they use a combination of
echopiped intoshwithin a specific developer directory, and usebase64to decode a secondary stage of the malware. The goal is to simulate the exact string patterns the rule looks for: the directory path, the shell pipe, and the decoding utility. -
Regression Test Script:
#!/bin/bash # Simulation script for XCSSET Detection Validation # 1. Setup: Create the expected directory structure mkdir -p /tmp/Developer/Xcode/DerivedData/ cd /tmp/Developer/Xcode/DerivedData/ # 2. Trigger selection_malicious_command and selection_plist_modification # This simulates the specific combination: shell + echo + pipe + specific path + app-like execution logic # Note: Since we are on Linux, we simulate the 'app' behavior by running a script echo "malicious_payload" | sh & # 3. Trigger selection_obfuscated_command # Simulating the use of base64 decoding as defined in the rule echo "SGVsbG8gV29ybGQ=" | base64 --decode echo "Simulation commands executed." -
Cleanup Commands:
# Cleanup the simulated environment rm -rf /tmp/Developer/Xcode/DerivedData/