EggShell
- Type
- Backdoor
- Capabilities
- KeyloggingExfiltrationPersistencePost exploitationReconnaissance
- Delivery
- Lure
- Platforms
- macOSLinux
EggShell is a post-exploitation backdoor used against macOS and, in some reporting, Linux systems. It is associated with espionage activity and has appeared both as a public tool and in customized variants deployed in targeted intrusions. Documented variants have been used in developer-focused compromise chains and in North Korea-linked operations targeting cryptocurrency and technology-adjacent victims.
On macOS, EggShell variants have been delivered through multiple infection vectors, including trojanized Xcode projects that abuse Xcode Run Script functionality and later-stage deployment from multi-stage malware chains. In one developer-focused campaign commonly tracked as XcodeSpy, a malicious Xcode project installed a customized EggShell payload on Apple developer systems. In later DPRK-linked activity attributed to Konni, an EggShell variant was deployed as a secondary implant in a macOS intrusion set aimed at cryptocurrency industry professionals using social-engineering lures.
Observed EggShell capabilities include shell access, file upload and download, file-system operations, persistence via LaunchAgents, keylogging, screenshot capture, clipboard monitoring, microphone recording, and camera capture. Some variants also support command-and-control rotation and custom data encoding. These features make EggShell suitable for surveillance-heavy post-compromise operations focused on credential collection, monitoring of victim activity, and theft of sensitive files or communications.
EggShell has been linked to customized Objective-C Mach-O implants on macOS and has been used as a modular surveillance backdoor rather than a mass-distributed commodity threat. Reported targeting has included Apple developers and organizations of intelligence interest, as well as cryptocurrency-related entities in campaigns blending espionage and financially motivated objectives.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
A Second Implant: The Objective-C EggShell Variant ... this compiled Objective-C Mach-O binary shares C2 infrastructure with FileRATClient, adding audio and camera capture.
Techniques & procedures
19 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Initial Infection Vectors: Documents disguised as AppleScript bundles: • Stable1 Investment Proposal (Draft).pptx.scpt • AM Management_OTC Collaboration Proposal.docx.scpt • Circulating_Supply_Lockup_Schedule.xlsx.scpt
Execution
2 techniques
Execution
Remote Command Execution Full shell and process control over the victim's machine.
The XcodeSpy version, however, has been subtly changed to execute an obfuscated Run Script when the developer’s build target is launched.
Persistence
1 technique
Persistence
Installs a LaunchAgent and drops supporting files to ensure the backdoor survives reboots and restarts automatically.
Privilege Escalation
2 techniques
Privilege Escalation
Installs a LaunchAgent and drops supporting files to ensure the backdoor survives reboots and restarts automatically.
Stage 2 Continued: TCC Database Manipulation... Directly edits the macOS TCC database... Sets auth_value = 2 (ALLOWED) and auth_reason = 4 ("User Set")
Stealth
3 techniques
Stealth
Files appear as .docx/.pptx but are compiled AppleScript (.scpt) bundles — double-clicking executes the script.
XcodeSpy hides several files with a dot prefix to make them hidden from view in the Finder application.
PT_DENY_ATTACH blocks debugger attachment
Credential Access
3 techniques
Credential Access
The malware uses the ASObjC bridge to spawn a real NSWindow — indistinguishable from a genuine macOS dialog... Title: "Software Update" ... "Enter your password."
Keylogging Captures all keystrokes into remotely accessible log files.
MITRE ATT&CK TTPs Input Capture: GUI Input Capture | XcodeSpy can prompt users for credentials with a seemingly legitimate prompt via AppleScript T1056 002.
Discovery
3 techniques
Discovery
MITRE ATT&CK TTPs Process Discovery | XcodeSpy can collect data on running and parent processes T1057.
MITRE ATT&CK TTPs File and Directory Discovery | XcodeSpy can scan directories on a compromised host T1083.
PT_DENY_ATTACH blocks debugger attachment
Collection
7 techniques
Collection
The malware uses the ASObjC bridge to spawn a real NSWindow — indistinguishable from a genuine macOS dialog... Title: "Software Update" ... "Enter your password."
Keylogging Captures all keystrokes into remotely accessible log files.
MITRE ATT&CK TTPs Input Capture: GUI Input Capture | XcodeSpy can prompt users for credentials with a seemingly legitimate prompt via AppleScript T1056 002.
Live Screen Capture Streams the victim's screen to the attacker in real time.
Surveillance Capabilities • Clipboard monitor
Microphone recording
Webcam Access Takes photos or streams live video on demand.
Command and Control
2 techniques
Command and Control
POSTs JSON to C2 script... Data was sent to a C2 server and an attacker-controlled GitLab repo
Downloads Node.js bundle → unpacks to ~/.nodes • Fetches index.js from C2... Receives base64-encoded response → saves as addon.js
Observables
28 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.