Skip to main content

APT Group Abuse Microsoft Word Dynamic Data Exchange - Macro-less Code Execution

A new technique has been discovered that allows an attacker to send malicious documents that can execute code on a user's system without the use of Macros or OLE (Object Linked Embedding).
Report a cyber attack: call 0300 303 5222 or email [email protected]

This content has been archived

This article no longer conforms to NHS Digital's standards for cyber alerts, and may contain outdated or inaccurate information. Use of this information contained in this page is at your own risk

Summary

A new technique has been discovered that allows an attacker to send malicious documents that can execute code on a user's system without the use of Macros or OLE (Object Linked Embedding).

Affected platforms

The following platforms are known to be affected:

Threat details

This attack exploits the functionality of the Dynamic Data Exchange feature in Microsoft Word.

DDE is an inbuilt Windows feature designed to allow applications to transfer data between them. Microsoft Word uses DDE inside their Fields, allowing an attacker to very easily add a custom field inside the document - using the DDEAUTO keyword. This results in a custom command being executed as the document is opened.

A recent FIN7 campaign started with a phishing email designed to appear as though it originated from the Securities and Exchange Commission (SEC) Electronic Data Gathering, Analysis and Retrieval (EDGAR) system with attachments that exploit DDE within Microsoft Word. The DDE command used in the attack used PowerShell to call out to a compromised .GOV server hosting a malicious payload.

Following an initial compromise a complicated multi-stage infection process ensues which results in persistence on the target system. Once achieved another highly obfuscated stage performs a number of DNS queries to a random selection from an array of available servers. The responses are received and decoded to form the next payload using the DNS protocol. The infection results in the target joining a botnet that uses a slightly different structure of DNS records to send and receive messages with the C&C server.

The impact of a successful attack could result in a complete and undetected compromise of a target within an organization that could result in further compromise and exfiltration of sensitive data.

 


Threat updates

Date Update
19 Dec 2017

As of 15 December 2017, Microsoft have released an office update to disable DDE protocol in Microsoft Word applications as part of December’s Patch Tuesday. DDE is still currently enabled in Microsoft Outlook and Excel. This update has included a patch for Microsoft Word 2003 and Microsoft Word 2007.


Remediation steps

Type Step
  • Disable Dynamic Data Exchange.
  • It has been confirmed code execution can occur if macros are disabled but will not execute if viewed via the protected view.
  • Detailed tracking of process creation is available and can be pushed to end users via Group Policy Objects.
  • Events that show the creator process name of C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE should be considered a red flag and cause for additional investigation.

Last edited: 17 February 2020 11:26 am