Files
splunk-security_content/detections/endpoint/powershell_com_hijacking_inprocserver32_modification.yml
2023-03-03 12:40:16 +01:00

64 lines
2.4 KiB
YAML

name: Powershell COM Hijacking InprocServer32 Modification
id: ea61e291-af05-4716-932a-67faddb6ae6f
version: 1
date: '2022-09-26'
author: Michael Haag, Splunk
status: production
type: TTP
description: The following analytic utilizes PowerShell ScriptBlock Logging to identify
a script that is attempting to modify or add a component object model to inprocserver32
path within the registry.
data_source:
- Powershell 4104
search: '`powershell` EventCode=4104 ScriptBlockText = "*Software\\Classes\\CLSID\\*\\InProcServer32*"
| stats count min(_time) as firstTime max(_time) as lastTime by EventCode ScriptBlockText
Computer UserID | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`
| `powershell_com_hijacking_inprocserver32_modification_filter`'
how_to_implement: The following analytic requires PowerShell operational logs to be
imported. Modify the PowerShell macro as needed to match the sourcetype or add index.
This analytic is specific to 4104, or PowerShell Script Block Logging.
known_false_positives: False positives will be present if any scripts are adding to
inprocserver32. Filter as needed.
references:
- https://attack.mitre.org/techniques/T1546/015/
- https://www.splunk.com/en_us/blog/security/hunting-for-malicious-powershell-using-script-block-logging.html
- https://blog.cluster25.duskrise.com/2022/09/23/in-the-footsteps-of-the-fancy-bear-powerpoint-graphite/
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1546.015/T1546.015.md
tags:
analytic_story:
- Malicious PowerShell
asset_type: Endpoint
confidence: 80
impact: 80
message: A PowerShell script has been identified with InProcServer32 within the
script code on $Computer$.
mitre_attack_id:
- T1546.015
- T1059
- T1059.001
observable:
- name: Computer
type: Hostname
role:
- Victim
product:
- Splunk Enterprise
- Splunk Enterprise Security
- Splunk Cloud
required_fields:
- _time
- ScriptBlockText
- Opcode
- Computer
- UserID
- EventCode
risk_score: 64
security_domain: endpoint
tests:
- name: True Positive Test
attack_data:
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1546.015/atomic_red_team/windows-powershell.log
source: XmlWinEventLog:Microsoft-Windows-PowerShell/Operational
sourcetype: xmlwineventlog
update_timestamp: true