Sigma Rule Library

PwnKit Local Privilege Escalation

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

View on GitHubOpen raw file

Detection logic

keywords

"|all":
  - pkexec
  - The value for environment variable XAUTHORITY contains suspicious content
  - "[USER=root] [TTY=/dev/pts/0]"

Condition

keywords

Raw 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

False positives

  • Unknown

References

Similar rules