| 1 | onsuccess: next_stage |
| 2 | #debug: true |
| 3 | filter: "evt.Parsed.program == 'pkexec'" |
| 4 | name: crowdsecurity/pkexec-logs |
| 5 | description: "Parse pkexec logs specifically for CVE-2021-4034" |
| 6 | pattern_syntax: |
| 7 | PWNKIT_XPL: '%{DATA:user}: The value for the SHELL variable was not found the /etc/shells file' |
| 8 | grok: |
| 9 | name: "PWNKIT_XPL" |
| 10 | apply_on: message |
| 11 | statics: |
| 12 | - meta: log_type |
| 13 | value: CVE-2021-4034-xpl |
| 14 | - meta: target_user |
| 15 | expression: "evt.Parsed.user" |