forked from Yara-Rules/rules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nicholas Beede
committed
Oct 19, 2017
1 parent
d9b429a
commit 196b4db
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
rule Contains_DDE_Protocol | ||
{ | ||
meta: | ||
author = "Nick Beede" | ||
description = "Detect Dynamic Data Exchange protocol in doc/docx" | ||
reference = "https://sensepost.com/blog/2017/macro-less-code-exec-in-msword/" | ||
date = "2017-10-19" | ||
filetype = "Office documents" | ||
|
||
strings: | ||
$doc = {D0 CF 11 E0 A1 B1 1A E1} | ||
$s1 = { 13 64 64 65 61 75 74 6F 20 } // !!ddeauto | ||
$s2 = { 13 64 64 65 20 } // !!dde | ||
$s3 = "dde" nocase | ||
$s4 = "ddeauto" nocase | ||
condition: | ||
($doc at 0) and 2 of ($s1, $s2, $s3, $s4) | ||
} |