PEzoNG: Advanced Packer For Automated Evasion - Dimitri Di Cristofaro - Giorgio Bernardinetti @RedTeamVillage
PEzoNG: Advanced Packer For Automated Evasion - Dimitri Di Cristofaro - Giorgio Bernardinetti  @RedTeamVillage
Uploaded September 2021 | Updated December 2026, 3 hours ago
Title: PEzoNG: Advanced Packer For Automated Evasion On Windows

Speakers: Dimitri Di Cristofaro and Giorgio Bernardinetti

A fully undetectable (FUD) executable is a highly coveted goal in cybersecurity field, especially in the case of Red Teams. In this talk we present the design and implementation of PEzoNG, a framework for automatic creation of FUD binaries in a Windows environment.

PEzoNG features a custom loader for Windows binaries, polymorphic obfuscation, a payload decryption process and a number of anti-sandbox and anti-analysis evasion mechanisms - in particular we present a novel userland unhooking technique. In addition, the custom loader supports a large amount of Windows executable files, and features stealth and bleeding-edge memory allocation schemes. Finally we show the effectiveness of PEzoNG over a number of commercial anti-malware solutions. PEzoNG was born from the idea of PEzor (github.com/phra/PEzor), an open-source PE packer. At the time of writing PEzoNG is a completely different project from PEzor, though they still share a part of the name and the building environment, made up of LLVM and clang.

PEzoNG is a project written in C and C++ and uses the Mingw-w64 development environment together with the LLVM toolchain in order to compile and link.

PEzoNG source code is made up of three main components:

- the malicious payload, e.g. Cobalt Strike Raw Shellcode, Mimikatz, SharpHound, etc.

- the evasion code, which allows to evade from AV Sandboxes and EDRs

- the main loader, which loads the malicious payload into memory and executes it.

PEzoNG is built with modularity in mind and allows to add new features in a simple way by adding new modules that could implement different techniques with a low grained detail.

The project is organized in the following macro-categories - or modules:

- Encryption

- Windows APIs

- Syscalls

- Evasion

- PE loader

- Shellcode injection



Red Team Village Website: redteamvillage.io
Discord: redteamvillage.io/discord
Twitter: redteamvillage.io/twitter
PEzoNG: Advanced Packer For Automated Evasion - Dimitri Di Cristofaro - Giorgio BernardinettiRed Team Village at YASCON 2020A discussion about the DEF CON 29 Red Team Village CyberWraithDEF CON 29 Red Team Village CTF: Day 3Wild Web Warriors Web App Hacking the Next Generation #HackingisNOTaCrimeRTV Overflow An Operators Guide: Hunting SCCM in the Real World w/ Zachary Stein & Garrett FosterExternal Threat Hunters are Red Teamers by Jorge Orchilles and David MaynorDC30 - Red Team Village - NahamsecDiscussion on How to Build Hacking and Cybersecurity LabsCharge!: Why you shouldnt trust that power bank by Mauro Eldritch & Luis RamirezMayhem 2021 Portuguese Track Opening Remarks - Filipi Pires and Omar SantosKnock knock, Whos There? Identifying Assets in the Cloud by @NahamSec  and StaticFlow
Red Team Village |

PEzoNG: Advanced Packer For Automated Evasion - Dimitri Di Cristofaro - Giorgio Bernardinetti

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER