PwnKit Local Privilege Escalation

testhigh
log source: linux · authauthor Sreemandate 2022-01-26
01

description

What this is, in brief.

Detects potential PwnKit exploitation CVE-2021-4034 in auth logs

02

tags

attack.privilege-escalationattack.t1548.001detection.emerging-threatscve.2021-4034
03

rule source (YAML)

title: PwnKit Local Privilege Escalation
id: 0506a799-698b-43b4-85a1-ac4c84c720e9
status: test
description: Detects potential PwnKit exploitation CVE-2021-4034 in auth logs
references:
    - https://twitter.com/wdormann/status/1486161836961579020
author: Sreeman
date: 2022-01-26
modified: 2024-09-11
tags:
    - attack.privilege-escalation
    - attack.t1548.001
    - detection.emerging-threats
    - cve.2021-4034
logsource:
    product: linux
    service: auth
detection:
    keywords:
        '|all':
            - 'pkexec'
            - 'The value for environment variable XAUTHORITY contains suspicious content'
            - '[USER=root] [TTY=/dev/pts/0]'
    condition: keywords
falsepositives:
    - Unknown
level: high
04

detects techniques (1)

ATT&CK techniques this enables or maps to.

05

references

External citations — patches, advisories, analysis.