Categories: Windows

Windows Update Can Be Abused To Execute Malicious Files

Windows Update Can Be Abused To Execute Malicious Files

The Windows Update client has just been added to the list of living-off-the-land binaries (LoLBins) attackers can use to execute malicious code on Windows systems.

LoLBins are Microsoft-signed executables (pre-installed or downloaded) that can be abused by threat actors to evade detection while downloading, installing, or executing malicious code.

They can also be used by attackers in their efforts to bypass Windows User Account Control (UAC) or Windows Defender Application Control (WDAC) and to gain persistence on already compromised systems.

Malicious code execution using malicious DLLs

The WSUS / Windows Update client (wuauclt) is a utility located at %windir%\system32\ that provides users partial control over some of the Windows Update Agent’s functionality from the command-line.

It allows checking for new updates and installing them without having to use the Windows user interface but instead triggering them from a Command Prompt window.

Using the /ResetAuthorization option allows initiating a manual update check either on the locally configured WSUS server or via the Windows Update service according to Microsoft.

Also Read: A Look at the Risk Assessment Form Singapore Government Requires

However, MDSec researcher David Middlehurst discovered that wuauclt can also be used by attackers to execute malicious code on Windows 10 systems by loading it from an arbitrary specially crafted DLL with the following command-line options:

wuauclt.exe /UpdateDeploymentProvider [path_to_dll] /RunHandlerComServer
Image: David Middlehurst

As seen in the screenshot above, the Full_Path_To_DLL is the absolute path to the attacker’s specially crafted DLL file that would execute code on attach.

This defense evasion technique is categorized by MITRE ATT&CK as Signed Binary Proxy Execution via Rundll32 and it enables attackers to bypass anti-virus, application control, and digital certificate validation protection

In this case, it does it by executing malicious code from a DLL loaded using a signed-Microsoft binary, the Windows Update client (wuauclt).

After discovering that wuauclt can also be used as a LoLBin, Middlehurst also found sample using it in the wild.

Also Read: How to Send Mass Email Without Showing Addresses: 2 Great Workarounds

Microsoft recently updated the Windows 10 Microsoft Defender antivirus solution, ironically and quietly adding a way to download files (potentially malicious) onto Windows devices.

MpCmdRun help

Microsoft later removed the capability from MpCmdRun.exe (the Microsoft Antimalware Service Command Line Utility).

Last month, BleepingComputer also reported that the Microsoft Windows TCPIP Finger command can also be used as a file downloader and as a substitute command and control (C3) server for exfiltrating data.

Privacy Ninja

Recent Posts

Enhancing Website Security: The Importance of Efficient Access Controls

Importance of Efficient Access Controls that every Organisation in Singapore should take note of. Enhancing…

2 weeks ago

Prioritizing Security Measures When Launching Webpage

Prioritizing Security Measures When Launching a Webpage That Every Organisation in Singapore should take note…

2 weeks ago

The Importance of Regularly Changing Passwords for Enhanced Online Security

Importance of Regularly Changing Passwords for Enhance Online Security that every Organisation in Singapore should…

3 weeks ago

Mitigating Human Errors in Organizations: A Comprehensive Approach to Data Protection and Operational Integrity

Comprehensive Approach to Data Protection and Operational Integrity that every Organsiation in Singapore should know…

3 weeks ago

The Importance of Pre-Launch Testing in IT Systems Implementation

Here's the importance of Pre-Launch Testing in IT Systems Implementation for Organisations in Singapore. The…

4 weeks ago

Understanding Liability in IT Vendor Relationships

Understanding Liability in IT Vendor Relationships that every Organisation in Singapore should look at. Understanding…

1 month ago