mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
83 lines
3.5 KiB
YAML
83 lines
3.5 KiB
YAML
name: Windows Password Managers Discovery
|
|
id: a3b3bc96-1c4f-4eba-8218-027cac739a48
|
|
version: 1
|
|
date: '2022-11-30'
|
|
author: Teoderick Contreras, Splunk
|
|
type: Hunting
|
|
datamodel:
|
|
- Endpoint
|
|
description: The following analytic identifies a process command line that retrieves information related to password manager software.
|
|
This technique was seen in several post exploitation tools like winpeas that are being used by Ransomware Prestige to gather this type of information.
|
|
Password Managers applications are designed to store user credentials, normally in an encrypted database. Credentials are typically accessible after a
|
|
user provides a master password that unlocks the database. After the database is unlocked, these credentials may be copied to memory.
|
|
These databases can be stored as files on disk. Due to this password manager software designed adversaries may find or look for keywords related to the Password
|
|
Manager databases that can be stolen or extracted for further attacks.
|
|
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes
|
|
where Processes.process = "*dir *" OR Processes.process = "*findstr*"
|
|
AND Processes.process IN ( "*.kdbx*", "*credential*", "*key3.db*","*pass*", "*cred*", "*key4.db*", "*accessTokens*", "*access_tokens*", "*.htpasswd*", "*Ntds.dit*")
|
|
by Processes.process_name Processes.original_file_name Processes.process Processes.process_id Processes.process_guid
|
|
Processes.parent_process_name Processes.parent_process Processes.parent_process_guid Processes.dest Processes.user
|
|
| `drop_dm_object_name(Processes)`
|
|
| `security_content_ctime(firstTime)`
|
|
| `security_content_ctime(lastTime)`
|
|
| `windows_password_managers_discovery_filter`'
|
|
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://attack.mitre.org/techniques/T1555/005/
|
|
- https://github.com/carlospolop/PEASS-ng/tree/master/winPEAS
|
|
- https://www.microsoft.com/en-us/security/blog/2022/10/14/new-prestige-ransomware-impacts-organizations-in-ukraine-and-poland/
|
|
tags:
|
|
analytic_story:
|
|
- Windows Post-Exploitation
|
|
- Prestige Ransomware
|
|
asset_type: Endpoint
|
|
cis20:
|
|
- CIS 3
|
|
- CIS 5
|
|
- CIS 16
|
|
confidence: 50
|
|
context:
|
|
- Source:Endpoint
|
|
- Stage:Discovery
|
|
- Stage:Recon
|
|
dataset:
|
|
- https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/malware/winpeas/winpeas_search_pwd_db/dir-db-sysmon.log
|
|
impact: 50
|
|
kill_chain_phases:
|
|
- Exploitation
|
|
message: a process with commandline $process$ that can retrieve information related to password manager databases in $dest$
|
|
mitre_attack_id:
|
|
- T1555.005
|
|
nist:
|
|
- DE.CM
|
|
observable:
|
|
- name: dest
|
|
type: Hostname
|
|
role:
|
|
- Victim
|
|
product:
|
|
- Splunk Enterprise
|
|
- Splunk Enterprise Security
|
|
- Splunk Cloud
|
|
required_fields:
|
|
- _time
|
|
- Processes.dest
|
|
- Processes.user
|
|
- Processes.parent_process_name
|
|
- Processes.parent_process
|
|
- Processes.original_file_name
|
|
- Processes.process_name
|
|
- Processes.process
|
|
- Processes.process_id
|
|
- Processes.parent_process_path
|
|
- Processes.process_path
|
|
- Processes.parent_process_id
|
|
- Processes.parent_process_guid
|
|
- Processes.process_guid
|
|
risk_score: 25
|
|
security_domain: endpoint
|