action: global
title: UAC Bypass via Event Viewer
status: experimental
description: Detects UAC bypass method using Windows event viewer
references:
    - https://enigma0x3.net/2016/08/15/fileless-uac-bypass-using-eventvwr-exe-and-registry-hijacking/
    - https://www.hybrid-analysis.com/sample/e122bc8bf291f15cab182a5d2d27b8db1e7019e4e96bb5cdbd1dfe7446f3f51f?environmentId=100
author: Florian Roth
date: 2017/03/19
modified: 2020/09/06
tags:
    - attack.defense_evasion
    - attack.privilege_escalation
    - attack.t1088 # an old one
    - attack.t1548.002
    - car.2019-04-001
falsepositives:
    - unknown
level: critical
---
id: 7c81fec3-1c1d-43b0-996a-46753041b1b6
logsource:
    product: windows
    category: registry_event
detection:
    methregistry:
        TargetObject|startswith: 'HKU\'
        TargetObject|endswith: '\mscfile\shell\open\command'
    condition: methregistry
---
id: be344333-921d-4c4d-8bb8-e584cf584780
logsource:
    category: process_creation
    product: windows
detection:
    methprocess:
        ParentImage|endswith: '\eventvwr.exe'
    filterprocess:
        Image|endswith: '\mmc.exe'
    condition: methprocess and not filterprocess
fields:
    - CommandLine
    - ParentCommandLine
