Last active
November 18, 2016 23:50
-
-
Save mstemm/06c010eb23aed2ebf970d8ca758e710f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Alert whenever anyone performs the mount() system call. | |
-a always,exit -S mount | |
# Alert whenever anyone performs an unlink() for a file below /usr/bin | |
-a always,exit -S unlink -S unlinkat -F dir=/usr/bin -F success=1 | |
# Watch all activity related to /etc/shadow | |
# -k puts this rule and the following rule in a group | |
-w /etc/shadow -p wa -k passwd_mgmt | |
# Watch any invocation of /usr/bin/passwd | |
-w /usr/bin/passwd -p x -k passwd_mgmt | |
# Lock this configuration so it can't be changed. | |
-e 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment