Outlook WebView Registry Modification for Persistence
Adversaries can achieve persistence and code execution by modifying the Outlook WebView registry keys to point to a malicious URL.
This threat involves the abuse of the Outlook Home Page feature, which allows users to display a web page within an Outlook folder. By modifying specific registry keys associated with Outlook WebView settings, an attacker can force Outlook to load an arbitrary URL upon startup or when a specific folder is accessed. This technique serves as a persistence mechanism and a potential vector for code execution, as the displayed page executes within the context of the Outlook process. While this functionality was designed to support folder-specific home pages, its exploitation provides an effective method for maintaining presence on a compromised system without requiring highly privileged modifications. Defenders should monitor registry modifications targeting Outlook configuration paths.
Attack Chain
- The attacker gains initial access to the target host through an unrelated vector.
- The attacker identifies the Outlook configuration registry hive for the current user.
- The attacker creates or modifies registry keys under
HKCU\Software\Microsoft\Office\<version>\Outlook\WebView\. - The attacker sets the
URLregistry value to point to a malicious web resource or local file. - The Outlook application process (
outlook.exe) is launched or restarted by the user or system. - The application reads the modified registry value to configure the WebView component.
- The WebView component navigates to the attacker-supplied URL, executing the malicious content within the Outlook process context.
Impact
Successful exploitation allows for persistent code execution within the security context of the Outlook process, potentially facilitating further malicious activities, data exfiltration, or lateral movement.
Recommendation
- Deploy the provided Sigma rule to monitor for registry modifications targeting Outlook WebView configuration paths.
- Establish baselines for registry keys under
HKCU\Software\Microsoft\Office\*\Outlook\WebView\to distinguish between legitimate enterprise configuration and unauthorized modifications. - Restrict user ability to modify Outlook registry configuration via Group Policy where applicable.
Immediate actions
Deploy the Sigma detection rule to the SIEM
Threat Hunt
Search for existing registry keys containing URLs in the Outlook WebView path
Data: Registry configuration data
Detection coverage 1
Detect Outlook WebView Registry Persistence Modification
highDetects potential persistence activity via Outlook home page by monitoring modifications to WebView registry keys.
Detection queries are available on the platform. Get full rules →