Windows API reference
VirtualAlloc
Reserves, commits or changes memory in the calling process.
- Library
- Kernel32.dll
- Category
- Memory Management
- Suspicion
- high
- MITRE ATT&CK
- Not mapped
Detection summary
VirtualAlloc has no reviewed Sysmon/ETW event; memory allocation is inferred from EDR or provider-specific memory telemetry.
- Sysmon: No Sysmon event mapped
- ETW: No ETW provider mapped
- Notes: Correlate with VirtualProtect, writes, image mapping and remote thread creation (Sysmon 8) where those adjacent operations produce events. Allocation alone is ubiquitous in normal processes.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
- Microsoft Sysmon events
Last reviewed: . Page metadata generated .
Legitimate use
Every process; heaps, stacks, mapped files and JIT engines.
Related APIs
- VirtualProtect — Kernel32.dll
- VirtualFree — Kernel32.dll
- RtlMoveMemory — Ntdll.dll