Files
splunk-security_content/detections/endpoint/malicious_powershell_process___execution_policy_bypass.yml
tccontre e0299db411 CARS_UPDATE_MITRE_ID_B5
CARS_UPDATE_MITRE_ID_B5
2021-10-13 11:20:47 +02:00

82 lines
2.8 KiB
YAML

name: Malicious PowerShell Process - Execution Policy Bypass
id: 9be56c82-b1cc-4318-87eb-d138afaaca39
version: 5
date: '2020-07-21'
author: Rico Valdez, Mauricio Velazco, Splunk
type: TTP
datamodel:
- Endpoint
description: This search looks for PowerShell processes started with parameters used
to bypass the local execution policy for scripts. These parameters are often observed
in attacks leveraging PowerShell scripts as they override the default PowerShell
execution policy.
search: '| tstats `security_content_summariesonly` values(Processes.process_id) as
process_id, values(Processes.parent_process_id) as parent_process_id values(Processes.process)
as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes
where `process_powershell` (Processes.process="* -ex*" OR Processes.process="* bypass
*") by Processes.process_id, Processes.user, Processes.dest | `drop_dm_object_name(Processes)`
| `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `malicious_powershell_process___execution_policy_bypass_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: There may be legitimate reasons to bypass the PowerShell execution
policy. The PowerShell script being run with this parameter should be validated
to ensure that it is legitimate.
references: []
tags:
analytic_story:
- DHS Report TA18-074A
- HAFNIUM Group
asset_type: Endpoint
automated_detection_testing: passed
cis20:
- CIS 3
- CIS 7
- CIS 8
confidence: 60
context:
- Source:Endpoint
- Stage:Initial Access
- Stage:Execution
- Stage:Defense Evasion
dataset:
- https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1059.001/encoded_powershell/windows-sysmon.log
impact: 70
kill_chain_phases:
- Command and Control
- Actions on Objectives
message: PowerShell local execution policy bypass attempt on $dest$
mitre_attack_id:
- T1059
- T1059.001
nist:
- PR.PT
- DE.CM
- PR.IP
observable:
- name: dest
type: Endpoint
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
risk_score: 42
security_domain: endpoint