Windows API reference

VirtualAllocEx

Reserves, commits, or changes the state of a region of memory within another process.

Library
Kernel32.dll
Suspicion
high

Detection summary

Remote-allocation step for shellcode/PE injection or hollowing; detect ETW-TI remote allocation, private executable memory, PAGE_EXECUTE_READWRITE, and sequences with WriteProcessMemory and CreateRemoteThread. VirtualAllocEx is also used by debuggers and EDR, so scope by target, protection and subsequent writes.

Sources and documentation

Not yet human-reviewed. Page metadata generated .

Legitimate use

Debuggers, accessibility tools, EDR/AV self-protection, game overlays, sandbox instrumentation and some installers.

Open VirtualAllocEx in the interactive atlas