SUSP_RAR_Single_Doc_File
Description
Detects suspicious RAR files that contain nothing but a single .doc file
Query · yara
strings:
$s1 = ".doc"
condition:
uint16(0) == 0x6152 and
filesize < 4000KB and
$s1 at (
uint16(5) + // header size
uint16(uint16(5)+5) + // rar header size
uint16(uint16(5) + uint16(uint16(5)+5) + 5) // rar block size
- 9 // offset
) and (
// single rar block for a single doc file
uint16(5) + // header size
uint16(uint16(5)+5) + // rar header size
uint16(uint16(5) + uint16(uint16(5)+5) + 5) + // rar block size
uint32(uint16(5) + uint16(uint16(5)+5) + 7) // raw data size
> filesize-8
)