MZ header

The first bytes of every Windows executable, starting with the letters MZ, which point to the main PE header further in.

In more detail

The field e_lfanew at offset 0x3C gives the position of the PE signature (PE\0\0). YARA conditions often check uint16(0) == 0x5A4D so a rule only fires on executables. Finding MZ at the start of a private memory region suggests an injected or hollowed image.

Related terms

Taught in

References