Registry access to the Office DDE enablement keys
Matches a handle request or a permission change against the per-user registry keys that decide whether Word and Excel will execute a DDE or DDEAUTO field — the `AllowDDE` value under HKCU\Software\Microsoft\Office\<version>\Word\Security and the Excel key beside it, which the technique's own description names as how DDE is turned back on after Microsoft disabled it. AN1393 lists "registry keys enabling DDE" alongside the process-creation leg, and the registry leg is the only one in this brief that is specific to this technique: an Office document host spawning cmd.exe or powershell.exe is a real DDE artefact, but nothing on Sysmon EventID 1 separates a DDEAUTO field from a VBA macro, an embedded OLE object or an XLL add-in, and that parent-child observable is already published in this corpus under T1203 and T1204 — a third copy under this ID would attribute one event to three techniques without adding evidence for any of them. What this rule buys instead is the preparation step, and it pays for it in coverage: a document that fronts DDE on a host where the setting is already permissive produces no registry event at all, and is not seen here. The Office Options branch — `DontUpdateLinks`, `DDEAllowed`, `DDECleaned` — is deliberately excluded because ordinary Office use rewrites that key constantly. Group-policy writes are filtered out by path, which also means an administrator-level attacker who sets the value through the Policies branch is filtered out with them. The rule is written in the raw Security-channel vocabulary (`EventID`, `ObjectName`, `ObjectType`); Security 4657 would name the value written and whether it was set to 1, but it is not among this brief's log sources and splits key and value across `ObjectName` and `ObjectValueName`, so that feed needs a field mapping before it could be used. 4656 reports the access requested, not the write that followed, so a match is the question and not the answer. Prerequisite: registry object access is not audited by default and is not in the MS or CIS baselines — without Audit Object Access (Registry) enabled and a SACL placed on these specific keys auditing Set Value and Create Subkey, this rule returns zero rows on every host, which reads as quiet when it means blind. A SACL that audits reads instead will match Word's own startup on every launch. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0504, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full descriptionShow less
The detection
The 4 SIEM queries below are previews produced by Siemphony’s own translator, not pySigma, and none has been executed against a real backend — review before you deploy.
detection.yml
Sentinel · KQL
Run this as a search.
SecurityEvent| where (((((EventID == 4656 or EventID == 4670) and ObjectType =~ "Key") and ObjectName contains "\\Microsoft\\Office\\") and (ObjectName contains "\\Word\\Security" or ObjectName contains "\\Excel\\Security")) and not (ObjectName contains "\\Policies\\Microsoft\\Office"))
Splunk · SPL
Run this as a search.
index=* (((((EventID="4656" OR EventID="4670") AND ObjectType="Key") AND ObjectName="*\\Microsoft\\Office\\*") AND (ObjectName="*\\Word\\Security*" OR ObjectName="*\\Excel\\Security*")) AND NOT (ObjectName="*\\Policies\\Microsoft\\Office*"))Elastic · ES|QL
Run this as a search.
FROM logs-*| WHERE (((((event.code == 4656 OR event.code == 4670) AND TO_LOWER(ObjectType) == "key") AND TO_LOWER(ObjectName) LIKE "*\\\\microsoft\\\\office\\\\*") AND (TO_LOWER(ObjectName) LIKE "*\\\\word\\\\security*" OR TO_LOWER(ObjectName) LIKE "*\\\\excel\\\\security*")) AND NOT (TO_LOWER(ObjectName) LIKE "*\\\\policies\\\\microsoft\\\\office*"))
Wazuh · XML rule
Deploy to your manager — this is a rule, not a search.
<group name="sigma,windows,"> <!-- Rule ids must be unique on your manager; 100000+ is the user range. --> <rule id="100000" level="7"> <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. --> <field name="EventID" type="pcre2">(?i)(^4656$|^4670$)</field> <field name="ObjectType" type="pcre2">(?i)^Key$</field> <field name="ObjectName" type="pcre2">(?i)\\Microsoft\\Office\\</field> <field name="ObjectName" type="pcre2">(?i)(\\Word\\Security|\\Excel\\Security)</field> <field name="ObjectName" negate="yes" type="pcre2">(?i)\\Policies\\Microsoft\\Office</field> <description>Registry access to the Office DDE enablement keys</description> <mitre> <id>T1559.002</id> </mitre> </rule></group>
Verdicts · reactions · comments
Community
Verdicts from engineers who actually deployed it, and the conversation around it.
Nobody has run this in a real environment and said what happened.
Verdicts from engineers who deployed it
0 castNo verdicts reported yet. The first one is worth more than the tenth — say what you ran it against.
Log in to report a verdict.
Log in to join the discussion.
No comments yet. Someone who deploys this will have something to say about it.