S0658: XCSSET
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.[1][2][3]
Security context for executives and security teams
S0658: XCSSET describes [XCSSET](https://attack.mitre.org/software/S0658) 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.(Citation: tr...
Executive priority
S0658: XCSSET is an official MITRE ATT&CK software. Glexia treats it as defensive behavior context for prioritizing monitoring, control validation, and response planning without using the object by itself as an attribution claim.
Technical view
Security teams should validate S0658: XCSSET by reviewing the official ATT&CK relationships, mapped tactics (the mapped ATT&CK tactic context), supported platforms (macOS), and available local telemetry before making detection or mitigation decisions.
Likely telemetry
- Official ATT&CK relationships and object metadata
- Network, endpoint, and security-tool telemetry
Detection direction
- Validate whether S0658: XCSSET appears in your detection coverage and tabletop scenarios.
- Use the object to align executive risk language with SOC, incident response, and detection engineering work.
- Do not treat ATT&CK relationship context as attribution without corroborating evidence.
Mitigation priorities
- Map the object to existing controls and identify missing telemetry or response ownership.
- Prioritize mitigations that reduce exposure on the listed platforms and tactics.
- Review adjacent ATT&CK relationships before changing policy, detections, or reporting language.
Additional notes and limits
Baseline Glexia take generated from the official MITRE ATT&CK STIX object, source hash, tactics, platforms, and detection fields. It is safe to replace with a richer model-generated take for the same source hash later.
This baseline take is source-grounded and schema-validated, but it does not include environment-specific telemetry, incident evidence, or threat-intelligence corroboration.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
XCSSET
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.[1][2][3]
How security teams should use this page
Treat this object as behavior context, not an attribution claim. Validate the related groups, software, data sources, and mitigations against official ATT&CK relationships and your own telemetry before making control-coverage decisions.
Techniques used
This mirrors the MITRE pattern of making group, software, campaign, and technique relationships scannable. Relationship notes come from mirrored ATT&CK relationship text when available.
| Domain | ID | Name | Relationship / procedure |
|---|---|---|---|
| Enterprise | T1564.001 | Hidden Files and DirectoriesSub-technique | |
| Enterprise | T1518 | Software Discovery | |
| Enterprise | T1614.001 | System Language DiscoverySub-technique | |
| Enterprise | T1105 | Ingress Tool Transfer | |
| Enterprise | T1041 | Exfiltration Over C2 Channel | |
| Enterprise | T1553.001 | Gatekeeper BypassSub-technique | XCSSET has dropped a malicious applet into an app's `.../Contents/MacOS/` folder of a previously launched app to bypass Gatekeeper's security checks on first launch apps (prior to macOS 13).CitationApplication Bundle Manipulation Brandon Dalton |
| Enterprise | T1036 | Masquerading | |
| Enterprise | T1195.001 | Compromise Software Dependencies and Development ToolsSub-technique | |
| Enterprise | T1098.004 | SSH Authorized KeysSub-technique | |
| Enterprise | T1005 | Data from Local System | |
| Enterprise | T1573.001 | Symmetric CryptographySub-technique | |
| Enterprise | T1574.006 | Dynamic Linker HijackingSub-technique | |
| Enterprise | T1560 | Archive Collected Data | |
| Enterprise | T1548.006 | TCC ManipulationSub-technique | |
| Enterprise | T1222.002 | Linux and Mac PermissionsSub-technique | XCSSET uses the |
| Enterprise | T1539 | Steal Web Session Cookie | |
| Enterprise | T1056.002 | GUI Input CaptureSub-technique | |
| Enterprise | T1068 | Exploitation for Privilege Escalation | |
| Enterprise | T1569.001 | LaunchctlSub-technique | |
| Enterprise | T1518.001 | Security Software DiscoverySub-technique | |
| Enterprise | T1486 | Data Encrypted for Impact | |
| Enterprise | T1082 | System Information Discovery | |
| Enterprise | T1543.004 | Launch DaemonSub-technique | |
| Enterprise | T1647 | Plist File Modification | In older versions, XCSSET uses the |
| Enterprise | T1027.013 | Encrypted/Encoded FileSub-technique | 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.[3] |
| Enterprise | T1083 | File and Directory Discovery | |
| Enterprise | T1059.004 | Unix ShellSub-technique | |
| Enterprise | T1497.003 | Time Based ChecksSub-technique | |
| Enterprise | T1554 | Compromise Host Software Binary | |
| Enterprise | T1087 | Account Discovery | |
| Enterprise | T1113 | Screen Capture | |
| Enterprise | T1546.004 | Unix Shell Configuration ModificationSub-technique | Using AppleScript, XCSSET adds it's executable to the user's `~/.zshrc_aliases` file (`"echo " & payload & " > ~/zshrc_aliases"`), it then adds a line to the .zshrc file to source the `.zshrc_aliases` file (`[ -f $HOME/.zshrc_aliases ] && . $HOME/.zshrc_aliases`). Each time the user starts a new `zsh` terminal session, the `.zshrc` file executes the `.zshrc_aliases` file.[3] |
| Enterprise | T1546 | Event Triggered Execution | XCSSET's `dfhsebxzod` module searches for `.xcodeproj` directories within the user’s home folder and subdirectories. For each match, it locates the corresponding `project.pbxproj` file and embeds an encoded payload into a build rule, target configuration, or project setting. The payload is later executed during the build process.[3][2] |
All related ATT&CK context
Object version and sync metadata
The fields below describe the current mirrored snapshot. When Glexia retains multiple ATT&CK source imports, you can open the table to compare the same object across releases (hashes and MITRE timestamps). For MITRE’s own release notes and roadmap, see ATT&CK resources — Updates.
Imported snapshots across ATT&CK releases(2)
| Release | Bundle imported | Object version | Modified | Status | Raw hash |
|---|---|---|---|---|---|
| 19.2 | 1.3 | Current bundle | a2854be8c3f5… | ||
| 19.1 | 1.3 | Older bundle | a2854be8c3f5… |
Mirrored ATT&CK source object
The raw object is retained through the mirrored ATT&CK source bundle and object hash. The raw endpoint returns the exact object from the mirrored bundle when available.
External references and citations
MITRE external references are preserved separately from Glexia analysis so citations remain traceable to their original source records.
- [1]trendmicro xcsset xcode project 2020
Mac Threat Response, Mobile Research Team. (2020, August 13). The XCSSET Malware: Inserts Malicious Code Into Xcode Projects, Performs UXSS Backdoor Planting in Safari, and Leverages Two Zero-day Exploits. Retrieved October 5, 2021.
Open source URL - [2]April 2021 TrendMicro XCSSET
Steven Du, Dechao Zhao, Luis Magisa, Ariel Neimond Lazaro. (2021, April 16). XCSSET Quickly Adapts to macOS 11 and M1-based Macs. Retrieved February 18, 2025.
Open source URL - [3]Microsoft March 2025 XCSSET
Microsoft Threat Intelligence. (2025, March 11). New XCSSET malware adds new obfuscation, persistence techniques to infect Xcode projects. Retrieved April 2, 2025.
Open source URL - [4]OSX.DubRobber
(Citation: malwarebyteslabs xcsset dubrobber)
- [5]XCSSET
(Citation: trendmicro xcsset xcode project 2020)
- [6]malwarebyteslabs xcsset dubrobber
Thomas Reed. (2020, April 21). OSX.DubRobber. Retrieved October 5, 2021.
Open source URL - [7]mitre-attackS0658Open source URL
Source: MITRE ATT&CK®. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. MITRE ATT&CK and ATT&CK are registered trademarks of The MITRE Corporation. Glexia is not affiliated with or endorsed by MITRE.
