Sneed-Reactivity/yara-mikesxrs/Citizen Lab/filetypes.yara
Sam Sneed 08e8d462fe OMG ISTG PLS WORK
RED PILL 🔴 💊
2024-07-25 12:43:35 -05:00

40 lines
709 B
Text

private rule IsRTF : RTF
{
meta:
description = "Identifier for RTF files"
author = "Seth Hardy"
last_modified = "2014-05-05"
strings:
$magic = /^\s*{\\rt/
condition:
$magic
}
private rule IsOLE : OLE
{
meta:
description = "Identifier for OLE files"
author = "Seth Hardy"
last_modified = "2014-05-06"
strings:
$magic = {d0 cf 11 e0 a1 b1 1a e1}
condition:
$magic at 0
}
private rule IsPE : PE
{
meta:
description = "Identifier for PE files"
last_modified = "2014-07-11"
strings:
$magic = { 5a 4d }
condition:
$magic at 0 and uint32(uint32(0x3C)) == 0x00004550
}