Sneed-Reactivity/yara-Neo23x0/gen_macro_staroffice_suspicious.yar

39 lines
1.7 KiB
Text
Raw Permalink Normal View History

rule SUSP_Macro_StarOffice {
meta:
description = "Suspicious macro in StarOffice"
author = "John Lambert @JohnLaTwC"
date = "2019-02-06"
modified = "2021-05-27"
score = 60
reference = "https://twitter.com/JohnLaTwC/status/1093259873993732096"
hash1 = "8495d37825dab8744f7d2c8049fc6b70b1777b9184f0abe69ce314795480ce39"
hash2 = "25b4214da1189fd30d3de7c538aa8b606f22c79e50444e5733fb1c6d23d71fbe"
hash3 = "322f314102f67a16587ab48a0f75dfaf27e4b044ffdc3b88578351c05b4f39db"
hash4 = "705429725437f7e0087a6159708df97992abaadff0fa48fdf25111d34a3e2f20"
hash5 = "7141d94e827d3b24810813d6b2e3fb851da0ee2958ef347154bc28153b23874a"
hash6 = "7c0e85c0a4d96080ca341d3496743f0f113b17613660812d40413be6d453eab4"
hash7 = "8d59f1e2abcab9efb7f833d478d1d1390e7456092f858b656ee0024daf3d1aa3"
hash8 = "9846b942d9d1e276c95361180e9326593ea46d3abcce9c116c204954bbfe3fdc"
hash9 = "aa0c83f339c8c16ad21dec41e4605d4e327adbbb78827dcad250ed64d2ceef1c"
hash10 = "b0be54c7210b06e60112a119c235e23c9edbe40b1c1ce1877534234f82b6b302"
hash11 = "bf581ebb96b8ca4f254ab4d200f9a053aff8187715573d9a1cbd443df0f554e3"
hash12 = "de45634064af31cb6768e4912cac284a76a6e66d398993df1aeee8ce26e0733b"
id = "92110a87-66b4-5fc5-b3f5-3e59ec2671b2"
strings:
$r1 = "StarBasic"
$r2 = "</script:module>"
$s1 = "Shell" nocase
$s2 = ".Run" nocase
$s3 = ".PutInClipboard" nocase
$s4 = "powershell" nocase
$fp1 = "LibreOffice project" ascii
condition:
filesize < 1MB
and uint32be(0) == 0x3c3f786d // <?xm
and all of ($r*)
and 1 of ($s*)
and not 1 of ($fp*)
}