code section
The part of a PE file, usually named .text, that holds the program's machine code.
In more detail
Flipping a single bit in the code section gives a new file hash while the program is almost unchanged, which shows why exact hashes identify one file but not a family. Its memory protection is normally read and execute, not write.
Related terms
- Portable Executable — The file format of Windows programs and libraries (.exe and .dll files), with headers that describe code, data and imported functions.
- hash — A short fixed-length fingerprint calculated from data, which changes completely if even one byte of the data changes.
- RVA — Relative virtual address: a position inside a loaded program counted from its image base, used throughout PE headers.
Taught in
- Malware Triage: Hashes, Strings & Sandboxing — Security Operations & Threat Hunting (SOC)