TMAegis
Thêm quy tắc cho aix

TMA-AIX-4.4.1.3

Ensure NFS client mounts include nosuid and nodev options

CaoCấp 1Tự độngaix

Mô tả

When using NFS shares ensure that suid/sgid program execution and/or access to system devices via permissions set on any mounted NFS filesystem are disabled. Setting the nosuid and nodev options means that files on the NFS server cannot be used to gain privileged access on the client. 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

shell
command -v lsnfsmnt >/dev/null 2>&1 || exit 1; out=$( { lsnfsmnt -l | egrep -v "^Name" | grep -v nosuid; lsnfsmnt -l | egrep -v "^Name" | grep -v nodev ; } 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

For each NFS mount, disable suid programs and device access. List the current NFS mounts: lsnfsmnt -l | /usr/bin/egrep -v "^Name" | /usr/bin/grep -v "nosuid" | while read remote server mntpnt rest; do chnfsmnt -d ${remote} -f ${mntpnt} -h ${server} -y -z done lsnfsmnt -l | /usr/bin/egrep -v "^Name" | /usr/bin/grep -v "nodev" | while read remote server mntpnt rest; do chnfsmnt -d ${remote} -f ${mntpnt} -h ${server} -y -z done NOTE: The NFS mount needs is re-mounted automatically by chnfsmnt. NOTE: The second loop might not do anything as both loops set both nosuid (-y) and nodev (-z)

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
aixnetwork
Tham chiếu
CIS IBM AIX 7 Benchmark v1.2.0 - 4.4.1.3 Ensure NFS client mounts include nosuid and nodev options

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.

shell
tmaegis scan --target aix