Windows API reference
VirtualAllocEx
Reserves, commits, or changes the state of a region of memory within another process.
- Library
- Kernel32.dll
- Category
- Injection, Memory Management, Process Hollowing
- Suspicion
- high
- MITRE ATT&CK
- T1055 Process Injection
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.
- Sysmon: No Sysmon event mapped
- ETW: Microsoft-Windows-Threat-Intelligence
- Notes: Sysmon does not log VirtualAllocEx directly; ETW-TI or EDR kernel callbacks are required. The event does not prove malicious intent without surrounding behavior.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Debuggers, accessibility tools, EDR/AV self-protection, game overlays, sandbox instrumentation and some installers.
Related APIs
- VirtualProtectEx — Kernel32.dll
- WriteProcessMemory — Kernel32.dll
- CreateRemoteThread — Kernel32.dll