Windows API reference

NtAllocateVirtualMemory

Reserves, commits, or changes the state of a region of pages in the user-mode virtual address space of a specified process.

Library
Ntdll.dll
Suspicion
high

Detection summary

Malware uses NtAllocateVirtualMemory to stage shellcode or a PE in a remote process, often requesting PAGE_EXECUTE_READWRITE or allocating RW and later flipping to RX; detect ETW-TI remote-allocation events, EDR kernel callbacks, private executable memory not backed by an image, and sequences with NtWriteVirtualMemory, NtProtectVirtualMemory and NtCreateThreadEx. Direct or indirect syscalls can bypass user-mode hooks, so kernel telemetry and memory scanning are primary.

Sources and documentation

Not yet human-reviewed. Page metadata generated .

Legitimate use

Memory managers, runtimes, debuggers and security tools that allocate virtual memory natively.

Open NtAllocateVirtualMemory in the interactive atlas