Windows API reference
CreateFileW
Creates or opens a file, directory, device or named pipe.
- Library
- Kernel32.dll
- Category
- Helper
- Suspicion
- medium
- MITRE ATT&CK
- Not mapped
Detection summary
CreateFileW maps to Sysmon Event 11 and Microsoft-Windows-Kernel-File; these events record the OS effect, not the API call.
- Sysmon: Sysmon Event 11
- ETW: Microsoft-Windows-Kernel-File
- Notes: Sysmon Event 11 records file creation only; opening or overwriting an existing file does not produce it. Microsoft-Windows-Kernel-File records file create, read, write, rename and close operations 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
- ReadFile — Kernel32.dll
- WriteFile — Kernel32.dll
- SetEndOfFile — Kernel32.dll
- DeleteFileW — Kernel32.dll