Windows API reference
NtWriteVirtualMemory
Writes data into a specified process virtual address space; the native equivalent of WriteProcessMemory.
- Library
- Ntdll.dll
- Category
- Injection, Memory Management
- Suspicion
- high
- MITRE ATT&CK
- T1055 Process Injection
Detection summary
Used after remote allocation to write shellcode, a PE image or configuration into a victim process; detect ETW-TI remote-write events, EDR kernel callbacks, private RW/RX regions, and cross-process handle opens with PROCESS_VM_WRITE and PROCESS_VM_OPERATION. A preceding Sysmon 10 ProcessAccess event may show the handle open, but it does not contain the data written. Direct syscalls evade user-mode hooks.
- Sysmon: No Sysmon event mapped
- ETW: Microsoft-Windows-Threat-Intelligence
- Notes: Sysmon has no event for the write itself; Event 10 may show a preceding handle open with PROCESS_VM_WRITE, but not the buffer or target address.
Sources and documentation
- Microsoft Learn documentation (equivalent API documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Debuggers, instrumentation and security tools that write process memory natively.
Related APIs
- WriteProcessMemory — Kernel32.dll