Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added detection of PE in overlay #1194

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions support/yara_patterns/tools/pe/x86/packers.yara
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,21 @@ rule eziriz_dotnet_reactor_62_or_newer {
dotnet.user_strings[dotnet.number_of_user_strings - 2] == "{\x001\x001\x001\x001\x001\x00-\x002\x002\x002\x002\x002\x00-\x005\x000\x000\x000\x001\x00-\x000\x000\x000\x000\x001\x00}\x00"
}

rule pe_file_in_overlay
{
meta:
tool = "P"
name = "PE-in-Overlay"
version = "-"
extra = "Various binary tools"
condition:
pe.overlay.size != 0 and
pe.overlay.offset != 0 and
uint16(pe.overlay.offset) == 0x5A4D and
uint32(pe.overlay.offset + 0x3C) >= 4 and
uint32(pe.overlay.offset + uint32(pe.overlay.offset + 0x3C)) == 0x00004550
}

rule spirit_15_01 {
meta:
tool = "P"
Expand Down
Loading