Windows API reference
NtQueryValueKey
Native registry value query.
- Library
- Ntdll.dll
- Category
- Registry
- Suspicion
- low
- MITRE ATT&CK
- T1012 Query Registry
Detection summary
NtQueryValueKey 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 values.
Related APIs
- RegQueryValueExW — Advapi32.dll