IMAPLoader
- Type
- Backdoor
- Capabilities
- ExfiltrationPersistenceDefense evasionReconnaissanceProcess injection
- Delivery
- Watering holeDrive by
- Platforms
- Windows
IMAPLoader is Windows malware used by the Iranian-aligned threat actor Tortoiseshell, also tracked as Imperial Kitten, and by CURIUM. It uses the IMAP email protocol for command-and-control communication through dedicated attacker-controlled email accounts. IMAPLoader has also been used to exfiltrate data over IMAP and SMTPS.
IMAPLoader gathers information about compromised hosts through Windows Management Instrumentation queries. It establishes persistence by creating scheduled tasks, adapting task creation to the victim’s operating-system version. To conceal execution, it hides its console window using the GetConsoleWindow and ShowWindow APIs.
Observed delivery methods include strategic website compromise and drive-by infection. Tortoiseshell has also delivered IMAPLoader through malicious Microsoft Excel documents using AppDomainManager injection. Imperial Kitten has deployed the malware within an operational portfolio associated with attacks against transportation, logistics, and technology organizations.
Associated threat actors
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.
[IMAPLoader](https://attack.mitre.org/software/S1152) was deployed by [CURIUM](https://attack.mitre.org/groups/G1012) as a post-exploitation payload from strategic website compromise.(Citation: PWC Yellow Liderc 2023)
Imperial Kitten uses several malware families, including custom implants; IMAPLoader and StandardKeyboard, which both use email for command and control (C2) communication.
CURIUM has created dedicated email accounts for use with tools such as IMAPLoader.
Techniques & procedures
14 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
APT1 has created email accounts for later use in social engineering, phishing, and when registering domains. APT42 has created email accounts to use in spearphishing operations. Contagious Interview has created fake email accounts to correspond with social media accounts, fake LinkedIn personas, code repository accounts, and job announcements on development job board services.
Initial Access
1 technique
Initial Access
CURIUM has used strategic website compromise to infect victims with malware such as IMAPLoader.
Execution
5 techniques
Execution
[IMAPLoader](https://attack.mitre.org/software/S1152) uses WMI queries to query system information on victim hosts.(Citation: PWC Yellow Liderc 2023)
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[IMAPLoader](https://attack.mitre.org/software/S1152) creates scheduled tasks for persistence based on the operating system version of the victim machine.(Citation: PWC Yellow Liderc 2023)
[IMAPLoader](https://attack.mitre.org/software/S1152) imports native Windows APIs such as `GetConsoleWindow` and `ShowWindow`.(Citation: PWC Yellow Liderc 2023)
[IMAPLoader](https://attack.mitre.org/software/S1152) is executed via the AppDomainManager injection technique.(Citation: PWC Yellow Liderc 2023)
Persistence
3 techniques
Persistence
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[IMAPLoader](https://attack.mitre.org/software/S1152) creates scheduled tasks for persistence based on the operating system version of the victim machine.(Citation: PWC Yellow Liderc 2023)
[IMAPLoader](https://attack.mitre.org/software/S1152) modifies Windows tasks on the victim machine to reference a retrieved PE file through a path modification.(Citation: PWC Yellow Liderc 2023)
Privilege Escalation
3 techniques
Privilege Escalation
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[IMAPLoader](https://attack.mitre.org/software/S1152) creates scheduled tasks for persistence based on the operating system version of the victim machine.(Citation: PWC Yellow Liderc 2023)
[IMAPLoader](https://attack.mitre.org/software/S1152) modifies Windows tasks on the victim machine to reference a retrieved PE file through a path modification.(Citation: PWC Yellow Liderc 2023)
Stealth
2 techniques
Stealth
[IMAPLoader](https://attack.mitre.org/software/S1152) hides the Windows Console window created by its execution by directly importing the `kernel32.dll` and `user32.dll` libraries `GetConsoleWindow` and `ShowWindow` APIs.(Citation: PWC Yellow Liderc 2023)
[IMAPLoader](https://attack.mitre.org/software/S1152) is executed via the AppDomainManager injection technique.(Citation: PWC Yellow Liderc 2023)
Discovery
1 technique
Discovery
[IMAPLoader](https://attack.mitre.org/software/S1152) uses WMI queries to gather information about the victim machine.(Citation: PWC Yellow Liderc 2023)
Command and Control
2 techniques
Command and Control
[IMAPLoader](https://attack.mitre.org/software/S1152) uses the IMAP email protocol for command and control purposes.(Citation: PWC Yellow Liderc 2023)
[IMAPLoader](https://attack.mitre.org/software/S1152) is a loader used to retrieve follow-on payload encoded in email messages for execution on victim systems.(Citation: PWC Yellow Liderc 2023)
Exfiltration
2 techniques
Exfiltration
ADVSTORESHELL exfiltrates data over the same channel used for C2... Agrius exfiltrated staged data using tools such as Putty and WinSCP, communicating with command and control servers... numerous malware and groups sent victim data, files, credentials, or host information over existing C2 channels.
Cannon exfiltrates collected data over email via SMTP/S and POP3/S C2 channels... CURIUM has used IMAP and SMTPS for exfiltration via tools such as IMAPLoader... Kevin can send data from the victim host through a DNS C2 channel... NightClub can use SMTP and DNS for file exfiltration and C2.
Observables
12 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.