Windows API reference
NtSetValueKey
Native registry value write.
- Library
- Ntdll.dll
- Category
- Registry, Persistence
- Suspicion
- high
Detection summary
NtSetValueKey maps to Sysmon Event 13 and Microsoft-Windows-Kernel-Registry; these events record the OS effect, not the API call.
- Sysmon: Sysmon Event 13
- ETW: Microsoft-Windows-Kernel-Registry
- Notes: Sysmon Events 12 and 13 record registry key and value changes; ordinary key opens and queries do not. 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 write registry values directly.
Related APIs
- RegSetValueExW — Advapi32.dll