Detection rule
Wdigest Enable UseLogonCredential
Overview
Detects potential malicious modification of the property value of UseLogonCredential from HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest to enable clear-text credentials
- Rule id
d6a9b252-c666-4de6-8806-5561bbbd3bdc- ATT&CK techniques
- T1112 Modify Registry
- Severity
- High
- Confidence
- Low
- Origin
- SigmaHQ (community)
- SigmaHQ status
test- Used in defense packs
- The Gentlemen, Akira, safepay, everest
Validation
- ExperimentalSyntax checked only. Not yet tested on events.
- Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
- SIEM-validatedRun in a real SIEM, with a recorded result.
1 of 1 positive test events matched; 1 of 1 near-miss events were correctly ignored. Community rule reused unmodified from SigmaHQ. OffSet7 converted it and tested it on synthetic events.
Detection logic and queries
Queries are shown exactly as generated. Test them in your environment before you deploy them.
Sigma
Sigma (YAML) · d6a9b252-c666-4de6-8806-5561bbbd3bdc
title: Wdigest Enable UseLogonCredential
id: d6a9b252-c666-4de6-8806-5561bbbd3bdc
status: test
description: Detects potential malicious modification of the property value of UseLogonCredential from HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest to enable clear-text credentials
references:
- https://threathunterplaybook.com/hunts/windows/190510-RegModWDigestDowngrade/notebook.html
- https://support.microsoft.com/en-us/topic/microsoft-security-advisory-update-to-improve-credentials-protection-and-management-may-13-2014-93434251-04ac-b7f3-52aa-9f951c14b649
- https://github.com/redcanaryco/atomic-red-team/blob/73fcfa1d4863f6a4e17f90e54401de6e30a312bb/atomics/T1112/T1112.md#atomic-test-3---modify-registry-to-store-logon-credentials
author: Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)
date: 2019-09-12
modified: 2023-08-17
tags:
- attack.persistence
- attack.defense-impairment
- attack.t1112
logsource:
category: registry_set
product: windows
detection:
selection:
TargetObject|endswith: 'WDigest\UseLogonCredential'
Details: DWORD (0x00000001)
condition: selection
falsepositives:
- Unknown
level: high
simulation:
- type: atomic-red-team
name: Modify registry to store logon credentials
technique: T1112
atomic_guid: c0413fb5-33e2-40b7-9b6f-60b29f4a7a18QRadar CRE
Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.
- Rule name
OffSet7: Wdigest Enable UseLogonCredential- Rule type
- Event rule (Local)
- Log source types
- Microsoft Windows Security Event Log DSM: Sysmon EID 13 (registry value set)
Building blocks
BB:OffSet7:Wdigest Enable UseLogonCredential:selection(match)All test lines must match (AND).Process Name / Target Process Name / Object Nameends with:WDigest\UseLogonCredential- custom property needed:
Detailsis equal to (case-insensitive):DWORD (0x00000001)No QRadar property mapped for "Details": create a custom event property (regex or JSON) on the DSM first.
Main rule, option A (building blocks)
- when the event(s) were detected by one or more of these log source types:
Microsoft Windows Security Event Log DSM: Sysmon EID 13 (registry value set) - when an event matches the condition built from these building blocks:
BB:OffSet7:Wdigest Enable UseLogonCredential:selection
Main rule, option B (AQL filter test)
Not available: the AQL conversion failed for this rule.
Rule response
- Severity 7, credibility 6, relevance 7
- Ensure the detected event is part of an offense; index offense on Log Source (host) and annotate with the rule title and OffSet7 rule id
- Respond no more than once per 30 minutes per Log Source (tune per environment)
Limitations
- AQL conversion failed (field 'Details' is not supported); only the building-block design is available.
- QRadar AQL LIKE / CRE string tests are case-sensitive unless the property is lower-cased; the AQL option uses LOWER() where the backend applied it.
Splunk
Splunk SPLSearch
Search for Splunk with Windows/Sysmon field names. A scheduled search or ES correlation search also needs a schedule, time range, throttling and an adaptive response, set in your environment.
TargetObject="*WDigest\\UseLogonCredential" Details="DWORD (0x00000001)"Splunk savedsearches.conf stanzaScheduled search template
Template stanza. Review schedule, alert actions and index/sourcetype for your environment before enabling.
[default]
dispatch.earliest_time = -30d
dispatch.latest_time = now
[Wdigest Enable UseLogonCredential]
description = Detects potential malicious modification of the property value of UseLogonCredential from HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest to enable clear-text credentials
search = TargetObject="*WDigest\\UseLogonCredential" Details="DWORD (0x00000001)"Microsoft Sentinel
Microsoft Sentinel KQL (ASIM)Hunting query
Hunting query over ASIM-normalized tables. An analytics rule also needs a schedule, entity mapping and alert grouping.
imRegistry
| where RegistryKey endswith "WDigest\\UseLogonCredential" and RegistryValueData =~ "DWORD (0x00000001)"Defender XDR
Microsoft Defender XDR KQLHunting query
Advanced hunting query. A custom detection rule also needs a frequency, impacted entities and actions.
DeviceRegistryEvents
| where RegistryKey endswith "WDigest\\UseLogonCredential" and RegistryValueData =~ "DWORD (0x00000001)"Elastic
Elastic Lucene (ECS)Hunting query
Lucene query over ECS fields (Winlogbeat/Elastic Agent Windows mappings). A detection rule also needs an index pattern, schedule and actions.
registry.path:*WDigest\\UseLogonCredential AND registry.data.strings:"DWORD \(0x00000001\)"Elastic EQL (ECS)Hunting query
EQL query over ECS fields. Usable in an Elastic Security EQL rule after review; index pattern and schedule are set per environment.
any where registry.path:"*WDigest\\UseLogonCredential" and registry.data.strings:"DWORD (0x00000001)"Elastic ES|QL (ECS)Hunting query
ES|QL query over ECS fields; the FROM clause uses * and must be narrowed to your indices.
from * metadata _id, _index, _version | where ends_with(registry.path, "WDigest\\UseLogonCredential") and registry.data.strings=="DWORD (0x00000001)"No working conversion: IBM QRadar AQL (hunting query) (QRadar AQL backend has no property mapping for field "Details")
Required telemetry
- Log source
product: windows · category: registry_set- Fields used
DetailsTargetObject
False positives
- Unknown
Investigation and response
No OffSet7 investigation guidance has been written for this rule yet. Start from the false positives above and the ATT&CK technique pages.
References
- https://threathunterplaybook.com/hunts/windows/190510-RegModWDigestDowngrade/notebook.html
- https://support.microsoft.com/en-us/topic/microsoft-security-advisory-update-to-improve-credentials-protection-and-management-may-13-2014-93434251-04ac-b7f3-52aa-9f951c14b649
- https://github.com/redcanaryco/atomic-red-team/blob/73fcfa1d4863f6a4e17f90e54401de6e30a312bb/atomics/T1112/T1112.md#atomic-test-3---modify-registry-to-store-logon-credentials
Author and attribution
- Author
- Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)
- Source
- SigmaHQ ·
rules/windows/registry/registry_set/registry_set_wdigest_enable_uselogoncredential.yml - Upstream commit
9688134317a2- Licence
- Detection Rule License (DRL) 1.1
Version history
- Version 1Imported from SigmaHQ
- OffSet7 build · SigmaHQ
9688134317a2