Skip to content

Instantly share code, notes, and snippets.

@clr2of8
Created May 31, 2019 14:53
Show Gist options
  • Save clr2of8/26db98938843f5e5ce0ae07d6bd46ed9 to your computer and use it in GitHub Desktop.
Save clr2of8/26db98938843f5e5ce0ae07d6bd46ed9 to your computer and use it in GitHub Desktop.
rule rtf_with_multiple_embedded_docs
{
meta:
description = "RTF file with multiple embedded macro-enabled documents"
weight = 90
author = "Walmart Information Security"
date = "2019-03-14"
strings:
// Headers of files to look for
$header_rtf = "{\\rt" nocase
$docheader_1 = "d0cf11e" nocase
$rtf_objupdate = "objupdate" nocase
$macro = "56424150726f6a656374" nocase
condition:
($header_rtf at 0) and #rtf_objupdate > 1 and #docheader_1 > 1 and #macro > 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment