# Emotet Botnet Adds Mass Email Exfiltration Module (MAPI-based Outlook Harvesting)

> Kryptos Logic reported in October 2018 that the Emotet botnet began deploying a module that harvests the sender, recipient, subject and body of Outlook emails from the last 180 days via MAPI and sends them to C2 over HTTP using WinINet. Emotet had been largely dormant for about a month before the activity resumed.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-01T22:13:06Z
- **Last updated:** 2026-12-01T22:13:06Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7219
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7219.png
- **ID:** TL-2026-7219
- **Severity:** HIGH
- **Category:** MALWARE
- **Status:** MONITORING
- **Detections:** 9 (1 shown free below) · **IOCs:** 16 (3 shown free below)

## Description

Kryptos Logic (Vantage Team) observed Emotet resume activity around Halloween 2018 after roughly a month of dormancy, with a new module that is loaded from the C2 server by already-infected hosts. The module DLL injects a payload binary into a new Emotet process. Kryptos expected deployment across tens of thousands of actively infected systems within days. This goes beyond the earlier Emotet Outlook module described by G DATA / cyber.wtf in October 2017, which collected only sender/recipient names and addresses (written to a temporary file in %PROGRAMDATA%) and did not read message content.

Module behavior (Kryptos Logic): the module first reads the registry value DllPathEx under HKLM\Software\Clients\Mail\Microsoft Outlook, which should point to mapi32.dll; if the value is missing the module stops (other clients such as HKLM\Software\Clients\Mail\Windows Mail are ignored). It then crawls every subfolder of the IPM root folder and keeps only messages whose PR_MESSAGE_DELIVERY_TIME falls within the last 180 days. For each message it collects the sender name and address (PR_SENDER_NAME_W, PR_SENDER_EMAIL_ADDRESS_W), the recipient name and address (PR_RECEIVED_BY_NAME_W, PR_RECEIVED_BY_EMAIL_ADDRESS_W), the subject (PR_SUBJECT_W) and the body (PR_BODY_W), with the body truncated to 16,384 characters plus '...'. Records are held in a global linked list; on termination the list is Base64-encoded and written to a temporary file.

Exfiltration: the parent module DLL waits for the payload process to finish and kills it if it runs longer than 300 seconds. It then reads the temporary file and, if the file is larger than 116 bytes, sends it to the C2 server with an HTTP request made through the WinINet API. The module is identified in the article by the identifier 6cd44f2d00b43d80c08922d99d51cce804a59a54 (given as the module name, not described as a file hash). The article names no C2 IPs/domains, temp file names or paths.

Context and impact: Emotet is a modular, pay-per-install loader that began as a banking trojan (Eurojust/Europol) and delivers secondary malware such as Trickbot and Ryuk. Check Point's 2018 analysis describes a hard-coded IP:port C2 list with an RSA public key, Protocol Buffers messages, LZMA compression, per-session AES keys, and original modules including a Simple MAPI email address harvester, an SMB brute-force worm, a spam module and a UPnP connection verifier, plus wrapped NirSoft credential tools. Kryptos noted recent Emotet-delivered ransomware against U.S. infrastructure (including Onslow Water and Sewer Authority) with costs up to $1 million, and that the United States was by far the most affected country. Full message content gives operators material to craft convincing spam (thread hijacking was later documented by CISA in AA20-280A) and exposes confidential business correspondence. Emotet was disrupted by a Europol/Eurojust-coordinated operation on 27 January 2021. Severity is analyst-assigned, not source-stated.

## MITRE ATT&CK

- T1566.001 Spearphishing Attachment
- T1566.002 Spearphishing Link
- T1204.002 Malicious File
- T1059.005 Visual Basic
- T1547.001 Registry Run Keys / Startup Folder
- T1543.003 Windows Service
- T1055 Process Injection
- T1027 Obfuscated Files or Information
- T1555.003 Credentials from Web Browsers
- T1003.001 LSASS Memory
- T1110.001 Password Guessing
- T1087.003 Email Account
- T1021.002 SMB/Windows Admin Shares
- T1114.001 Local Email Collection
- T1074.001 Local Data Staging
- T1071.001 Web Protocols
- T1573.002 Asymmetric Cryptography
- T1571 Non-Standard Port

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Emotet - Office Application Spawning Script Host or LOLBin (Exploitation)** (`TL-2026-7219-SPL-001`)

TL-2026-7219 (Emotet / Geodo, MITRE S0367). Detects Word, Excel, PowerPoint or Outlook spawning PowerShell, cmd, wscript, cscript, mshta, rundll32 or regsvr32 (T1566.001, T1204.002, T1059.005), the macro-document execution chain Emotet uses for initial access (CISA AA20-280A). Flags encoded commands (T1027) and references to the %Temp%\setup.exe dropped payload. This is the delivery stage that precedes the Outlook MAPI email-harvesting module described by Kryptos Logic.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1566.001, T1204.002, T1059.005, T1027
- **Data sources:** sysmon, microsoft_defender_for_endpoint
- **Severity:** high
- **Confidence:** high

### Splunk SPL

```spl
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 earliest=-24h (ParentImage="*\\WINWORD.EXE" OR ParentImage="*\\EXCEL.EXE" OR ParentImage="*\\POWERPNT.EXE" OR ParentImage="*\\OUTLOOK.EXE") (Image="*\\powershell.exe" OR Image="*\\cmd.exe" OR Image="*\\wscript.exe" OR Image="*\\cscript.exe" OR Image="*\\mshta.exe" OR Image="*\\rundll32.exe" OR Image="*\\regsvr32.exe") | eval encoded_cmd=if(match(CommandLine,"(?i)(-enc|-encodedcommand|frombase64string)"),1,0) | eval emotet_setup_exe=if(match(CommandLine,"(?i)temp.setup[.]exe"),1,0) | stats count min(_time) as first_seen max(_time) as last_seen values(Image) as child_processes values(CommandLine) as command_lines max(encoded_cmd) as encoded_cmd max(emotet_setup_exe) as emotet_setup_exe by host User ParentImage | convert ctime(first_seen) ctime(last_seen) | sort - encoded_cmd - emotet_setup_exe - count
```

### Microsoft KQL

```kql
let office_apps = dynamic(['winword.exe','excel.exe','powerpnt.exe','outlook.exe']);
let child_procs = DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ (office_apps)
| where FileName in~ ('powershell.exe','cmd.exe','wscript.exe','cscript.exe','mshta.exe','rundll32.exe','regsvr32.exe')
| extend Indicator = iff(ProcessCommandLine matches regex @'(?i)(-enc|-encodedcommand|frombase64string)', 'office_child_encoded_command', 'office_child_script_host')
| project Timestamp, DeviceName, AccountName, Indicator, Parent = InitiatingProcessFileName, Detail = ProcessCommandLine;
let dropped = DeviceFileEvents
| where Timestamp > ago(24h)
| where ActionType == 'FileCreated'
| where FolderPath endswith @'\Temp\setup.exe'
| where InitiatingProcessFileName in~ (office_apps) or InitiatingProcessFileName in~ ('powershell.exe','wscript.exe','cscript.exe','rundll32.exe','regsvr32.exe')
| project Timestamp, DeviceName, AccountName = InitiatingProcessAccountName, Indicator = 'temp_setup_exe_dropped', Parent = InitiatingProcessFileName, Detail = FolderPath;
union child_procs, dropped
| sort by Timestamp desc
```

### Sigma

```yaml
title: Emotet - Office Application Spawning Script Interpreter or LOLBin
id: 7c1e4a52-3b9d-4f6a-8e21-5d0a9b3c7f14
status: experimental
description: Detects Microsoft Office applications spawning script hosts or LOLBins, the macro-based execution chain used by Emotet (S0367) for initial access and payload download.
references:
  - https://attack.mitre.org/software/S0367/
  - https://cisa.gov/news-events/cybersecurity-advisories/aa20-280a
  - https://www.kryptoslogic.com/blog/2018/10/emotet-awakens-with-new-campaign-of-mass-email-exfiltration/
author: Threadlinqs Team
date: 2026/12/01
tags:
  - attack.initial-access
  - attack.t1566.001
  - attack.execution
  - attack.t1204.002
  - attack.t1059.005
  - attack.s0367
logsource:
  category: process_creation
  product: windows
detection:
  selection_parent:
    ParentImage|endswith:
      - '\winword.exe'
      - '\excel.exe'
      - '\powerpnt.exe'
      - '\outlook.exe'
  selection_child:
    Image|endswith:
      - '\powershell.exe'
      - '\cmd.exe'
      - '\wscript.exe'
      - '\cscript.exe'
      - '\mshta.exe'
      - '\rundll32.exe'
      - '\regsvr32.exe'
  condition: selection_parent and selection_child
falsepositives:
  - Legitimate Office add-ins or macros that launch cmd or PowerShell for business automation
  - Software deployment or document-conversion tooling driven from Office
level: high
```

**Known false positives:**

- Legitimate Office macros or add-ins that call cmd.exe or PowerShell for business automation
- Software deployment or document-conversion tooling launched from Office

**Tuning notes:** Adjust the index name (index=sysmon) to the one holding Sysmon EventCode=1. Allow-list known automation macros by ParentImage + CommandLine hash or signed script path. Raise priority when encoded_cmd=1 or emotet_setup_exe=1. Consider limiting to user workstations, excluding build/RPA servers.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Emotet - Office-Spawned Payload Download and [indicator] Drop (Exploitation) (locked: unlock with TL Creds)
- Emotet - Persistence (Run Key, Fake 'Windows Defender System Service') and Credential Tools (Post-Exploitation) (locked: unlock with TL Creds)
- Emotet - SMB Password Guessing Worm Spread and [indicator] Remote Drop (Lateral Movement) (locked: unlock with TL Creds)
- Emotet - Encoded PowerShell or Script Host Launched by Office (Exploitation) (locked: unlock with TL Creds)
- Emotet - Outlook MAPI Harvest: [indicator] Load by Non-Mail Process (Post-Exploitation) (locked: unlock with TL Creds)
- Emotet - WinINet Beaconing from Injected/Rundll32 Process to Public IP (C2) (locked: unlock with TL Creds)
- Emotet - Non-Mail Process Loading [indicator] / Reading Outlook DllPathEx (MAPI Email Harvesting) (locked: unlock with TL Creds)
- Emotet - HTTP C2 from User-Writable Process on Emotet Ports (7080/8080/50000/20/22) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 16)

Defanged, TLP:CLEAR.

- File hash: `d4491f9b885bba06d7ee6e02e6e71272893638bbb92f2c23b9ddf52f8a26a702`
- File hash: `d7efad30d0a56983fba15f0be28877bd7d55c723388005baa322b94c02540f11`
- File hash: `86cf916c547b6f228b8e7bd4667715db0467c3d141f6226e27025797aeca10ec`

Full set of 16 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Emotet Awakens With New Campaign of Mass Email Exfiltration (Kryptos Logic)](https://www.kryptoslogic.com/blog/2018/10/emotet-awakens-with-new-campaign-of-mass-email-exfiltration/)
- [emotet email theft (Kryptos Logic technical blog)](https://blog.kryptoslogic.com/malware/2018/10/31/emotet-email-theft.html)
- [Emotet harvests Microsoft Outlook (cyber.wtf / G DATA)](https://cyber.wtf/2017/10/12/emotet-beutet-outlook-aus/)
- [Emotet: Tricky Trojan Git Clones (Check Point Research)](https://research.checkpoint.com/2018/emotet-tricky-trojan-git-clones/)
- [MITRE ATT&CK: Emotet (S0367)](https://attack.mitre.org/software/S0367/)
- [CISA AA20-280A: Emotet Malware](https://cisa.gov/news-events/cybersecurity-advisories/aa20-280a)
- [US-CERT TA18-201A: Emotet Malware](https://us-cert.gov/ncas/alerts/TA18-201A)
- [World's most dangerous malware EMOTET disrupted through global action (Eurojust)](https://www.eurojust.europa.eu/worlds-most-dangerous-malware-emotet-disrupted-through-global-action)
- [International Action Targets Emotet Crimeware (KrebsOnSecurity)](https://krebsonsecurity.com/2021/01/international-action-targets-emotet-crimeware/)
- [Pervasive Emotet Botnet Now Steals Emails (Dark Reading)](https://www.darkreading.com/attacks-breaches/pervasive-emotet-botnet-now-steals-emails/d/d-id/1333163)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7219
