TTPwire Vol. 1 · MITRE ATT&CK·Tagged

← All stories

Black Hills InfoSec

Red Teamer’s Cookbook: BYOI (Bring Your Own Interpreter)

BHIS · 2020-02-03 · Read original ↗

ATT&CK techniques detected

8 predictions
T1059.001PowerShell
100%
"with technologies like etw. - application whitelisting to disable the use of. net scripting languages present by default on windows and the executables which allow users to interface with them. - enabling all the standard mitigations that would prevent traditional powershell trad…"
T1055.001Dynamic-link Library Injection
99%
"can interpret and execute. by compiling any. net language, you wind up with a. net assembly in the form of an executable or dll. a few key points about. net assemblies : - the. net assembly format is different than. exe ’ s or. dll ’ s generated via un - managed languages. ( e. g…"
T1059.001PowerShell
99%
"##s from clearscript ’ s jscript / vbscript engine. for an example of this, you can take a look at the invoke - clearscript. ps1 script from the offensivedlr repository : this script embeds the clearscript jscript engine within a posh script and then executes some jscript code th…"
T1059.001PowerShell
97%
"is “ host ” ( embed ) one in a. net language which is present by default in windows ( such as c # or even powershell ) and bam! we ’ re back to the good ol ’ days of powershell style tradecraft. one thing i ’ d like to underline : this isn ’ t by any means a novel concept, as a m…"
T1059.001PowerShell
96%
"how to potentially make this powershell v2 compatible and return the output of our boo payload to the c2 server. let ’ s host our source. boo file which will contain our payload server side using python ’ s built - in http server, and then run it again : you can see this time our…"
T1055.001Dynamic-link Library Injection
84%
"lot of. net newbies. the most common “ flavors ” are : -. net framework -. net core the “. net framework ” is the original implementation of. net and has been around forever, this particular implementation is extremely specific to windows and tightly integrated within the os itse…"
T1059.001PowerShell
44%
"will trigger defender because we ’ re using powershell as the “ host ” language : whenever a powershell script gets executed, it ’ ll be passed to amsi. amsi is going to see our boo source code since it ’ s in the powershellscript and flag on it. what we need to do is separate ou…"
T1059.001PowerShell
36%
"and controls in place in order to test your payload before actually executing it on the target endpoint. we ’ re going to use the amsi test sample string to simulate “ malicious code ” that we want to execute. this string is guaranteed to trigger defender / amsi, meaning, if this…"

Summary

Marcello Salvati // This fairly lengthy blog post aims at providing Red Team Operators ideas on how to incorporate BYOI tradecraft into their own custom tooling and get those creative […]

The post Red Teamer’s Cookbook: BYOI (Bring Your Own Interpreter) appeared first on Black Hills Information Security, Inc..