Service Modification Fax

Metadata

Author

Roberto Rodriguez @Cyb3rWard0g

Creation Date

2020/10/21

Modification Date

2020/10/21

Tactics

[‘TA0003’, ‘TA0004’]

Techniques

[‘T1543.003’]

Tags

[‘art.ed366cde-7d12-49df-a833-671904770b9f’]

Dataset Description

This dataset represents adversaries modifying a local service to execute powershell.

Notebooks

Notebooks created by the community leveraging the mordor datasets

Author

Name

Link

Simulation Plan

Environment

Tool Type

Module

Lab VM

Manual

cmd

Adversary View

sc config Fax binPath= "C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -c \"write-host 'T1543.003 Test'\""
sc start Fax

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/privilege_escalation/host/cmd_service_mod_fax.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|12     |159  |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|7      |97   |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|10     |59   |
|WORKSTATION5|Security                            |4658   |36   |
|WORKSTATION5|Security                            |4656   |18   |
|WORKSTATION5|Security                            |4690   |18   |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|13     |14   |
|WORKSTATION5|Security                            |4663   |6    |
|WORKSTATION5|Security                            |4689   |4    |
|WORKSTATION5|Security                            |4688   |4    |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|5      |4    |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|1      |4    |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|11     |3    |
|WORKSTATION5|Security                            |5158   |2    |
|WORKSTATION5|Security                            |5156   |2    |
|WORKSTATION5|Security                            |1102   |1    |
|WORKSTATION5|System                              |7009   |1    |
|WORKSTATION5|Security                            |4673   |1    |
|WORKSTATION5|System                              |7000   |1    |
|WORKSTATION5|System                              |104    |1    |
+------------+------------------------------------+-------+-----+
only showing top 20 rows