Redteam: Generate evasive LNK dropping Mythic implant DLL with MacroPack Pro

preview_player
Показать описание
As exploiting Office formats became harder, malicious Windows shortcuts (LNKs) usage increased upon threat actors and redteams.
MacroPack Pro implements advanced LNK generation features. Including multiple options and customization possibilities.
In this demo, we use Mythic C2 with merlin agent as our second stage.

This video demonstrates the next features:
- Weaponized shellcode loader DLL generated by ShellcodePack
- Generation of LNK dropping and running the DLL with MacroPack Pro
- LNK with advanced evasive method (no use of Powershell, VBscript, Certutil, etc)
- PDF icon spoofing
- Compatibility with Mythic C2 Framework
- Bypass of Defender Antivirus (note this scenario was successfully tested on multiple Antivirus and EDRs)


==== Prerequisite ====

As a prerequisite. You need to setup a Mythic C2 environment.

Warning: Mythic takes 20 Giga Bytes of disk space.

==== Here is the ShellcodePack command line used to generate the dropped DLL ====

Option details:
* -i option to pass the raw shellcode we want
* The -G option is there to generate a new payload (a DLL file).
* --bypass option automatically expands into multiple options obfuscating and weaponizing the payload
* --dll-export=sc_main --dll-run-shellcode-from-dll-export are necessary to run the DLL


==== Here is the MacroPack Pro command line equivalent to the selected GUI options ====

Option details:
* The -G option is there to generate a new payload
* --template=EMBED_RUN MacroPack Pro template to drop and run an embeded executable, dll, or script
* --lnk-run-method option is used to select how the LNK works
* --bat-embed-method is used to select the method used to drop the embeded DLL
* -e option to select the generated dll as input file

=========================================================================

MacroPack Pro and ShellcodePack are commercial tool for professional pentesters and redteamers.

Mythic is a cross-platform, modular, redteaming open source C2 framework.

Рекомендации по теме
Комментарии
Автор

but does macro pack protects the spawned agent after execution ? is the agent process unhooked? and would post ex actions like taking screenshot risky after getting beacon back? thanks in advance.

digitallova
Автор

Is it possible to embed an .bat into an .lnk or.pdf? When yes how? Interesting videos btw.

ChesterHunting