Hi Steve,
Based on our discussion above, I performed some analysis as to why we were seeing so many events. The reason seems to be due to the default rules being triggered every time a cron job runs. We have numerous cron jobs running per minute as a result of which multiple different events(LOGIN, USER_END,CRED_DISP etc) are generated each time a cron job runs. As we do not enable SELinux, disabling these thing use subj_type=crond_t is not a viable option.
1. I have tried the following way to exclude using msg_type and exe together and it seems to work.
-a exclude,always -F msgtype=MAC_IPSEC_EVENT -F exe=/usr/sbin/cron
-a exclude,always -F msgtype=USER_AUTH -F exe=/usr/sbin/cron
-a exclude,always -F msgtype=USER_ACCT -F exe=/usr/sbin/cron
-a exclude,always -F msgtype=CRED_REFR -F exe=/usr/sbin/cron
-a exclude,always -F msgtype=CRED_DISP -F exe=/usr/sbin/cron
-a exclude,always -F msgtype=CRED_ACQ -F exe=/usr/sbin/cron
-a exclude,always -F msgtype=USER_START -F exe=/usr/sbin/cron
-a exclude,always -F msgtype=USER_END -F exe=/usr/sbin/cron
-a exclude,always -F msgtype=SERVICE_START -F exe=/usr/sbin/cron
Just want to make sure there is nothing I am missing here and that this only excludes the msg types for the cron executable.
2. Apart from these messages, there is a LOGIN message that gets generated each time a cron runs. Eventhough, the LOGIN message in auditd does not have an exe field, the following statement surprisingly seems to be working.
-a exclude,always -F msgtype=LOGIN -F exe=/usr/sbin/cron
I can still see LOGIN messages for other users but the cron LOGIN messages seem to be suppressed. Could you provide some detail as to how this is happening and is the expected result.
3. Is there a better way to suppress these cron messages that I am not considering apart from the SELinux option mentioned.
Thank You.