rule CrunchRAT { meta: description = "Detects CrunchRAT - file CrunchRAT.exe" author = "Florian Roth" reference = "https://github.com/t3ntman/CrunchRAT" date = "2017-11-03" hash1 = "58a07e96497745b6fd5075d569f17b0254c3e50b0234744e0487f7c5dddf7161" strings: $x1 = "----CrunchRAT" fullword wide $x2 = "\\Debug\\CrunchRAT" ascii $x3 = "\\Release\\CrunchRAT" ascii $s1 = "runCommand" fullword ascii $s2 = "download" fullword wide $s3 = "Content-Disposition: form-data; name=action" fullword wide $s4 = "upload" fullword wide $s5 = "/update.php" fullword wide condition: uint16(0) == 0x5a4d and filesize < 40KB and ( 1 of ($x*) and 3 of them ) }