SUSP_Doc_RTF_OLE2Link_Jun22
Description
Detects a suspicious pattern in RTF files which downloads external resources
Query · yara
strings:
$sa = "\\objdata" ascii nocase
$sb1 = "4f4c45324c696e6b" ascii /* OLE2Link */
$sb2 = "4F4C45324C696E6B" ascii
$sc1 = "d0cf11e0a1b11ae1" ascii /* docfile magic - doc file albilae */
$sc2 = "D0CF11E0A1B11AE1" ascii
$x1 = "68007400740070003a002f002f00" ascii /* http:// */
$x2 = "68007400740070003A002F002F00" ascii
$x3 = "680074007400700073003a002f002f00" ascii /* https:// */
$x4 = "680074007400700073003A002F002F00" ascii
$x5 = "6600740070003a002f002f00" ascii /* ftp:// */
$x6 = "6600740070003A002F002F00" ascii
/* TODO: more protocols */
condition:
( uint32be(0) == 0x7B5C7274 or uint32be(0) == 0x7B5C2A5C ) /* RTF */
and $sa
and 1 of ($sb*)
and 1 of ($sc*)
and 1 of ($x*)