PowerShell Execution from WinGet Configuration Remoting Server
Description
Identifies PowerShell script execution where the hosting process is ConfigurationRemotingServer.exe (the WinGet Configuration remoting worker). This may indicate the abuse of the WinGet Configuration COM API to run attacker-controlled DSC through Microsoft-signed binaries.
Query · eql
api where process.name : "ConfigurationRemotingServer.exe" and
process.Ext.api.name == "AmsiScanBuffer" and
process.Ext.api.parameters.app_name == "PowerShell" and
not process.Ext.api.parameters.buffer in ("$false", "$PSHome") and
not process.Ext.api.parameters.content_name :
("?:\\Users\\*\\AppData\\Local\\Microsoft\\WinGet\\Configuration\\Modules\\PSDesiredStateConfiguration\\*.psm1",
"?:\\Program Files\\WindowsApps\\Microsoft.DesktopAppInstaller_*.psm1") and
not (process.Ext.api.parameters.size >= 20000 and process.Ext.api.parameters.buffer : "################*Microsoft Corporation*##############*") and
not (process.Ext.api.parameters.size == 1782 and process.Ext.api.parameters.buffer : "*Localized MSFT_ScriptResource.strings.psd1*")