/usr/share/audit/sample-rules
This group of rules are meant to be used with the augenrules program. The augenrules program expects rules to be located in /etc/audit/rules.d/ The rules will get processed in a specific order based on their natural sort order. To make things easier to use, the files in this directory are organized into groups with the following meanings: 10 - Kernel and auditctl configuration 20 - Rules that could match general rules but we want a different match 30 - Main rules 40 - Optional rules 50 - Server Specific rules 70 - System local rules 90 - Finalize (immutable) There is one set of rules, 31-privileged.rules, that should be regenerated. There is a script in the comments of that file. You can uncomment the commands and run the script and then rename the resulting file. The rules are not meant to be used all at once. They are pieces of a policy that should be thought out and individual files copied to /etc/audit/rules.d/ For example, if you wanted to set a system up in the STIG configuration, copy rules 10-base-config, 30-stig, 31-privileged, and 99-finalize. You can add more if you like. Also, not all arches have the same syscalls. It is expected that the rules be fine tuned for the arch they are deployed on. For example, aarch64 does not have the open syscall. It should just be deleted from the rules. Once you have the rules in the rules.d directory, you can load them by running augenrules --load
.
Edit
..
Edit
10-base-config.rules
Edit
10-no-audit.rules
Edit
11-loginuid.rules
Edit
12-cont-fail.rules
Edit
12-ignore-error.rules
Edit
20-dont-audit.rules
Edit
21-no32bit.rules
Edit
22-ignore-chrony.rules
Edit
23-ignore-filesystems.rules
Edit
30-nispom.rules
Edit
30-ospp-v42-1-create-failed.rules
Edit
30-ospp-v42-1-create-success.rules
Edit
30-ospp-v42-2-modify-failed.rules
Edit
30-ospp-v42-2-modify-success.rules
Edit
30-ospp-v42-3-access-failed.rules
Edit
30-ospp-v42-3-access-success.rules
Edit
30-ospp-v42-4-delete-failed.rules
Edit
30-ospp-v42-4-delete-success.rules
Edit
30-ospp-v42-5-perm-change-failed.rules
Edit
30-ospp-v42-5-perm-change-success.rules
Edit
30-ospp-v42-6-owner-change-failed.rules
Edit
30-ospp-v42-6-owner-change-success.rules
Edit
30-ospp-v42.rules
Edit
30-pci-dss-v31.rules
Edit
30-stig.rules
Edit
31-privileged.rules
Edit
32-power-abuse.rules
Edit
40-local.rules
Edit
41-containers.rules
Edit
42-injection.rules
Edit
43-module-load.rules
Edit
44-installers.rules
Edit
70-einval.rules
Edit
71-networking.rules
Edit
99-finalize.rules
Edit
README-rules
Edit