Windows API reference
FindFirstFileW
Searches a directory for files matching a pattern and returns the first hit.
- Library
- Kernel32.dll
- Category
- Enumeration, Ransomware
- Suspicion
- medium
- MITRE ATT&CK
- T1083 File and Directory Discovery
Detection summary
FindFirstFileW maps to Microsoft-Windows-Kernel-File; these events record the OS effect, not the API call.
- Sysmon: No Sysmon event mapped
- ETW: Microsoft-Windows-Kernel-File
- Notes: 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
Task managers, EDR agents, installers, backup tools and inventory software.
Related APIs
- FindNextFileW — Kernel32.dll
- FindClose — Kernel32.dll