Files
splunk-security_content/detections/malicious_powershell_process___execution_policy_bypass.yml
2020-05-06 17:42:38 +02:00

45 lines
1.9 KiB
YAML

name: Malicious PowerShell Process - Execution Policy Bypass
id: 9be56c82-b1cc-4318-87eb-d138afaaca39
version: 3
date: '2018-12-03'
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.
how_to_implement: You must be ingesting data that records process activity from your
hosts to populate the Endpoint data model in the Processes node. You must also be
ingesting logs with both the process name and command line from your endpoints.
The command-line arguments are mapped to the "process" field in the Endpoint data
model.
type: ESCU
references: []
author: Rico Valdez, Splunk
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 Processes.process_name=powershell.exe AND (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`'
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.
tags:
analytics_story:
- DHS Report TA18-074A
mitre_attack_id:
- T1086
- T1064
kill_chain_phases:
- Command and Control
- Actions on Objectives
cis20:
- CIS 3
- CIS 7
- CIS 8
nist:
- PR.PT
- DE.CM
- PR.IP
security_domain: endpoint
asset_type: Endpoint