XCSSET is a modular macOS malware family delivered through infected Xcode projects and executed when the project is compiled. Active since August 2020, it has been observed installing backdoors, spoofed browsers, collecting data, and encrypting user files. It is composed of SHC-compiled shell scripts and run-only AppleScripts, often hiding in apps that mimic system tools (such as Xcode, Mail, or Notes) or use familiar icons (like Launchpad) to avoid detection.documents.trendmicro.comtrendmicro.commicrosoft.com
Older XCSSET variants use xxd to encode modules. Later versions pass an xxd or base64 encoded blob through multiple decoding stages to reconstruct the module name, AppleScript, or shell command. For example, the initial network request uses three layers of hex decoding before executing a curl command in a shell.microsoft.com
XCSSET installs malicious application bundles that mimic native macOS apps, such as Safari, by using the legitimate app’s icon and customizing the Info.plist to match expected metadata.documents.trendmicro.commicrosoft.com
XCSSET retrieves files that match the pattern defined in the INAME_QUERY variable within the user's home directory, such as *test.txt, and are below a specific size limit. It then archives the files and exfiltrates the data over its C2 channel.documents.trendmicro.commicrosoft.com
XCSSET prompts the user to input credentials using a native macOS dialog box leveraging the system process /Applications/Safari.app/Contents/MacOS/SafariForWebKitDevelopment.documents.trendmicro.com
XCSSET uses a shell script to execute Mach-o files and osacompile commands such as, osacompile -x -o xcode.app main.applescript.documents.trendmicro.com
Execution34 detection rules
Standing S0658
Reach counts this malware’s techniques, tactics, groups and campaigns; coverage shows how well defended those techniques are, both compared with other ATT&CK software.
Reach
Techniques33Top 6%
94th percentile · 94% of 842 ATT&CK software entries have this many Enterprise techniques or fewer.
Tactics12Top 1%
100th percentile · None of the 842 ATT&CK software entries has more tactics spanned — the highest in the population.
Threat groups062% tie · 22 values
62% of the population shares a single value across only 22 distinct values, so a percentile here would rank the tie, not the entity.
Campaigns086% tie · 8 values
86% of the population shares a single value across only 8 distinct values, so a percentile here would rank the tie, not the entity.
Coverage
Rules / technique7medBottom 9%
9th percentile · 91% of 842 ATT&CK software entries have more detection rules per technique.
Tests / technique3medBottom 14%
14th percentile · 86% of 842 ATT&CK software entries have more atomic tests per technique.
Data comps / technique4med53% tie · 11 values
53% of the population shares a single value across only 11 distinct values, so a percentile here would rank the tie, not the entity.
Mitigations / technique1med57th pct
57th percentile · 57% of 842 ATT&CK software entries have this many mitigations per technique or fewer.
5 of 8 axes carry an honest rank on this page. Coverage medians are taken across this malware’s 33 Enterprise techniques.
Range
Technique Campaign use over its cumulative rule count.
Detects the Linux-specific execution chain of the plain-crypto-js malicious npm dependency by Axios NPM package, including payload download via curl and detached execution using nohup and python3. (...)
Detects the macOS-specific execution chain of the plain-crypto-js malicious npm dependency in Axios NPM Package, including AppleScript execution via osascript, payload download, permission modification, execution, and cleanup.
This analytic detects potential reconnaissance activities on Cisco ASA devices by identifying execution of multiple information-gathering "show" commands within a short timeframe. (...)
This analytic detects unexpected outbound network connections initiated by known webserver processes such as `httpd.exe`, `nginx.exe`, or `tomcat.exe` to common file sharing or public content hosting services like GitHub, Discord CDN, Transfer.sh, or Pastebin. (...)
The following analytic detects potential reverse shell activity by identifying connections involving ports commonly associated with remote access tools, shell listeners, or tunneling utilities. (...)
The following analytic detects connections with a high Encrypted Visibility Engine (EVE) threat confidence score, indicating potentially malicious behavior within encrypted traffic. (...)
The following analytic detects potentially suspicious large volumes of data sent by the connection initiator on flows from internal to external networks. (...)