01 / TRADECRAFT
2 examplesCommand reference
UAC Bypass2
EXAMPLE 01T1548.002
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.
COMMAND
eventvwr.exeEXAMPLE 02T1548.002
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
COMMAND
ysoserial.exe -o raw -f BinaryFormatter - g DataSet -c "{CMD}" > RecentViews & copy RecentViews %LOCALAPPDATA%\Microsoft\EventV~1\RecentViews & eventvwr.exe02 / ON DISK
Known paths
C:\Windows\System32\eventvwr.exeC:\Windows\SysWOW64\eventvwr.exe03 / DEFENSIVE INTELLIGENCE
5 resourcesDetection & indicators
- Sigmaproc_creation_win_uac_bypass_eventvwr.ymlgithub.com
- Sigmaregistry_set_uac_bypass_eventvwr.ymlgithub.com
- Sigmafile_event_win_uac_bypass_eventvwr.ymlgithub.com
- Elasticprivilege_escalation_uac_bypass_event_viewer.tomlgithub.com
- Splunkeventvwr_uac_bypass.ymlgithub.com
Indicators & detection notes
- 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
REFERENCE IMPLEMENTATIONS
Code samples
FURTHER READING
Research & resources
COMMUNITY RESEARCH
Acknowledgements
Matt Nelson@enigma0x3
Matt Graeber@mattifestation
Orange Tsai@orange_8361