Windows API reference
NtCreateThreadEx
Creates a thread in a specified process, optionally with extended creation flags; the native path behind CreateRemoteThreadEx and CreateThread.
- Library
- Ntdll.dll
- Category
- Injection
- Suspicion
- high
- MITRE ATT&CK
- T1055 Process Injection
Detection summary
Classic remote-thread injection: after allocating and writing memory, malware calls NtCreateThreadEx with the target process handle and a shellcode start address; detect Sysmon 8, ETW-TI remote-thread events, EDR call stacks, and threads whose start address is not backed by a mapped image. Direct syscalls may avoid user-mode hooks.
- Sysmon: Sysmon Event 8
- ETW: Microsoft-Windows-Kernel-Process, Microsoft-Windows-Threat-Intelligence
- Notes: Sysmon 8 records remote thread creation, not local thread creation and not the API name. Event 8 includes source/target PID and start address; local NtCreateThreadEx calls do not generate it.
Sources and documentation
- Microsoft Learn documentation (equivalent API documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Runtimes, debuggers and security tools that create threads with extended options.
Related APIs
- CreateRemoteThread — Kernel32.dll
- RtlCreateUserThread — Ntdll.dll