Rule ID
SV-45599r2_rule
Version
V1R12
CCIs
To protect the integrity of scheduled system jobs and prevent malicious modification to these jobs, crontab files must be secured.
Check the mode of scripts in cron job directories.
ls -lL /etc/cron.{d,daily,hourly,monthly,weekly}
If any cron script has a mode more permissive than 0700, this is a finding.Change the mode of the cron scripts. # chmod go-rwx /etc/cron.d/* /etc/cron.daily/* /etc/cron.hourly/* /etc/cron.monthly/* /etc/cron.weekly/*