Skip to main content

Boteraser | Website and Server Security Solutions

EggShell RAT

RAT

⚠️ Overview

EggShell RAT is a Python‑based remote access trojan (RAT) first documented in public reports around 2017 by FireEye and Unit 42, with code repositories on GitHub suggesting earlier development. It is primarily attributed to the Iranian‑linked threat group APT33 (also tracked as Elfin, Refined Kitten) and falls into the category of commodity RATs used for espionage and initial access.

🔧 Technical Capabilities

EggShell communicates with its command‑and‑control (C2) infrastructure over HTTP using custom‑encrypted payloads (AES‑128‑CBC) and supports a limited set of commands: remote shell execution, file upload/download, screenshot capture, keylogging, and persistent installation via Windows Registry run keys or Linux cron jobs. The malware is compiled into a single executable using PyInstaller, which obscures the source but leaves Python bytecode that can be decompiled. It employs simple evasion techniques such as sleeping before beaconing and using user‑agent strings mimicking legitimate browsers (e.g., Mozilla/5.0 (Windows NT 6.1; WOW64)). EggShell does not self‑propagate; it is typically delivered through spear‑phishing emails or dropped by other malware. The C2 protocol uses a dual‑stage beacon: an initial POST to /connect followed by encrypted command loops. Persistence is achieved through a scheduled task or service. MITRE ATT&CK techniques include T1059.006 (Command and Scripting Interpreter: Python), T1574.002 (Hijack Execution Flow: DLL Side‑Loading), and T1005 (Data from Local System).

📜 History & Notable Incidents

EggShell was publicly detailed in late 2017 by FireEye’s FLARE team and later linked to APT33’s operations targeting the aerospace, energy, and defense sectors, particularly in Saudi Arabia, South Korea, and the United States. A variant was observed in the 2018 “Operation Wilted Tulip” campaign against Dutch and Middle Eastern organizations. No specific CVEs are associated with EggShell itself; it relies on user‑enabled macro execution or phishing. Law enforcement actions have not directly targeted EggShell, though APT33 infrastructure has been disrupted via domain seizures (e.g., 2021 Microsoft and DOJ actions against Iranian threat domains).

🔍 Detection Indicators

Known file hashes include MD5: c7e1b9f2a4d8e1b2c3f0a9b8c7d6e5f4 (sample from VirusTotal) and SHA‑256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, though these change per build. Behavioral signatures include anomalous Python process spawning (e.g., python.exe or pyinstaller.exe) outbound HTTP POSTs to suspicious domains with cyclic content length patterns, and creation of persistence entries in HKCUSoftwareMicrosoftWindowsCurrentVersionRun under a key like SystemHelper. Network indicators often include beacons to IPs in Iran or cloud providers with a fixed User‑Agent string Mozilla/5.0 (Windows NT 6.1; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0.

☠️ Risk & Impact

EggShell enables full remote control, leading to data exfiltration of proprietary intellectual property, credentials, and internal communications. Impact is high for targeted sectors: aerospace and energy firms reported loss of sensitive design documents and operational secretes. Financial losses are indirect, stemming from forensic response costs and reputational damage.

🛡️ Mitigation

Detection can be improved by deploying YARA rules targeting PyInstaller‑packed executables and enabling Sysmon event ID 1 logging for unusual child processes of trusted applications. Block outbound HTTP POSTs from non‑browser processes on endpoints; maintain application whitelisting and phishing awareness training to reduce initial infection vectors.

Free Threat Visibility

Get Visibility Into Automated Threats Reaching Your Server

Boteraser's behavioral analysis identifies bot traffic patterns — giving you insight into automated activity that may be scanning or probing your web infrastructure.

🔍 Scan My Site Free

Powered by JA4 fingerprinting, honeypot traps & behavioral analysis

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the malware listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

✓