Windows API reference
VirtualProtect
Changes the protection of committed memory in the calling process.
- Library
- Kernel32.dll
- Category
- Memory Management
- Suspicion
- high
- MITRE ATT&CK
- T1055 Process Injection
Detection summary
VirtualProtect is not directly logged; protection changes require EDR or provider-specific memory telemetry and adjacent injection context.
- Sysmon: No Sysmon event mapped
- ETW: No ETW provider mapped
- Notes: Correlate with VirtualAlloc, writes and remote thread creation (Sysmon 8) or process access (Sysmon 10). Every process changes page protections, so use call stacks and the surrounding chain, not the import alone.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
- MITRE ATT&CK T1055: Process Injection
- Microsoft Sysmon events
Last reviewed: . Page metadata generated .
Legitimate use
Every process; heaps, stacks, mapped files and JIT engines.
Related APIs
- VirtualAlloc — Kernel32.dll
- FlushInstructionCache — Kernel32.dll