mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
68 lines
2.6 KiB
YAML
68 lines
2.6 KiB
YAML
name: Windows Cached Domain Credentials Reg Query
|
|
id: 40ccb8e0-1785-466e-901e-6a8b75c04ecd
|
|
version: 1
|
|
date: '2022-11-30'
|
|
author: Teoderick Contreras, Splunk
|
|
status: production
|
|
type: Anomaly
|
|
description: The following analytic identifies a process command line related to the
|
|
discovery of cache domain credential logon count in the registry. This Technique
|
|
was being abused by several post exploitation tool like Winpeas where it query CachedLogonsCount
|
|
registry value in Winlogon registry. This value can be good information about the
|
|
login caching setting on the Windows OS target host. A value of 0 means login caching
|
|
is disable and values > 50 caches only 50 login attempts. By default all versions
|
|
of Windows 10 save cached logins except Windows Server 2008.
|
|
data_source:
|
|
- Sysmon Event ID 1
|
|
search:
|
|
selection1:
|
|
OriginalFileName: reg.exe
|
|
selection2:
|
|
Image|endswith: reg.exe
|
|
selection3:
|
|
CommandLine: '* query *'
|
|
selection4:
|
|
CommandLine: '*\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon*'
|
|
selection5:
|
|
CommandLine: '*CACHEDLOGONSCOUNT*'
|
|
condition: (selection1 or selection2) and selection3 and selection4 and selection5
|
|
how_to_implement: To successfully implement this search, you need to be ingesting
|
|
logs with the process name, parent process, and command-line executions from your
|
|
endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the
|
|
Sysmon TA. Tune and filter known instances of wermgr.exe may be used.
|
|
known_false_positives: unknown
|
|
references:
|
|
- https://www.microsoft.com/en-us/security/blog/2022/10/14/new-prestige-ransomware-impacts-organizations-in-ukraine-and-poland/
|
|
- https://learn.microsoft.com/de-de/troubleshoot/windows-server/user-profiles-and-logon/cached-domain-logon-information
|
|
- https://github.com/carlospolop/PEASS-ng/tree/master/winPEAS
|
|
tags:
|
|
analytic_story:
|
|
- Windows Post-Exploitation
|
|
- Prestige Ransomware
|
|
asset_type: Endpoint
|
|
confidence: 30
|
|
impact: 30
|
|
message: a process with commandline $process$ tries to retrieve cache domain credential
|
|
logon count in $dest$
|
|
mitre_attack_id:
|
|
- T1003.005
|
|
- T1003
|
|
observable:
|
|
- name: dest
|
|
type: Hostname
|
|
role:
|
|
- Victim
|
|
product:
|
|
- Splunk Enterprise
|
|
- Splunk Enterprise Security
|
|
- Splunk Cloud
|
|
risk_score: 9
|
|
security_domain: endpoint
|
|
tests:
|
|
- name: True Positive Test
|
|
attack_data:
|
|
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/winpeas/sysmon.log
|
|
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
|
|
sourcetype: xmlwineventlog
|
|
update_timestamp: true
|