T1216 - Signed Script Proxy Execution

Description from ATT&CK

Adversaries may use trusted scripts, often signed with certificates, to proxy the execution of malicious files. Several Microsoft signed scripts that have been downloaded from Microsoft or are default on Windows installations can be used to proxy execution of other files.(Citation: LOLBAS Project) This behavior may be abused by adversaries to execute malicious files that could bypass application control and signature validation on systems.(Citation: GitHub Ultimate AppLocker Bypass List)

Atomic Tests


Atomic Test #1 - SyncAppvPublishingServer Signed Script PowerShell Command Execution

Executes the signed SyncAppvPublishingServer script with options to execute an arbitrary PowerShell command. Upon execution, calc.exe will be launched.

Supported Platforms: Windows

auto_generated_guid: 275d963d-3f36-476c-8bef-a2a3960ee6eb

Inputs:

| Name | Description | Type | Default Value | |——|————-|——|—————| | command_to_execute | A PowerShell command to execute. | string | Start-Process calc|

Attack Commands: Run with
1
command_prompt
!

C:\windows\system32\SyncAppvPublishingServer.vbs "\n;#{command_to_execute}"



Atomic Test #2 - manage-bde.wsf Signed Script Command Execution

Executes the signed manage-bde.wsf script with options to execute an arbitrary command.

Supported Platforms: Windows

auto_generated_guid: 2a8f2d3c-3dec-4262-99dd-150cb2a4d63a

Inputs:

| Name | Description | Type | Default Value | |——|————-|——|—————| | command_to_execute | A command to execute. | path | %windir%\System32\calc.exe|

Attack Commands: Run with
1
command_prompt
!

set comspec=#{command_to_execute}
cscript %windir%\System32\manage-bde.wsf

Cleanup Commands:

set comspec=%windir%\System32\cmd.exe