Skip to content

Commit

Permalink
Add sudoers to some base audit rules
Browse files Browse the repository at this point in the history
  • Loading branch information
RH-steve-grubb committed Feb 11, 2021
1 parent 21ce3d1 commit faa27bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Upgrade libev to 4.33
- Add auparse_new_buffer function to auparse library
- Use the select libev backend unless aggregating events
- Add sudoers to some base audit rules

3.0
- Generate checkpoint file even when no results are returned (Burn Alting)
Expand Down
4 changes: 4 additions & 0 deletions rules/30-ospp-v42.rules
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@

## Privilege escalation via su or sudo. This is entirely handled by pam.

## Watch for configuration changes to privilege escalation.
-a always,exit -F path=/etc/sudoers -F perm=wa -F key=special-config-changes
-a always,exit -F dir=/etc/sudoers.d/ -F perm=wa -F key=special-config-changes

## Audit log access
-a always,exit -F dir=/var/log/audit/ -F perm=r -F auid>=1000 -F auid!=unset -F key=access-audit-trail
## Attempts to Alter Process and Session Initiation Information
Expand Down
4 changes: 4 additions & 0 deletions rules/30-pci-dss-v31.rules
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
## logging. The pam config below should be placed into su and sudo pam stacks.
## session required pam_tty_audit.so disable=* enable=root

## Watch for configuration changes to privilege escalation.
-a always,exit -F path=/etc/sudoers -F perm=wa -F key=10.2.2-priv-config-changes
-a always,exit -F dir=/etc/sudoers.d/ -F perm=wa -F key=10.2.2-priv-config-changes

## 10.2.3 Access to all audit trails.
-a always,exit -F dir=/var/log/audit/ -F perm=r -F auid>=1000 -F auid!=unset -F key=10.2.3-access-audit-trail
-a always,exit -F path=/usr/sbin/ausearch -F perm=x -F key=10.2.3-access-audit-trail
Expand Down

0 comments on commit faa27bb

Please sign in to comment.