Windows API reference
NtQueryKey
Native query of key metadata such as subkey and value counts.
- Library
- Ntdll.dll
- Category
- Registry, Enumeration
- Suspicion
- low
- MITRE ATT&CK
- T1012 Query Registry
Detection summary
NtQueryKey maps to Microsoft-Windows-Kernel-Registry; these events record the OS effect, not the API call.
- Sysmon: No Sysmon event mapped
- ETW: Microsoft-Windows-Kernel-Registry
- Notes: Microsoft-Windows-Kernel-Registry records registry operations at high volume when enabled.
Sources and documentation
- Microsoft Learn documentation (equivalent API documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Native applications and system tools that query registry key metadata.