Windows API reference
WriteProcessMemory
Writes data to an area of memory in a specified process; the entire target area must be writable or the operation fails.
- Library
- Kernel32.dll
- Category
- Injection, Memory Management, Process Hollowing
- Suspicion
- high
- MITRE ATT&CK
- T1055 Process Injection
Detection summary
Writes shellcode, a PE image or configuration into a remote process after VirtualAllocEx; detect ETW-TI remote-write events, a preceding Sysmon 10 PROCESS_VM_WRITE handle open, EDR call stacks, and private RW/RX memory. Direct NtWriteVirtualMemory or syscalls can bypass user-mode hooks, so kernel telemetry and memory scanning are primary.
- Sysmon: No Sysmon event mapped
- ETW: Microsoft-Windows-Threat-Intelligence
- Notes: Sysmon has no write event; Event 10 may show the preceding handle open but not the data or target address.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Debuggers, crash reporters, EDR/anti-cheat, sandbox instrumentation and accessibility tools.
Related APIs
- VirtualAllocEx — Kernel32.dll
- CreateRemoteThread — Kernel32.dll
- ReadProcessMemory — Kernel32.dll