Skip to content

Commit

Permalink
Create Maldoc_DDE.yar
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Beede committed Oct 19, 2017
1 parent d9b429a commit 196b4db
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Malicious_Documents/Maldoc_DDE.yar
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)
}

0 comments on commit 196b4db

Please sign in to comment.