Runscripthelper.exe
Execute target PowerShell script
Full path
C:\Windows\WinSxS\amd64_microsoft-windows-u..ed-telemetry-client_31bf3856ad364e35_10.0.16299.15_none_c2df1bba78111118\Runscripthelper.exe
C:\Windows\WinSxS\amd64_microsoft-windows-u..ed-telemetry-client_31bf3856ad364e35_10.0.16299.192_none_ad4699b571e00c4a\Runscripthelper.exeCommands
Bypass constrained language mode and execute Powershell script
runscripthelper.exe surfacecheck \\?\{PATH_ABSOLUTE:.txt} {PATH_ABSOLUTE:folder}Execute the PowerShell script with .txt extension
os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10
Detection
- Sigma https://github.com/SigmaHQ/sigma/blob/c04bef2fbbe8beff6c7620d5d7ea6872dbe7acba/rules/windows/process_creation/proc_creation_win_lolbin_runscripthelper.yml
- BlockRule https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/microsoft-recommended-block-rules
- IOCEvent ID 4104 - Microsoft-Windows-PowerShell/Operational
- IOCEvent ID 400 - Windows PowerShell
Resources
acknowledgement: Matt Graeber @mattifestation