IBM AIX
TMA-AIX-4.1.2.8
Ensure access on /var/spool/cron/crontabs is configured
Mô tả
The /var/spool/cron/crontabs directory contains all of the crontabs for the users on the system. The /var/spool/cron/crontabs directory contains all of the crontabs for the users on the system. Crontab files present a security problem because they are run by the cron daemon, which runs with super user rights. Audit: automated read-only check derived from the CIS audit procedure; it prints "compliant" when the control is met.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
command -v find >/dev/null 2>&1 || exit 1; [ -d /var/spool/cron/crontabs ] || exit 1; out=$( { find /var/spool/cron/crontabs -type d -prune \( -perm -4 -o -perm -2 -o -perm -1 -o -perm -200000000 \) -o ! -user bin -o ! -group cron; find /var/spool/cron/crontabs \( -perm -4 -o -perm -2 -o -perm -1 -o -perm -200000000 \) -o ! -group cron; trustchk -n /var/spool/cron/crontabs >/dev/null 2>&1 || echo trustchk failed ; } 2>/dev/null ); [ -z "$out" ] && echo compliant || printf '%s\n' "$out" | head -n 20- Đầu ra mong đợi
compliant
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
Use the following script to apply settings to /var/spool/cron/crontabs: #!/usr/bin/ksh -e #; remove any extended ACL information echo | aclput /var/spool/cron/crontabs #; remove other access from all chmod -R o= /var/spool/cron/crontabs #; set UID:GID to bin:cron to `/var/spool/cron/crontabs` and correct modes on directory and files within directory chown bin:cron /var/spool/cron/crontabs chgrp -R cron /var/spool/cron/crontabs #; set modes on directory and files within directory chmod ug=rwx,o= /var/spool/cron/crontabs chmod a-w /var/spool/cron/crontabs #; add or update entry in TCB trustchk -a /var/spool/cron/crontabs size=VOLATILE >/dev/null 2>&1 || trustchk -u /var/spool/cron/crontabs owner=bin group=cron mode=770
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- aixpermissions
- Tham chiếu
- CIS IBM AIX 7 Benchmark v1.2.0 - 4.1.2.8 Ensure access on /var/spool/cron/crontabs is configured
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
tmaegis scan --target aix