heroui logo

PwnKit Local Privilege Escalation

Sigma Rules

View Source
Summary
This detection rule is focused on identifying potential exploitation of the PwnKit vulnerability, which is tracked as CVE-2021-4034. This vulnerability affects the pkexec command, which allows users to execute commands with elevated privileges. Attackers can exploit vulnerabilities like PwnKit to gain unauthorized access to the root user privileges on Linux systems. The rule analyzes authentication logs for specific keywords that are characteristic of PwnKit exploitation attempts. Notable indicators include unusual entries relating to `pkexec`, a suspicious value for the `XAUTHORITY` environment variable, and logged activity showing the root user with a corresponding tty session, which could indicate unauthorized escalation attempts. The detection is configured to trigger upon the presence of these keywords, thereby alerting administrators to potentially malicious activity.
Categories
  • Linux
Data Sources
  • Logon Session
  • Application Log
Created: 2022-01-26