signature-base/yara/gen_xor_hunting.yar
2019-10-28 20:38:50 +01:00

31 lines
961 B
Plaintext

rule SUSP_XORed_Mozilla {
meta:
description = "Detects suspicious XORed keyword - Mozilla/5.0"
author = "Florian Roth"
reference = "Internal Research"
date = "2019-10-28"
score = 65
strings:
$xo1 = "Mozilla/5.0" xor ascii wide
$xof1 = "Mozilla/5.0" ascii wide
condition:
$xo1 and not $xof1
}
rule SUSP_XORed_MSDOS_Stub_Message {
meta:
description = "Detects suspicious XORed MSDOS stub message"
author = "Florian Roth"
reference = "https://yara.readthedocs.io/en/latest/writingrules.html#xor-strings"
date = "2019-10-28"
score = 55
strings:
$xo1 = "This program cannot be run in DOS mode" xor ascii wide
$xo2 = "This program must be run under Win32" xor ascii wide
$xof1 = "This program cannot be run in DOS mode" ascii wide
$xof2 = "This program must be run under Win32" xor ascii wide
condition:
1 of ($xo*) and not 1 of ($xof*)
}