Skip to main content
Mallory
← Back to News
command-and-control-methodoffensive-tooling-releasephishing-campaign-intelligencecybercrime-service-ecosystem

Researchers Automated Emotet Deobfuscation and C2 Extraction

Attack Tradecraft · 6 sources · Updated 4mo ago · First seen Sep 21, 2020

Researchers Automated Emotet Deobfuscation and C2 Extraction

Researchers and government analysts documented how Emotet hides its functionality through API hashing, dynamic API resolution, string encryption, junk code, stack tricks, and control-flow flattening, complicating reverse engineering of unpacked samples with empty import tables. Sophos reported that, across 254 examined functions, 68 used flattened control flow; researchers fully unflattened 38, partially restored 19, and failed on 11 while adapting IDA-based tooling to handle multiple dispatchers and other edge cases.

Technical work from JPCERT/CC and open-source tooling showed that analysts can automate large parts of Emotet analysis with Ghidra and Binary Ninja plugins, including annotating hashed APIs, decrypting strings, and extracting hardcoded command-and-control endpoints from internal configuration data. ANSSI described Emotet as a malware-as-a-service platform operated by TA542, spread largely through phishing, malicious Office attachments, thread hijacking, compromised WordPress sites, and direct IP-based C2, and linked it to downstream payloads including TrickBot, QakBot, Dridex, Conti, and Ryuk.

Why it matters

Impact assessment

Emotet remains a high-risk malware ecosystem rather than a single sample issue. Organizations exposed to phishing, malicious Office attachments, thread-hijacking email, compromised WordPress delivery sites, or legacy Emotet infections are affected because Emotet is used as an initial access and malware delivery platform for follow-on payloads including TrickBot, QakBot, Dridex, Conti, and Ryuk.

The impact can escalate from credential theft and persistence to broad operational disruption, ransomware deployment, and financial loss. The exposure is historically widespread across geographies and sectors, with documented large-scale spam distribution and prior downstream ransomware chains; the story itself focuses on improved analyst automation rather than a newly disclosed exploitation event.

Supporting details

  • Affected populations:
    • Enterprises and public-sector organizations targeted by phishing and thread hijacking
    • Windows environments exposed to malicious Office documents, ZIP attachments, PowerShell downloaders, or DLL execution via rundll32.exe/regsvr32.exe
    • Organizations with email-heavy workflows and internet-facing users
  • Severity drivers:
    • Initial access leading to credential theft, persistence, and lateral movement
    • Delivery of secondary malware families and ransomware
    • Potential service manipulation or deletion behavior observed in analyzed functionality
  • Scope:
    • Historically broad and international, not limited to one sector
    • ANSSI reported concentration in the United States, United Kingdom, and Canada, with additional impact across Europe, Japan, New Zealand, and elsewhere
  • Exploitation status:
    • Emotet is a long-running botnet/malware-as-a-service platform active since 2014, disrupted in January 2021, and re-emerged in November 2021
    • Sophos observed repeated Emotet payload activity in sandbox telemetry during Q1 2022, consistent with active distribution campaigns
Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

24 events · 2008 – May 2022
  1. Reported Jan 1, 202611mo ago

    Sophos publishes Emotet control-flow unflattening research

    Sophos analyzed unpacked Emotet samples, identified 68 flattened functions out of 254 analyzed, and released an IDAPython-based tool on the SophosLabs GitHub repository to deobfuscate portions of the malware's control flow.

    Attacking Emotet’s Control Flow Flattening | SOPHOS
  2. May 2022

    Emotet x64 update adopts stack-string config obfuscation

    During the week of May 9, 2022, an updated Emotet x64 variant changed its configuration storage by generating strings, cryptographic material, and C2 data via obfuscated stack-string routines instead of keeping encrypted values statically in the binary. OALABS showed these artifacts, including key blobs and numerous C2 endpoints, could be recovered by identifying and emulating the relevant functions with Dumpulator.

    Emotet x64 Stack Strings Config Emulation | OALABS Research
  3. 2022

    Sophos sees renewed Emotet activity in Q1 2022

    Sophos observed Emotet payloads repeatedly in its sandbox systems during the first quarter of 2022 and assessed detection spikes as likely tied to large-scale distribution campaigns.

    Attacking Emotet’s Control Flow Flattening | SOPHOS
  4. Nov 2021

    Emotet re-emerges after disruption

    Sophos reports that Emotet re-emerged in November 2021 after nearly a year of reduced activity following the January 2021 disruption.

    Attacking Emotet’s Control Flow Flattening | SOPHOS
  5. Jan 2021

    Law enforcement disrupts Emotet botnet

    Sophos states that a multinational law enforcement operation disrupted the Emotet botnet in January 2021.

    Attacking Emotet’s Control Flow Flattening | SOPHOS
  6. Dec 2020

    Reverse-engineering analysis reveals December 2020 Emotet sample internals

    Analysis of an Emotet sample from a campaign observed around December 2020 reconstructed its infection chain from zipped-document phishing to PowerShell downloader and second-stage DLL execution. The research detailed state-machine obfuscation, Windows service persistence in this variant, encrypted string and C2 storage, and RSA/AES-protected command-and-control communications, and published hashes and extracted C2 infrastructure.

    GitHub - cecio/EMOTET-2020-Reversing: a State-Machine reversing exercise · GitHub
  7. Sep 21, 20206y ago

    Emotet deobfuscator plugin updated on GitHub

    The repository history shows a commit labeled "Remove useless function" for the Emotet API and string deobfuscator plugin on September 21, 2020.

    GitHub - mauronz/binja-emotet · GitHub
  8. Aug 5, 20206y ago

    Emotet API and string deobfuscator plugin first committed

    The GitHub repository history shows the initial commit for Francesco Muroni's Emotet API and string deobfuscator plugin on August 5, 2020.

    GitHub - mauronz/binja-emotet · GitHub
  9. Aug 2020

    Thread-hijacking campaigns target France

    ANSSI notes that from August 2020, Emotet thread-hijacking phishing campaigns targeted both private and public sectors in France.

    Cert Ssi
  10. Jul 2020

    Campaigns distribute Emotet-TrickBot-Ryuk or Conti chain

    ANSSI states that a July 2020 campaign delivered an infection chain involving Emotet, TrickBot, and Ryuk or Conti.

    Cert Ssi
  11. Jul 2020

    TA542 uses shared-password webshells on WordPress sites

    ANSSI reports that in July 2020, TA542 used a GitHub-available webshell with a shared password on compromised WordPress sites, and a white-hat actor replaced some Emotet payloads with harmless GIFs.

    Cert Ssi
  12. Mar 2020

    Coronavirus-themed campaign in Japan delivers TrickBot

    ANSSI reports that in March 2020, a coronavirus-themed Emotet campaign in Japan delivered TrickBot as a second-stage payload.

    Cert Ssi
  13. Feb 2020

    Bank-spoofing SMS campaign distributes Emotet

    ANSSI describes a February 2020 SMS phishing campaign in which messages spoofing banks warned of account closure and redirected victims to fake banking pages that distributed Emotet.

    Cert Ssi
  14. 2019

    Campaigns shift toward malicious attachments

    ANSSI says that since 2019, Emotet phishing emails have more commonly carried malicious Word, PDF, or ZIP attachments, though URL-based lures continued.

    Cert Ssi
  15. 2018

    Emotet phishing commonly impersonates real brands

    ANSSI reports that in 2018, about 66% of Emotet phishing emails impersonated real entities such as DHL, PayPal, or UPS.

    Cert Ssi
  16. 2018

    URL-based Office document lures dominate Emotet emails

    ANSSI states that in 2018, about 98% of Emotet campaign emails contained a URL leading to a malicious Office document download.

    Cert Ssi
  17. 2018

    TA542 adopts email thread hijacking in campaigns

    ANSSI reports that since 2018, TA542 has used thread hijacking by stealing email content from compromised mailboxes and replying within legitimate conversation chains.

    Cert Ssi
  18. Mar 2017

    Emotet appears as a distinct iteration of Geodo

    ANSSI states that Emotet appeared in March 2017 and broadly uses the name for Geodo versions spanning 2014 to 2020.

    Cert Ssi
  19. 2017

    Emotet shifts from banking trojan to malware loader

    Since 2017, ANSSI says Emotet has primarily served as a loader for malware operated by TA542 clients rather than as a banking trojan.

    Cert Ssi
  20. 2015

    Emotet evolves into a modular trojan

    From 2015 onward, ANSSI says Emotet evolved from a banking trojan into a modular malware platform capable of stealing passwords, browser credentials, email data, and contact lists.

    Cert Ssi
  21. 2015

    TA542 promotes Emotet on underground forums until 2015

    ANSSI reports that TA542 advertised Emotet on underground forums until 2015, after which the service became private.

    Cert Ssi
  22. May 2014

    GameOverZeuS takedown precedes Geodo and Dridex emergence

    The ANSSI report states that after the FBI dismantled GameOverZeuS infrastructure in May 2014, Dridex and Geodo emerged from remnants of the Business Club.

    Cert Ssi
  23. 2014

    Emotet malware service becomes active

    Sophos describes Emotet as a long-running cybercrime malware service and botnet that has been active since 2014.

    Attacking Emotet’s Control Flow Flattening | SOPHOS
  24. 2008

    Geodo activity linked to Business Club begins

    ANSSI links the origin of the Geodo malware lineage to the Business Club cybercriminal group, whose activity began around 2008.

    Cert Ssi
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Threat actors

1 linked

Malware

1 linked

Observables

164 linked

Indicator values are masked on this page. View all 164 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.