// question
On Windows endpoints, find the registry enumeration activity that was used to locate password entries. What was the full command line executed?
Reference KQL answer and model-by-model comparison.
b6ec082c-7384-46b3-a111-9a9b8b14e5e7
question id
1/23
models correct
2
valid answers
4%
success rate
// reference answers
Human-validated correct answers for this question.
reg query HKLM /f password /t REG_SZ /sreg query HKCU /f password /t REG_SZ /s
// model comparison
| Model | Answer | KQL query | Status | Tries | Time | Cost |
|---|---|---|---|---|---|---|
| gemini-2.5-flash-preview-04-17 | no answer | no query generated | fail | 5 | 0.00s | 0.0282 |
| gpt-35-turbo | no answer | no query generated | fail | 5 | 0.00s | 0.0113 |
| gpt-4-turbo-2024-04-09 | no answer | no query generated | fail | 5 | 0.00s | 0.2300 |
| gpt-4.1 | no answer | no query generated | fail | 5 | 0.00s | 0.0503 |
| gpt-4.1-finetuned | no answer | no query generated | fail | 5 | 0.00s | 0.0420 |
| gpt-4.1-mini | no answer | no query generated | fail | 5 | 0.00s | 0.0064 |
| gpt-4.1-nano | no answer | no query generated | fail | 5 | 0.00s | 0.0012 |
| gpt-4o | no answer | no query generated | fail | 5 | 0.00s | 0.0454 |
| gpt-5-high | no answer | no query generated | fail | 5 | 0.00s | 0.2620 |
| gpt-5-mini-high | no answer | no query generated | fail | 5 | 0.00s | 0.0224 |
| gpt-5-mini-low | no answer | no query generated | fail | 5 | 0.00s | 0.0143 |
| gpt-5-mini-medium | no answer | no query generated | fail | 5 | 0.00s | 0.0149 |
| gpt-5-nano-high | no answer | no query generated | fail | 5 | 0.00s | 0.0081 |
| gpt-5-nano-medium | no answer | no query generated | fail | 5 | 0.00s | 0.0092 |
| grok-3-beta | reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v DisableChangePassword /t REG_DWORD /d 1 /f | DeviceRegistryEvents | where RegistryKey contains 'password' or RegistryKey contains 'pwd' or RegistryValueName contains 'password' or RegistryValueName contains 'pwd' or RegistryValueData contains 'password' or RegistryValueData contains 'pwd' | project Timestamp, DeviceName, RegistryKey, RegistryValueName, RegistryValueData, InitiatingProcessCommandLine, InitiatingProcessFileName, InitiatingProcessAccountName | order by Timestamp desc | fail | 1 | 10.78s | 0.0223 |
| grok-3-mini-beta | no answer | no query generated | fail | 5 | 0.00s | 0.0069 |
| o1-high | no answer | no query generated | fail | 5 | 0.00s | 0.7086 |
| o1-low | no answer | no query generated | fail | 5 | 0.00s | 0.6190 |
| o3-high | no answer | no query generated | fail | 5 | 0.00s | 0.0958 |
| o3-mini-high | no answer | no query generated | fail | 5 | 0.00s | 0.0384 |
| o3-mini-low | no answer | no query generated | fail | 5 | 0.00s | 0.0494 |
| o4-mini-high | reg query HKLM /f password /t REG_SZ /s | // Lookup registry enumeration events for password-related entries
let RegEnumEvents = DeviceRegistryEvents
| where ActionType in ("RegEnumKey", "RegEnumValue", "RegQueryValue")
// Filter on keys or values containing “password” or the SAM hive
| where tolower(RegistryKey) contains "password"
or tolower(RegistryValueName) contains "password"
or RegistryKey startswith "HKEY_LOCAL_MACHINE\\SAM"
| extend CommandLine = InitiatingProcessCommandLine
| project TimeGenerated, DeviceName, InitiatingProcessFileName, CommandLine, ActionType, RegistryKey, RegistryValueName;
// Lookup use of ‘reg.exe’ to query password entries via command line
let RegExeEvents = DeviceProcessEvents
| where FileName == "reg.exe"
| where tolower(ProcessCommandLine) contains "query"
and tolower(ProcessCommandLine) contains "password"
| extend CommandLine = ProcessCommandLine
| project TimeGenerated, DeviceName, InitiatingProcessFileName = FileName, CommandLine, ActionType = strcat("Process:", ActionType), RegistryKey = "(n/a)", RegistryValueName = "(n/a)";
// Union both sources and show latest
union RegEnumEvents, RegExeEvents
| sort by TimeGenerated desc
| pass | 5 | 126.14s | 0.0487 |
| o4-mini-low | no answer | no query generated | fail | 5 | 0.00s | 0.0497 |