Windows API reference
NtUnmapViewOfSection
Unmaps a view of a section from a process virtual address space.
- Library
- Ntdll.dll
- Category
- Process Hollowing, Injection
- Suspicion
- high
- MITRE ATT&CK
- T1055.012 Process Injection: Process Hollowing
Detection summary
A core hollowing/doppelganging step: unmap the legitimate image, often the main module, before mapping a replacement and redirecting execution; detect Sysmon 25 ProcessTampering, ETW-TI unmap events, image-base changes, and a mismatch between the on-disk image and mapped memory. NtUnmapViewOfSection is also routine section teardown, so require sequence and target context.
- Sysmon: No Sysmon event mapped
- ETW: Microsoft-Windows-Threat-Intelligence
- Notes: Sysmon 25 ProcessTampering may fire on image replacement or hollowing but is not a direct unmap event; use ETW-TI/EDR plus image-memory comparison.
Sources and documentation
- Microsoft Learn documentation (equivalent API documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Loaders and applications that unmap section views.
Related APIs
- NtMapViewOfSection — Ntdll.dll
- WriteProcessMemory — Kernel32.dll