Windows API reference
WinExec
Legacy function that runs a program; superseded by CreateProcess.
- Library
- Kernel32.dll
- Category
- Helper
- Suspicion
- medium
- MITRE ATT&CK
- Not mapped
Detection summary
WinExec maps to Sysmon Event 1 and Microsoft-Windows-Kernel-Process; these events record the OS effect, not the API call.
- Sysmon: Sysmon Event 1
- ETW: Microsoft-Windows-Kernel-Process
- Notes: Sysmon Event 1 records the new process image, command line and parent; the event does not name the API that requested creation. Microsoft-Windows-Kernel-Process provides process, thread and image lifecycle events when enabled.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Common in general Windows applications; usage varies by application type.
Related APIs
- CreateProcessW — Kernel32.dll