Catalog LOLBAS

LOL · Binary

Eventvwr.exe

2 techniques WindowsLOLBAS GPL-3.0

UAC Bypass

UAC BypassPrivilege Escalation Windows

During startup, eventvwr.exe checks the registry value `HKCU\Software\Classes\mscfile\shell\open\command` for the location of mmc.exe, which is used to open the eventvwr.msc saved console file. If the location of another binary or script is added to this registry value, it will be executed as a high-integrity process without a UAC prompt being displayed to the user.

Use Execute a binary or script as a high-integrity process without a UAC prompt.

eventvwr.exe
Context
user
Native
UAC Bypass
Detection
IOC: eventvwr.exe launching child process other than mmc.exe
IOC: Creation or modification of the registry value HKCU\Software\Classes\mscfile\shell\open\command

UAC Bypass

UAC BypassPrivilege Escalation Windows

During startup, eventvwr.exe uses .NET deserialization with `%LOCALAPPDATA%\Microsoft\EventV~1\RecentViews` file. This file can be created using https://github.com/pwntester/ysoserial.net

Use Execute a command to bypass security restrictions that limit the use of command-line interpreters.

ysoserial.exe -o raw -f BinaryFormatter - g DataSet -c "{CMD}" > RecentViews & copy RecentViews %LOCALAPPDATA%\Microsoft\EventV~1\RecentViews & eventvwr.exe
Context
admin
Native
UAC Bypass
Detection
IOC: eventvwr.exe launching child process other than mmc.exe
IOC: Creation or modification of the registry value HKCU\Software\Classes\mscfile\shell\open\command