Windows API reference
NtOpenKey
Opens an existing registry key and returns a handle.
- Library
- Ntdll.dll
- Category
- Registry
- Suspicion
- medium
- MITRE ATT&CK
- T1012 Query Registry
Detection summary
NtOpenKey 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
Every Windows application and installer.
Related APIs
- RegOpenKeyExW — Advapi32.dll