Files
splunk-security_content/detections/endpoint/detect_renamed_psexec.yml
Michael Haag c6db7b5415 CISA AA22-320A
2022-11-16 12:10:42 -07:00

89 lines
3.2 KiB
YAML

name: Detect Renamed PSExec
id: 683e6196-b8e8-11eb-9a79-acde48001122
version: 4
date: '2022-04-07'
author: Michael Haag, Splunk
type: Hunting
datamodel:
- Endpoint
description: The following analytic identifies renamed instances of `PsExec.exe` being
utilized on an endpoint. Most instances, it is highly probable to capture `Psexec.exe`
or other SysInternal utility usage with the command-line argument of `-accepteula`.
During triage, validate this is the legitimate version of `PsExec` by reviewing
the PE metadata. In addition, review parallel processes for further suspicious behavior.
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time)
as lastTime from datamodel=Endpoint.Processes where (Processes.process_name!=psexec.exe OR Processes.process_name!=psexec64.exe) AND Processes.original_file_name=psexec.c by Processes.dest
Processes.user Processes.parent_process_name Processes.process_name Processes.process
Processes.process_id Processes.parent_process_id Processes.original_file_name |
`drop_dm_object_name(Processes)` | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`
| `detect_renamed_psexec_filter`'
how_to_implement: To successfully implement this search you need to be ingesting information
on process that include the name of the process responsible for the changes from
your endpoints into the `Endpoint` datamodel in the `Processes` node. In addition,
confirm the latest CIM App 4.20 or higher is installed and the latest TA for the
endpoint product.
known_false_positives: Limited false positives should be present. It is possible some
third party applications may use older versions of PsExec, filter as needed.
references:
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1569.002/T1569.002.yaml
- https://redcanary.com/blog/threat-hunting-psexec-lateral-movement/
tags:
analytic_story:
- SamSam Ransomware
- DHS Report TA18-074A
- HAFNIUM Group
- DarkSide Ransomware
- Active Directory Lateral Movement
- CISA AA22-320A
confidence: 90
context:
- Source:Endpoint
- Stage:Collection
dataset:
- https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1569.002/atomic_red_team/windows-sysmon.log
impact: 30
kill_chain_phases:
- Exploitation
message: The following $process_name$ has been identified as renamed, spawning from
$parent_process_name$ on $dest$ by $user$.
mitre_attack_id:
- T1569
- T1569.002
observable:
- name: user
type: User
role:
- Victim
- name: dest
type: Hostname
role:
- Victim
- name: parent_process_name
type: Process
role:
- Parent Process
- name: process_name
type: Process
role:
- Child Process
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
risk_score: 27
security_domain: endpoint
asset_type: Endpoint