Emotet
- Type
- Loader
- Capabilities
- Credential theftPersistenceInitial accessLateral movementDefense evasionReconnaissanceBrute forceProcess injection
- Delivery
- PhishingMalspamLure
- Platforms
- Windows
Emotet, also known as Geodo and Heodo, is a modular Windows malware family first identified in 2014 as a banking trojan. It subsequently evolved into a loader and botnet used to steal information, distribute malicious email, and provide access for additional malware. Its payload ecosystem has included TrickBot, Ryuk ransomware, BumbleBee, SystemBC, and Cobalt Strike. International law enforcement disrupted its infrastructure in 2021, but it later reemerged with assistance from TrickBot.
Emotet primarily spreads through large-scale phishing and spam campaigns containing malicious links or attachments, including macro-enabled Microsoft Office documents packaged in ZIP archives. Campaigns use topical lures, harvested contacts, and compromised email accounts to make messages appear credible. Document-based infection chains have used encoded PowerShell commands and Windows Management Instrumentation to retrieve and execute payloads while obscuring their relationship to Office processes.
Its modular capabilities include stealing browser and email credentials, collecting Outlook information and email contacts, distributing spam, gathering system and network information, and downloading or executing additional programs and DLLs. Emotet has established persistence through Windows autorun mechanisms and spread laterally by brute-forcing credentials, copying itself to administrative network shares, and creating remote services over SMB.
Emotet employs polymorphism, obfuscation, legitimate Windows utilities, and process hollowing to hinder detection. Observed campaigns inflated malicious documents and DLLs beyond 500 MB using zero-byte padding to exceed security-scanning limits while retaining small compressed delivery sizes. Analyzed versions support encrypted command-and-control communications, self-updates, in-memory DLL loading, and multiple payload-execution methods. Its role as a malware-distribution platform makes an infection a potential precursor to broader compromise and ransomware deployment.
Associated vulnerabilities
4 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
28 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
(Citation: CrowdStrike Grim Spider May 2019)(Citation: Sophos New Ryuk Attack October 2020)
The Ryuk group has been reported to target high-revenue companies, using the Emotet/Trickbot trojans to enter internal networks.
Besides BEC, the group has also been linked to other malicious schemes such as propagating Emotet, Trickbot, and click-fraud malware.
In 2019, a relationship between Emotet, TrickBot, and Ryuk ransomware was discovered, where the Ryuk ransomware operators were granted access to an organization through a TrickBot infection.
In Dec 2019, the company’s researchers captured multiple conversations in hackers’ communities discussing the launch of EMOTET campaigns.
In Dec 2019, the company’s researchers captured multiple conversations in hackers’ communities discussing the launch of EMOTET campaigns.
+22 more in the app. View in Mallory
Techniques & procedures
171 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
8 techniques
Reconnaissance
Outlook contact harvester
Emotet deploys modules that are able to steal credentials from browsers and email applications.
Emotet deploys modules that can extract email addresses from email applications.
Emotet gathers information about hardware of the compromised machine, such as CPU brand string.
Emotet exfiltrates a list of running processes.
Emotet gathers information about system configuration such as the ipconfig /all and systeminfo commands.
one instance involved a large volume of scanning against customer Simple Mail Transfer Protocol (SMTP) servers. We conclude this was likely an attempt to identify more malspam targets.
The victim PC eventually started sending out spam emails... The attached zip file contains a malicious Excel spreadsheet, which is designed to infect new victims with Emotet.
Resource Development
12 techniques
Resource Development
The malware later evolved and would automatically use the contacts on an infected computer to send automated phishing emails, increasing the botnet’s size.
most of the servers seem to have been hosting legitimate websites for a long time... leads me to one conclusion: all of these servers have been compromised
Emotet compromises numerous third-party systems to form a botnet.
Stealing reply-chain emails is a known Emotet tactic used to camouflage malicious emails as parts of existing conversations for higher credibility and better infection rates in future spam campaigns.
One important strategy was using email thread hijacking: inserting poisoned emails into existing conversations to fool the recipients into opening the bait.
This new tactic adds to the Emotet gang's leveraging of hijacked email conversation threads where a malicious URL or attachment would be included in new emails attached to existing conversations as a concealment measure
we have seen significantly more Emotet malspam using a technique called "thread hijacking" that utilizes legitimate messages stolen from infected computers' email clients. This malspam spoofs a legitimate user and impersonates a reply to the stolen email.
The Outlook mail harvester is a targeted way of spreading Emotet by highjacking email threads
Conti has also been credited with resurrecting and integrating the Emotet botnet into its multi-pronged attack framework starting November 2021, with TrickBot, ironically, utilized as a delivery vehicle to distribute the malware after a gap of 10 months.
By leveraging on commodity malware, they are attempting to operate under the cloak of anonymity to avoid being identified as state-sponsored hacker groups.
Emotet uses NirSoft tools to steal credentials from infected machines.
The server’s ECDSA public key is used to verify the response messages the malware receives... it calculates the SHA256 hash of the decrypted data and uses BCryptVerifySignature to verify the integrity and authenticity.
Initial Access
10 techniques
Initial Access
it is a targeted ransomware installed through network access provided by trojans such as Emotet. Once the MegaCortex actors gain access...
[Emotet](https://attack.mitre.org/software/S0367) can brute force a local admin password, then use it to facilitate lateral movement.(Citation: Malwarebytes Emotet Dec 2017)
Upnp was used to enable port forwarding and make the victim machine accessible from the WAN... checking if the compromised machine has been successfully made accessible from the outside, and is available for the C&C to initiate contact with.
T1189 - Point d’eau ... Plus rarement, Emotet peut également être distribué par le kit d’exploitation RIG, via des sites Internet compromis.
According to SocRadar, the group exploits zero-day vulnerabilities to bypass security defenses and has deployed malware including GrandCrab and Emotet.
Malicious emails appear to come from contacts, so beware of emails that seem legitimate as well.
“It turned infected systems into spam bots... The malware would exfiltrate each victim’s email inbox, contact list, and SMTP credentials. That data was then used to forge malicious emails originating from the victim’s email address.”
[Emotet](https://attack.mitre.org/software/S0367) has been delivered by phishing emails containing attachments. (Citation: CIS Emotet Apr 2017)(Citation: Malwarebytes Emotet Dec 2017)(Citation: Symantec Emotet Jul 2018)(Citation: US-CERT Emotet Jul 2018)(Citation: Talos Emotet Jan 2019)(Citation: Trend Micro Emotet Jan 2019)(Citation: Picus Emotet Dec 2018)(Citation: Carbon Black Emotet Apr 2019)(Citation: IBM IcedID November 2017)
[Emotet](https://attack.mitre.org/software/S0367) has been delivered by phishing emails containing links. (Citation: Trend Micro Banking Malware Jan 2019)(Citation: Kaspersky Emotet Jan 2019)(Citation: CIS Emotet Apr 2017)(Citation: Malwarebytes Emotet Dec 2017)(Citation: Symantec Emotet Jul 2018)(Citation: US-CERT Emotet Jul 2018)(Citation: Talos Emotet Jan 2019)(Citation: Talos Emotet Jan 2019)(Citation: Picus Emotet Dec 2018)
After it receives the information from the C2 server, the module constructs and sends the spam using the SMTP protocol... Then the client authenticates itself using the stolen credentials and the mail transaction is started with the template and the malicious object.
Execution
17 techniques
Execution
Newer document versions will schedule the execution of PowerShell via WMI. This breaks up the process tree by detaching it from Microsoft Office processes.
Check the following settings... Task Scheduler Service... If there is a suspicious executable file under C:\ProgramData\ that is registered in the Task Scheduler, it is likely that the device is also infected with Trickbot.
[Emotet](https://attack.mitre.org/software/S0367) has maintained persistence through a scheduled task, e.g. though a .dll file in the Registry.(Citation: US-CERT Emotet Jul 2018)(Citation: emotet_hc3_nov2023)
EMOTET本体には、複数のC&Cサーバの接続先情報が暗号化された状態でハードコードされており、それらのC&Cサーバへ順に接続を開始します。
PowerShell downloads the payload for the next stage and executes it.
It launches several instances of cmd.exe and runs commands to disable Windows security measures.
[Emotet](https://attack.mitre.org/software/S0367) has sent Microsoft Word documents with embedded macros that will invoke scripts to download additional payloads. (Citation: Symantec Emotet Jul 2018)(Citation: Talos Emotet Jan 2019)(Citation: Trend Micro Emotet Jan 2019)(Citation: Picus Emotet Dec 2018)(Citation: Carbon Black Emotet Apr 2019)
It then calls another function to write script data to a VBS file and save it in the "C:\ProgramData\" folder. Next, it uses "Wscript.exe" to execute the VBS file. | Script code in the HTA file extracts JavaScript code to download the Emotet malware.
[Emotet](https://attack.mitre.org/software/S0367) has used `CreateProcess` to create a new process to run its executable and `WNetEnumResourceW` to enumerate non-hidden shares.(Citation: Binary Defense Emotes Wi-Fi Spreader)
The Emotet loader downloads modules from its C2 server and executes them. These modules are implemented as Windows libraries (PE DLLs).
It spreads itself abundantly through spam emails, network shares and the Rig Exploit Kit.
Opening the malicious attachment leads to the deployment of malware.
[Emotet](https://attack.mitre.org/software/S0367) has relied upon users clicking on a malicious link delivered through spearphishing.(Citation: Trend Micro Banking Malware Jan 2019)(Citation: Carbon Black Emotet Apr 2019)
[Emotet](https://attack.mitre.org/software/S0367) has relied upon users clicking on a malicious attachment delivered through spearphishing.(Citation: Trend Micro Banking Malware Jan 2019)(Citation: Carbon Black Emotet Apr 2019)(Citation: IBM IcedID November 2017)
MITRE Techniques ... Dynamic Data Exchange – T1559.002
Figure 7 shows Wireshark recording the SMB spreader traffic, which represent the creation and the execution of a remote service... | ...the core Emotet DLL, as well as any other component executed by the core module, is running in a service hosted by regsvr32.exe under the SYSTEM account...
and hijacked old email threads by sending new messages to known contacts containing malicious Office documents laced with malware
Persistence
13 techniques
Persistence
Check the following settings... Task Scheduler Service... If there is a suspicious executable file under C:\ProgramData\ that is registered in the Task Scheduler, it is likely that the device is also infected with Trickbot.
[Emotet](https://attack.mitre.org/software/S0367) has maintained persistence through a scheduled task, e.g. though a .dll file in the Registry.(Citation: US-CERT Emotet Jul 2018)(Citation: emotet_hc3_nov2023)
it is a targeted ransomware installed through network access provided by trojans such as Emotet. Once the MegaCortex actors gain access...
[Emotet](https://attack.mitre.org/software/S0367) can brute force a local admin password, then use it to facilitate lateral movement.(Citation: Malwarebytes Emotet Dec 2017)
This command creates a scheduled task named {AO8F7C8F-D95F-4395-8732-9818EO0F3DB2} that periodically executes Base64-encoded PowerShell code stored in the registry key HKEY_CURRENT_USER\SOFTWARE\Cvdijvkees.
Upnp was used to enable port forwarding and make the victim machine accessible from the WAN... checking if the compromised machine has been successfully made accessible from the outside, and is available for the C&C to initiate contact with.
This sample has a VBA function called "Workbook_Open()" or "Document_Open()" that is executed automatically when the file is opened.
En juillet 2020, il a été constaté que sur les sites Wordpress compromis, TA542 utilisait un webshell disponible sur Github associé au même mot de passe.
Next, the thread-module creates a suspended process with this file.
[Emotet](https://attack.mitre.org/software/S0367) has been observed creating new services to maintain persistence.(Citation: US-CERT Emotet Jul 2018)(Citation: Secureworks Emotet Nov 2018)(Citation: Binary Defense Emotes Wi-Fi Spreader)
MITRE ATT&CK TTP Mapping Tactic Technique T1547 LSASS Driver
TrickBot establishes persistence in the Windows Startup folder. ... Emotet maintains persistence by adding the downloaded payload to the Run key.
We also discovered that the recent Emotet samples employ LNK (link) files to download 64-bit loaders... These allow Emotet to directly execute PowerShell commands for payload execution.
Privilege Escalation
15 techniques
Privilege Escalation
Check the following settings... Task Scheduler Service... If there is a suspicious executable file under C:\ProgramData\ that is registered in the Task Scheduler, it is likely that the device is also infected with Trickbot.
[Emotet](https://attack.mitre.org/software/S0367) has maintained persistence through a scheduled task, e.g. though a .dll file in the Registry.(Citation: US-CERT Emotet Jul 2018)(Citation: emotet_hc3_nov2023)
Aria-body has the ability to inject itself into another process such as rundll32.exe and dllhost.exe... BlackEnergy injects its DLL component into svchost.exe... ComRAT has injected its orchestrator DLL into explorer.exe... Stuxnet injects an entire DLL into an existing, newly created, or preselected trusted process.
[Emotet](https://attack.mitre.org/software/S0367) has been observed injecting in to Explorer.exe and other processes. (Citation: Picus Emotet Dec 2018)(Citation: Trend Micro Banking Malware Jan 2019)(Citation: US-CERT Emotet Jul 2018)
la quarta funzione... è usata per ottenere l’indirizzo del PEB... questa funzione scorre la lista dei moduli (DLL) caricati in memoria.
[Emotet](https://attack.mitre.org/software/S0367) uses a copy of `certutil.exe` stored in a temporary directory for process hollowing, starting the program in a suspended state before loading malicious code.(Citation: emotet_trendmicro_mar2023)
it is a targeted ransomware installed through network access provided by trojans such as Emotet. Once the MegaCortex actors gain access...
[Emotet](https://attack.mitre.org/software/S0367) can brute force a local admin password, then use it to facilitate lateral movement.(Citation: Malwarebytes Emotet Dec 2017)
The token from the logged-on user gets duplicated by calling DuplicateToken with the SecurityImpersonation level. Then the spreader calls ImpersonateLoggedOnUser to complete the impersonation of the logged-on user.
[Emotet](https://attack.mitre.org/software/S0367) has the ability to duplicate the user’s token.(Citation: Binary Defense Emotes Wi-Fi Spreader) For example, [Emotet](https://attack.mitre.org/software/S0367) may use a variant of Google’s ProtoBuf to send messages that specify how code will be executed.(Citation: emotet_hc3_nov2023)
Next, the thread-module creates a suspended process with this file.
[Emotet](https://attack.mitre.org/software/S0367) has been observed creating new services to maintain persistence.(Citation: US-CERT Emotet Jul 2018)(Citation: Secureworks Emotet Nov 2018)(Citation: Binary Defense Emotes Wi-Fi Spreader)
MITRE ATT&CK TTP Mapping Tactic Technique T1547 LSASS Driver
TrickBot establishes persistence in the Windows Startup folder. ... Emotet maintains persistence by adding the downloaded payload to the Run key.
We also discovered that the recent Emotet samples employ LNK (link) files to download 64-bit loaders... These allow Emotet to directly execute PowerShell commands for payload execution.
Stealth
46 techniques
Stealth
In the newer versions the configuration is calculated at runtime... hidden within the actual code. The malware uses Mixed Boolean-Arithmetic (MBA) as one of its obfuscation techniques.
[Emotet](https://attack.mitre.org/software/S0367) inflates malicious files and malware as an evasion technique.(Citation: emotet_trendmicro_mar2023)
[Emotet](https://attack.mitre.org/software/S0367) has used custom packers to protect its payloads.(Citation: Trend Micro Emotet Jan 2019)
Using whitespace obfuscation is a typical example of a steganography technique (see MITRE report T1027.003) to hide code or make analysis harder.
Brief Analysis (API/strings) n アンパック後のEMOTETは Import Tableが空 ○ 動的にAPIを解決している可能性 n APIに関連する⽂字列もなし ○ API含む⽂字列が暗号化・難読化されている 可能性
We observed the attached HTML file and the webpage of the download link use a technique called HTML smuggling, which leverages legitimate HTML5 and JavaScript features to encode the malicious data.
Emotet is careful to run itself and all its components without an import address table in order to avoid static analysis. The import table is constructed dynamically by comparing the pre-computed hash values with the function names.
[Emotet](https://attack.mitre.org/software/S0367) has dropped an embedded executable at `%Temp%\setup.exe`.(Citation: Binary Defense Emotes Wi-Fi Spreader) Additionally, [Emotet](https://attack.mitre.org/software/S0367) may embed entire code into other files.(Citation: emotet_hc3_nov2023)
[Emotet](https://attack.mitre.org/software/S0367) has obfuscated macros within malicious documents to hide the URLs hosting the malware, CMD.exe arguments, and PowerShell scripts. (Citation: Talos Emotet Jan 2019)(Citation: Trend Micro Emotet Jan 2019)(Citation: Picus Emotet Dec 2018)(Citation: ESET Emotet Dec 2018)
[Emotet](https://attack.mitre.org/software/S0367) uses obfuscated URLs to download a ZIP file.(Citation: emotet_trendmicro_mar2023)
Emotet leveraged advanced evasion techniques, including polymorphic code...
The pseudocode at sub_18002629C stores its encrypted string as stack string, then calls the et_decrypt_string ( 0x180025C58 ) function to decrypt
Exploitation allows a threat actor to create a malicious file that appears to be a legitimate application.
[Emotet](https://attack.mitre.org/software/S0367) has installed itself as a new service with the service name `Windows Defender System Service` and display name `WinDefService`.(Citation: Binary Defense Emotes Wi-Fi Spreader)
Aria-body has the ability to inject itself into another process such as rundll32.exe and dllhost.exe... BlackEnergy injects its DLL component into svchost.exe... ComRAT has injected its orchestrator DLL into explorer.exe... Stuxnet injects an entire DLL into an existing, newly created, or preselected trusted process.
[Emotet](https://attack.mitre.org/software/S0367) has been observed injecting in to Explorer.exe and other processes. (Citation: Picus Emotet Dec 2018)(Citation: Trend Micro Banking Malware Jan 2019)(Citation: US-CERT Emotet Jul 2018)
la quarta funzione... è usata per ottenere l’indirizzo del PEB... questa funzione scorre la lista dei moduli (DLL) caricati in memoria.
[Emotet](https://attack.mitre.org/software/S0367) uses a copy of `certutil.exe` stored in a temporary directory for process hollowing, starting the program in a suspended state before loading malicious code.(Citation: emotet_trendmicro_mar2023)
Samples observed employed randomly generated file names by victim asset and altered its file composition on disk at regular intervals to evade detection based on file hash.
Afterward, the script deletes itself from disk.
A call to the MoveFileExW() function will move the file from its original location to this new one.
it is a targeted ransomware installed through network access provided by trojans such as Emotet. Once the MegaCortex actors gain access...
[Emotet](https://attack.mitre.org/software/S0367) can brute force a local admin password, then use it to facilitate lateral movement.(Citation: Malwarebytes Emotet Dec 2017)
The token from the logged-on user gets duplicated by calling DuplicateToken with the SecurityImpersonation level. Then the spreader calls ImpersonateLoggedOnUser to complete the impersonation of the logged-on user.
[Emotet](https://attack.mitre.org/software/S0367) has the ability to duplicate the user’s token.(Citation: Binary Defense Emotes Wi-Fi Spreader) For example, [Emotet](https://attack.mitre.org/software/S0367) may use a variant of Google’s ProtoBuf to send messages that specify how code will be executed.(Citation: emotet_hc3_nov2023)
[Emotet](https://attack.mitre.org/software/S0367) has used a self-extracting RAR file to deliver modules to victims. Emotet has also extracted embedded executables from files using hard-coded buffer offsets.(Citation: Binary Defense Emotes Wi-Fi Spreader)
MITRE reports T1218 and T1216 provide more information on signed binary proxy execution and signed script proxy execution, respectively.
the Excel file now contains instructions for potential victims to copy the file to a Microsoft Office Template location and run it from there instead. This is a trusted location and opening a document located in this folder will cause immediate execution of the macros without any warnings
Once executed, the macro invokes cmd.exe > mshta.exe with the URL containing the hex representation of the IP address as an argument, which will download and execute an HTML application (HTA) code from the remote host.
Using Elliptic curve cryptography instead of RSA cryptography, improving its control flow flatting methods, adding to the initial infection by using malicious Windows app installer packages that imitate legitimate software and more.
[Emotet](https://attack.mitre.org/software/S0367) uses RegSvr32 to execute the DLL payload.(Citation: emotet_trendmicro_mar2023)
Start-Process $fp -ArgumentList $a; break;
Legitimate system tools such as PowerShell and Windows Management Instrumentation are being abused for malicious activities, since these are all built-in tools that run in Windows operating system.
The XSL script is executed using the WMI Command Line Utility (wmic.exe). MITRE refers to this technique of executing XSL as a squiblytwo attack.
This volume serial number is used to create a series of mutex and event handles, with object names as follows (%X is the format of the volume serial number): Global\\I%X — MutexI Global\\M%X — MutexM Global\\E%X — EventE
EMOTETは感染環境のプロセスリストやコンピュータ名等をC&Cサーバへ送信し、C&Cサーバで解析環境かどうかの判断を行い、応答情報に差異を持たせることでEMOTETの動作を制御していることがわかります。
The wrapper checks whether the system is 32- or 64-bit using the IsWow64Process API... Older versions even check some folder names, looking for AV vendors and VMs, as well as checking the VM-related files.
If the malware stays inactive until the analysis is finished, it could avoid detection... The Emotet loaders took almost a minute to execute this code.
hidden sheets can be revealed... Another trick to avoid analysis was to scatter and blank data in cells... hidden thanks to a white font color.
some sheets are hidden, including the one that contains the malicious formulas.
The second argument (the 0 ) sets the window mode of the shell. The value zero equals vbHide , meaning the shell window is hidden from the user.
The malware will attempt to ease its entry into the system by deleting the Zone Identifier Alternate Data Stream (ADS).
and hijacked old email threads by sending new messages to known contacts containing malicious Office documents laced with malware
[Emotet](https://attack.mitre.org/software/S0367) has reflectively loaded payloads into memory.(Citation: Binary Defense Emotes Wi-Fi Spreader)
When UserName is admin, DnsHostName is SystemIT, and if there’s a Debugger symbol file like C:\Symbols\aagmmc.pdb.
nombre de ses campagnes d’hameçonnage exploitent une technique de détournement des fils de discussion des courriels ( email thread hijacking technique )
Defense Impairment
3 techniques
Defense Impairment
This command creates a scheduled task named {AO8F7C8F-D95F-4395-8732-9818EO0F3DB2} that periodically executes Base64-encoded PowerShell code stored in the registry key HKEY_CURRENT_USER\SOFTWARE\Cvdijvkees.
MITRE ATT&CK TTP Mapping Tactic Technique T1562 Disable or Modify Tools
The module uses netsh.exe to bypass firewall rules in order to allow inbound network traffic for the specified Emotet sample.
Credential Access
16 techniques
Credential Access
GALLIUM used PowerShell for execution to assist in lateral movement as well as for dumping credentials stored on compromised machines.
[Emotet](https://attack.mitre.org/software/S0367) has been observed dropping and executing password grabber modules including [Mimikatz](https://attack.mitre.org/software/S0002).(Citation: Trend Micro Emotet Jan 2019)(Citation: emotet_hc3_nov2023)
[Emotet](https://attack.mitre.org/software/S0367) has been observed to hook network APIs to monitor network traffic. (Citation: Trend Micro Banking Malware Jan 2019)
This study analyzes the banking malware that steals the credentials used to access online banking or payment system accounts and to intercept one-time passwords.
| COLLECTION | Input Capture::Keylogging T1056.001 |
Banking module : This module intercepts network traffic from the browser to steal banking details entered by the user.
ID: T1110.001 Sub-technique of: T1110
[Emotet](https://attack.mitre.org/software/S0367) has been observed using a hard coded list of passwords to brute force user accounts. (Citation: Malwarebytes Emotet Dec 2017)(Citation: Symantec Emotet Jul 2018)(Citation: US-CERT Emotet Jul 2018)(Citation: Secureworks Emotet Nov 2018)(Citation: CIS Emotet Dec 2018)(Citation: Binary Defense Emotes Wi-Fi Spreader)
EMOTETはこのMAPIを利用してアクセス可能なOutlookに関するあらゆる情報を窃取することが可能です。
Attackers are increasingly turning to stealing the “cookies” associated with credentials to clone active or recent web sessions—bypassing MFA in the process.
[Emotet](https://attack.mitre.org/software/S0367) has been observed leveraging a module that retrieves passwords stored on a system for the current logged-on user. (Citation: US-CERT Emotet Jul 2018)(Citation: CIS Emotet Dec 2018)
EMOTETは感染PC内に保存された様々な認証情報を窃取しますが、その際、フリーツールのNirSoftを悪用していることを確認しました。
Mail PassView is also a password-recovery tool from NirSoft... it scans for email client settings and passwords on the system... The results of this tool are used by the spam module...
[Emotet](https://attack.mitre.org/software/S0367) has been observed dropping browser password grabber modules. (Citation: Trend Micro Emotet Jan 2019)(Citation: IBM IcedID November 2017)
Going through its code and constant strings, we learned it could obtain email account settings and credentials from the following email clients or other clients that could save email credentials
Steal credentials stored in the device or browsers
Discovery
21 techniques
Discovery
enumera i servizi ( EnumServicesStatusExW, Process32FirstW, Process32NextW)
MITRE ATT&CK TTP Mapping Tactic Technique T1010 Application Window Discovery
It collects the settings and credentials from both the system registry and the local configuration files of these email clients.
Regsvr32 executes system discovery commands for enumeration via ipconfig.exe and systeminfo.exe. ... System Network Configuration Discovery (T1016)
[Emotet](https://attack.mitre.org/software/S0367) can extract names of all locally reachable Wi-Fi networks and then perform a brute-force attack to spread to new networks.(Citation: Binary Defense Emotes Wi-Fi Spreader)
Active Directory Enumeration Methodologies ... allows TrickBot operators to collect domain controller information once they are already on the compromised machine.
[Emotet](https://attack.mitre.org/software/S0367) has enumerated all users connected to network shares.
[Emotet](https://attack.mitre.org/software/S0367) has been observed to hook network APIs to monitor network traffic. (Citation: Trend Micro Banking Malware Jan 2019)
It is used for stealing user data, performing network reconnaissance, moving laterally, or dropping additional payloads such as Cobalt Strike and ransomware in particular.
[Emotet](https://attack.mitre.org/software/S0367) has been observed enumerating local processes.(Citation: ASEC Emotet 2017)
EMOTET running and gathering system information
The GetSpecialFolder function, when given the argument is 2, returns the path to the temporary folder on the system.
If none of the credentials worked, the spreader tries to enumerate usernames from the target server by calling NetUserEnum.
Emotet leverages a module that can scrape email addresses from Outlook.
[Emotet](https://attack.mitre.org/software/S0367) has enumerated non-hidden network shares using `WNetEnumResourceW`. (Citation: Binary Defense Emotes Wi-Fi Spreader)
EMOTETは感染環境のプロセスリストやコンピュータ名等をC&Cサーバへ送信し、C&Cサーバで解析環境かどうかの判断を行い、応答情報に差異を持たせることでEMOTETの動作を制御していることがわかります。
The wrapper checks whether the system is 32- or 64-bit using the IsWow64Process API... Older versions even check some folder names, looking for AV vendors and VMs, as well as checking the VM-related files.
If the malware stays inactive until the analysis is finished, it could avoid detection... The Emotet loaders took almost a minute to execute this code.
以下のレジストリキーにある値を参照し、値が存在する場合のみ、Outlook情報の窃取に関する挙動を行います。 レジストリキー: HKLM\Software\Clients\Mail\Microsoft Outlook
The generate_machine_id function... uses the format string %s_%08X to concatenate the value generated by GetComputerNameA and GetVolumeInformationW.
When UserName is admin, DnsHostName is SystemIT, and if there’s a Debugger symbol file like C:\Symbols\aagmmc.pdb.
Lateral Movement
7 techniques
Lateral Movement
eSentire observed interactive operators arrive on the compromised asset within one hour of initial infection.
Command ID 02: Downloads an executable file, checks if there is another active Terminal Service session other than the current session identifier of the running Emotet sample, then launches downloaded executable in that active Terminal Service session
[Emotet](https://attack.mitre.org/software/S0367) has leveraged the Admin$, C$, and IPC$ shares for lateral movement. (Citation: Malwarebytes Emotet Dec 2017)(Citation: Binary Defense Emotes Wi-Fi Spreader)
[Emotet](https://attack.mitre.org/software/S0367) has been seen exploiting SMB via a vulnerability exploit like EternalBlue (MS17-010) to achieve lateral movement and propagation.(Citation: Symantec Emotet Jul 2018)(Citation: US-CERT Emotet Jul 2018)(Citation: Secureworks Emotet Nov 2018)(Citation: Red Canary Emotet Feb 2019)
Emotetに感染してしまった場合は... Emotetへの感染を引き起こすメールを他の組織や個人に送信することがあります。
A “pass-the-cookie” attack is a type of attack where an attacker can bypass authentication controls by compromising browser cookies... “Pass-the-cookie” is like pass-the-hash or pass-the-ticket attacks in Active Directory.
[Emotet](https://attack.mitre.org/software/S0367) has copied itself to remote systems using the `service.exe` filename.(Citation: Binary Defense Emotes Wi-Fi Spreader)
Collection
10 techniques
Collection
Infostealers live in infected computers and gather information, allowing attackers to exploit organizations and obtain credentials.
This study analyzes the banking malware that steals the credentials used to access online banking or payment system accounts and to intercept one-time passwords.
| COLLECTION | Input Capture::Keylogging T1056.001 |
Banking module : This module intercepts network traffic from the browser to steal banking details entered by the user.
Once module1 file is executed it creates a temporary file that is used to store the stolen Outlook version information and email addresses that have been collected... the stolen data is saved in a temporary file. In this case, it’s “AE74.tmp.”
[Emotet](https://attack.mitre.org/software/S0367) has been observed leveraging a module that can scrape email addresses from Outlook.(Citation: CIS Emotet Dec 2018)(Citation: IBM IcedID November 2017)(Citation: Binary Defense Emotes Wi-Fi Spreader)
[Emotet](https://attack.mitre.org/software/S0367) has been observed leveraging a module that scrapes email data from Outlook.(Citation: CIS Emotet Dec 2018)
The malware hijacked user banking credentials using the man-in-the-browser technique.
Police in the Netherlands seized huge volumes of data stolen by Emotet infections, including email addresses, usernames and passwords.
このことから図17のデータは zlib で圧縮され、さらに AES による暗号化が行われたデータであったことが判明しました。
Command and Control
20 techniques
Command and Control
The encrypted binary data will be converted into base64 string by calling the API CryptBinaryToStringW(). The base64 string is submitted to the C2 server as a “Cookies” value in an HTTP Get request.
Emotet has used Google’s Protobufs to serialize data sent to and from the C2 server... Kapeka utilizes JSON objects to send and receive information from command and control nodes... Mori can use Base64 encoded JSON libraries used in C2... Remcos can serialize collected data with Protobuf.
These additional details in Emotet's HTTP headers give the appearance of coming from a legitimate request, e.g., a browser or other application. As a result, a static signature on network traffic won’t detect them.
Some of the common protocols used for C2 are HTTP/S, DNS, SSH, and SMTP, as well as common cloud services like Google, Twitter, Dropbox, etc. Using common protocols and services for C2 allows adversaries to masquerade as normal network traffic and hence evade firewalls.
[Emotet](https://attack.mitre.org/software/S0367) has used HTTP for command and control.(Citation: Binary Defense Emotes Wi-Fi Spreader)
the Spammer module uses those credentials to send malicious replies to previous email conversations via SMTP.
Right as the spambot activity starts, the following DNS queries are made using domains related to spam filtering: 0.0.0.0.spam.abuse.ch 0.0.0.0.b.barracudacentral.org 0.0.0.0.bl.mailspike.net 0.0.0.0.spam.dnsbl.sorbs.net 0.0.0.0.zen.spamhaus.org
Finally, the C2 traffic proxy module ensures resilience of the botnet. It accepts C2 traffic of other infected machines and sends it to the C2 server.
This suggests to us that a great number of the hard-coded IP lists are the IP addresses of infected victims and operate as proxy servers.
all of these servers have been compromised and are running an Nginx reverse proxy on a secondary port, which relays requests to another server
These connections were largely unencrypted and occurred over a variety of ports and services, including ports 4664 and 9443.
[Emotet](https://attack.mitre.org/software/S0367) can download follow-on payloads and items via malicious `url` parameters in obfuscated PowerShell code.(Citation: Pincus Emotet 2020)
As shown in Figure 15, some of the data sent in the POST request is encoded as a base64 string with some URL encoding.
[Emotet](https://attack.mitre.org/software/S0367) has used Google’s Protobufs to serialize data sent to and from the C2 server.(Citation: Binary Defense Emotes Wi-Fi Spreader) Additionally, [Emotet](https://attack.mitre.org/software/S0367) has used Base64 to encode data before sending to the C2 server.(Citation: Fortinet Emotet May 2017)
See the image below for DNS traffic representing a possible spam blocklist check by my infected Windows host... the following DNS queries were made: 173.66.46.112spam.abuse.ch 173.66.46.112.b.barracudacentral.org 173.66.46.112.bl.mailspike.net 173.66.46.112.spam.dnsbl.sorbs.net 173.66.46.112.zen.spamhaus.org
[Emotet](https://attack.mitre.org/software/S0367) has used HTTP over ports such as 20, 22, 443, 7080, and 50000, in addition to using ports commonly associated with HTTP/S.(Citation: Talos Emotet Jan 2019)(Citation: Binary Defense Emotes Wi-Fi Spreader)
In addition to DNS queries, Emotet uses 0.0.0.0 during SMTP communications. The SMTP command is EHLO [0.0.0.0].
[Emotet](https://attack.mitre.org/software/S0367) has encrypted data before sending to the C2 server.(Citation: Fortinet Emotet May 2017)
[Emotet](https://attack.mitre.org/software/S0367) is known to use RSA keys for encrypting C2 traffic. (Citation: Trend Micro Emotet Jan 2019)
One key is used for the Elliptic Curve Diffie–Hellman (ECDH) key exchange protocol while the other is used as part of the signature verification by the Digital Signature Algorithm (DSA).
Exfiltration
2 techniques
Exfiltration
[Emotet](https://attack.mitre.org/software/S0367) has exfiltrated data over its C2 channel.(Citation: Trend Micro Emotet Jan 2019)(Citation: Binary Defense Emotes Wi-Fi Spreader)
Emotet then exfiltrated data from the compromised system to attacker-controlled endpoints.
Impact
3 techniques
Impact
This rapid deployment of Cobalt Strike will likely speed up ransomware deployment on compromised networks.
We see ransomware delete all shadow copies using vssadmin pretty often... Malicious combinations: delete and shadows (vssadmin, diskshadow) ... delete and shadowcopy (wmic) ... delete and catalog and -quiet (wbadmin) ... recoveryenabled (bcedit) ignoreallfailures (bcedit)
Emotet also has a DDoS module that can add the infected machine to a botnet to carry out DDoS attacks.
Observables
3,189 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
200 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.