SeaDuke, also known as SeaDaddy, is a Python-based espionage backdoor used by APT29 (Cozy Bear/The Dukes), a threat group attributed to Russia’s Foreign Intelligence Service. Observed in victim networks from October 2014, it has been deployed selectively against high-value government-level targets in the United States and Europe. It supports Windows and Linux, with analyzed Windows samples packaged using PyInstaller. SeaDaddy was also identified during the 2016 Democratic National Committee intrusion.
SeaDuke provides remote command and Python code execution, system-information collection, bidirectional file transfer, configuration updates, and self-removal. Its modular framework supports additional payloads for extracting Microsoft Exchange email using compromised credentials, conducting Kerberos pass-the-ticket attacks through PowerShell-based Mimikatz execution, archiving sensitive information, exfiltrating data through legitimate cloud services, and securely deleting files. On Windows, persistence mechanisms include Registry autorun entries and shortcuts in the Startup folder.
APT29 has installed SeaDuke on systems already compromised with CozyCar/Cozyduke, using encoded PowerShell scripts to download and execute the backdoor. SeaDuke uses layered code obfuscation and encrypted command-and-control communications over HTTP or HTTPS. Its communications employ Base64 encoding and RC4 or AES encryption, with compromised web servers serving as command-and-control infrastructure. Secure deletion and self-removal capabilities help eliminate operational artifacts.
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
APT29 has used encoded PowerShell scripts uploaded to CozyCar installations to download and install SeaDuke.
Seaduke (detected by Symantec as Trojan.Seaduke) is a low-profile information-stealing Trojan which appears to be reserved for attacks against a small number of high-value targets.
Seaduke (detected by Symantec as Trojan.Seaduke) is a low-profile information-stealing Trojan which appears to be reserved for attacks against a small number of high-value targets.
33 distinct techniques documented for this family, organized by ATT&CK tactic.
Some [SeaDuke](https://attack.mitre.org/software/S0053) samples have a module to extract email from Microsoft Exchange servers using compromised credentials.(Citation: Symantec Seaduke 2015)
APT29 has been observed crafting targeted spearphishing campaigns leveraging web links to a malicious dropper; once executed, the code delivers Remote Access Tools (RATs) and evades detection using a range of techniques.
Cozy Bear ran SeaDaddy (also known as SeaDuke, a backdoor developed in Python and compiled as a Windows executable) as well as a one-line Windows PowerShell command that exploited Microsoft’s Windows Management Instrumentation (WMI) system.
Other alternatives include using a universal scripting language, such as Python, to write their codebase. This was seen previously by the Chafer threat group that wrote one of their payloads in Python.
[SeaDuke](https://attack.mitre.org/software/S0053) uses a module to execute Mimikatz with PowerShell to perform [Pass the Ticket](https://attack.mitre.org/techniques/T1550/003).(Citation: Symantec Seaduke 2015)
[SeaDuke](https://attack.mitre.org/software/S0053) is capable of executing commands.(Citation: Unit 42 SeaDuke 2015)
Because the sample was written in Python originally, we’re able to extract the underlying code... The following commands have been identified in Seaduke... eval Execute Python code
Some [SeaDuke](https://attack.mitre.org/software/S0053) samples have a module to extract email from Microsoft Exchange servers using compromised credentials.(Citation: Symantec Seaduke 2015)
[SeaDuke](https://attack.mitre.org/software/S0053) uses an event filter in WMI code to execute a previously dropped executable shortly after system startup.(Citation: FireEye WMI 2015)
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[SeaDuke](https://attack.mitre.org/software/S0053) is capable of persisting via the Registry Run key or a .lnk file stored in the Startup directory.(Citation: Unit 42 SeaDuke 2015)
[SeaDuke](https://attack.mitre.org/software/S0053) is capable of persisting via a .lnk file stored in the Startup directory.(Citation: Unit 42 SeaDuke 2015)
Some [SeaDuke](https://attack.mitre.org/software/S0053) samples have a module to extract email from Microsoft Exchange servers using compromised credentials.(Citation: Symantec Seaduke 2015)
[SeaDuke](https://attack.mitre.org/software/S0053) uses an event filter in WMI code to execute a previously dropped executable shortly after system startup.(Citation: FireEye WMI 2015)
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[SeaDuke](https://attack.mitre.org/software/S0053) is capable of persisting via the Registry Run key or a .lnk file stored in the Startup directory.(Citation: Unit 42 SeaDuke 2015)
[SeaDuke](https://attack.mitre.org/software/S0053) is capable of persisting via a .lnk file stored in the Startup directory.(Citation: Unit 42 SeaDuke 2015)
The malware samples contained complex coding structures and utilized obfuscation techniques that we have seen advanced adversaries utilize in other investigations we have conducted.
[SeaDuke](https://attack.mitre.org/software/S0053) has been packed with the UPX packer.(Citation: Unit 42 SeaDuke 2015)
They have the ability to retrieve detailed bot/system information, update bot configuration, upload files, download files, and self-delete the malware from the system.
[SeaDuke](https://attack.mitre.org/software/S0053) can securely delete files, including deleting itself from the victim.(Citation: Symantec Seaduke 2015)
Some [SeaDuke](https://attack.mitre.org/software/S0053) samples have a module to extract email from Microsoft Exchange servers using compromised credentials.(Citation: Symantec Seaduke 2015)
When the malware is initially run, it will determine on which operating system it is running. Should it be running on a non-Windows system, we see a call to the infamous ‘forkmeiamfamous’ method.
GALLIUM used PowerShell for execution to assist in lateral movement as well as for dumping credentials stored on compromised machines.
They have the ability to retrieve detailed bot/system information, update bot configuration, upload files, download files, and self-delete the malware from the system.
They have the ability to retrieve detailed bot/system information, update bot configuration, upload files, download files, and self-delete the malware from the system.
When the malware is initially run, it will determine on which operating system it is running. Should it be running on a non-Windows system, we see a call to the infamous ‘forkmeiamfamous’ method.
Some [SeaDuke](https://attack.mitre.org/software/S0053) samples have a module to use pass the ticket with Kerberos for authentication.(Citation: Symantec Seaduke 2015)
"module to extract email from Microsoft Exchange servers using compromised credentials"; "used stolen credentials to compromise Outlook Web Access (OWA)"; "used valid, compromised email accounts... to send malicious emails"
Some [SeaDuke](https://attack.mitre.org/software/S0053) samples have a module to extract email from Microsoft Exchange servers using compromised credentials.(Citation: Symantec Seaduke 2015)
[SeaDuke](https://attack.mitre.org/software/S0053) compressed data with zlib prior to sending it over C2.(Citation: Mandiant No Easy Breach)
The communication protocol employed had many layers of encryption and obfuscation... Seaduke securely communicates with the C&C server over HTTP/HTTPS beneath layers of encoding (Base64) and encryption (RC4, AES).
The centerpiece is a server-oriented Linux kernel rootkit that hooks netfilter traffic control functions in order to enable firewall-traversing covert C2 (command-and-control) communications.
[SeaDuke](https://attack.mitre.org/software/S0053) uses HTTP and HTTPS for C2.(Citation: F-Secure The Dukes)
[SeaDuke](https://attack.mitre.org/software/S0053) is capable of uploading and downloading files.(Citation: Unit 42 SeaDuke 2015)
ADVSTORESHELL C2 traffic is encrypted, then encoded with Base64 encoding. APT19 HTTP malware variant used Base64 to encode communications to the C2 server. APT33 has used base64 to encode command and control traffic.
[SeaDuke](https://attack.mitre.org/software/S0053) C2 traffic is base64-encoded.(Citation: Unit 42 SeaDuke 2015)
once executed, the code delivers Remote Access Tools (RATs) and evades detection using a range of techniques.
The content is a catalog of malware and threat groups that encrypt command-and-control communications using algorithms such as DES, AES, RC4, XOR, Blowfish, RSA, Camellia, RC2, RC6, and custom ciphers.
[SeaDuke](https://attack.mitre.org/software/S0053) C2 traffic has been encrypted with RC4 and AES.(Citation: Mandiant No Easy Breach)(Citation: Unit 42 SeaDuke 2015)
The malware hides behind numerous layers of encryption and obfuscation and is capable of quietly stealing and exfiltrating sensitive information such as email from the victim’s computer.
51 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.