Skip to content
Threat Feed
medium advisory

PowerShell Local Email Collection Techniques

Adversaries use PowerShell scripts leveraging Outlook COM objects to programmatically access and exfiltrate user email data from local systems.

Adversaries frequently target local email storage to collect sensitive information, leveraging the legitimate capabilities of the Microsoft Outlook COM interface via PowerShell. By interfacing with the Outlook Application object, attackers can programmatically navigate folder structures, such as the Inbox, to extract messages and attachments without direct user interaction. This technique is often used in the post-compromise stage to gain access to corporate communications, credentials, or sensitive project files. Because this activity utilizes built-in automation features, it is often difficult to distinguish from legitimate administrative scripts or automated tools. Defenders should prioritize visibility into PowerShell Script Block Logging to detect the instantiation of the Outlook COM object or the usage of specific Outlook interop libraries in non-standard contexts.

Impact

Successful execution allows attackers to exfiltrate historical email correspondence and attachments, potentially leading to identity theft, corporate espionage, or the acquisition of further credentials to facilitate lateral movement. This poses a high risk to information confidentiality within any organization utilizing Microsoft Outlook on Windows endpoints.

Recommendation

  1. Enable PowerShell Script Block Logging (Event ID 4104) across all Windows endpoints to capture script execution content.
  2. Deploy the provided Sigma rule to detect the initiation of Outlook COM objects or the use of Outlook interop libraries in PowerShell scripts.
  3. Monitor for unauthorized or unknown scripts performing collection tasks on local storage paths associated with Outlook profiles.

Immediate actions

Enable PowerShell Script Block Logging across all endpoints

IT Operations 72h

Threat Hunt

Search for historical Event ID 4104 entries containing 'outlook.application'

T1114.001 high high confidence hunt now

Data: Powershell Script Block Logs

Detection coverage 1

Detect PowerShell Outlook Email Collection

medium

Detects PowerShell scripts utilizing Outlook COM objects or interop libraries for local email access

sigma tactics: collection techniques: T1114.001 sources: process_creation, windows

Detection queries are available on the platform. Get full rules →