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

14 lines
No EOL
523 B
Text

import "elf"
rule IDAnt_wanna : antidissemble antianalysis
{
meta:
author = "Tim 'diff' Strazzere <diff@sentinelone.com><strazz@gmail.com>"
reference = "https://sentinelone.com/blogs/breaking-and-evading/"\
filetype = "elf"
description = "Detect a misalligned program header which causes some analysis engines to fail"
version = "1.0"
date = "2015-12"
condition:
for any i in (0..elf.number_of_segments - 1) :(elf.segments[i].offset >= filesize) and elf.number_of_sections == 0 and elf.sh_entry_size == 0
}