Signed Scripts Proxy Execution – T1216

What is MITRE ATT&CK? Review this MITRE ATTACK Framework summary.

Introduction

Many organizations trust all signed code from Microsoft. Unfortunately, there are many ways in which attackers can use this trust against them. Previously, we covered using signed binaries to perform malicious activities. In this post, we will be covering how to use signed scripts.

There are not as many known application whitelist bypasses that are signed scripts. Organizations should review these scripts and if they are not needed they can be restricted.

Using signed scripts can be used to perform similar malicious activities as the signed binaries.

It’s important to consider the latest versions of these scripts but also previous version as well since uploading an older version of a signed script by Microsoft might not trigger an alert, as compared to downloading a malicious script. Gold versions of Win7 and Win10 provider ideal places to start looking for these older versions of such scripts.

Attack Demonstration

SyncAppvPublishingServe

Just like we saw in the Signed Binaries post, there exists a script that can be used to execute without using PowerShell. The script SyncAppvPublishingServe.vbs is basically the as a SyncAppvPublishingServe.exe. Its usage is shown below:

signed scripts codeblock results

c:windowssystem32SyncAppvPublishingServe.vbs “n;Start-Process calc”

signed scripts codeblock results

Windows 10 Version 1803 Fully patched. July 3, 2018

signed scripts codeblock results

An older version of the same script signed by Microsoft 2:36 AM 1/3/2018.

Manage-bde.wsf

Another script that can be used to execute code for us is manage-bde.wsf.

signed scripts codeblock results

signed scripts

Mitigations

Application whitelisting can be used to block or alert on the usage of signed scripts which could be used to execute malicious code.

References

icon-praetorian-

See Praetorian in Action

Request a 30-day free trial of our Managed Continuous Threat Exposure Management solution.

About the Authors

Catch the Latest

Catch our latest exploits, news, articles, and events.

Ready to Discuss Your Next Continuous Threat Exposure Management Initiative?

Praetorian’s Offense Security Experts are Ready to Answer Your Questions

0 Shares
Copy link