Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may use Windows Dynamic Data Exchange (DDE) to execute arbitrary commands.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | 159% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 123% | 0% |
| case-22 | ✗→✓ | ▲ Improved | 49% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 96% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 58% | 0% |
> Sub-technique of: T1559
Adversaries may use Windows Dynamic Data Exchange (DDE) to execute arbitrary commands. DDE is a client-server protocol for one-time and/or continuous inter-process communication (IPC) between applications. Once a link is established, applications can autonomously exchange transactions consisting of strings, warm data links (notifications when a data item changes), hot data links (duplications of changes to a data item), and requests for command execution.
Object Linking and Embedding (OLE), or the ability to link data between documents, was originally implemented through DDE. Despite being superseded by Component Object Model, DDE may be enabled in Windows 10 and most of Microsoft Office 2016 via Registry keys.
Microsoft Office documents can be poisoned with DDE commands, directly or through embedded files, and used to deliver execution via Phishing campaigns or hosted Web content, avoiding the use of Visual Basic for Applications (VBA) macros. Similarly, adversaries may infect payloads to execute applications and/or commands on a victim device by way of embedding DDE formulas within a CSV file intended to be opened through a Windows spreadsheet program.
DDE could also be leveraged by an adversary operating on a compromised machine who does not have direct access to a Command and Scripting Interpreter. DDE execution can be invoked remotely via Remote Services such as Distributed Component Object Model (DCOM).
Platforms: Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Executes commands via DDE using Microsfot Word
Supported Platforms: windows
When the word document opens it will prompt the user to click ok on a dialogue box, then attempt to run PowerShell with DDEAUTO to download and execute a powershell script
Supported Platforms: windows
cmdstart "$PathToAtomicsFolder\T1559.002\bin\DDE_Document.docx"
TrustedSec - Unicorn - https://github.com/trustedsec/unicorn
SensePost DDEAUTO - https://sensepost.com/blog/2017/macro-less-code-exec-in-msword/
Word VBA Macro
Supported Platforms: windows
If Atomic Red Team tests are not applicable, manually verify the technique by:
On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent DDE attacks and spawning of child processes from Office programs.
Ensure Protected View is enabled.
Consider disabling embedded files in Office programs, such as OneNote, that do not work with Protected View.
Registry keys specific to Microsoft Office feature control security can be set to disable automatic DDE/OLE execution. Microsoft also created, and enabled by default, Registry keys to completely disable DDE execution in Word and Excel.
| Finding | Severity | Impact | | ------------------------------------------ | -------- | --------- | | Dynamic Data Exchange technique applicable | High | Execution |
| CWE ID | Title | | ------ | -------------------------------------- | | CWE-94 | Improper Control of Generation of Code |
Other measured skills in the registry, with their headline benchmark lift.