module

Regsvr32.exe (.sct) Application Whitelisting Bypass Server

Disclosed
Apr 19, 2016
Created
May 30, 2018

Description

This module simplifies the Regsvr32.exe Application Whitelisting Bypass technique.
The module creates a web server that hosts an .sct file. When the user types the provided regsvr32
command on a system, regsvr32 will request the .sct file and then execute the included PowerShell command.
This command then downloads and executes the specified payload (similar to the web_delivery module with PSH).
Both web requests (i.e., the .sct file and PowerShell download and execute) can occur on the same port.

Authors

Casey Smith
Trenton Ivey

Platform

Windows

Architectures

x86, x64

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/windows/misc/regsvr32_applocker_bypass_server
msf exploit(regsvr32_applocker_bypass_server) > show targets
...targets...
msf exploit(regsvr32_applocker_bypass_server) > set TARGET < target-id >
msf exploit(regsvr32_applocker_bypass_server) > show options
...show and set options...
msf exploit(regsvr32_applocker_bypass_server) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.