TMAegisBeta
Thêm quy tắc cho freebsd

FreeBSD

TMA-FREEBSD-6.1.7

Ensure SUID and SGID files are reviewed

CaoCấp 1Xem xét thủ côngfreebsd

Mô tả

The owner of a file can set the file's permissions to run with the owner's or group's permissions, even if the user running the program is not the owner or a member of the group. The most common reason for a SUID or SGID program is to enable users to perform functions (such as changing their password) that require root privileges.

Cách kiểm tra

Phương pháp kiểm tra: Xem xét thủ công

Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --include-manual.

Run the following script to generate a list of SUID and SGID files: #!/bin/sh echo "Generating a list of SUID and SGID files..." # Find SUID files echo "SUID Files:" find / -xdev -type f -perm -4000 -print # Find SGID files echo "SGID Files:" find / -xdev -type f -perm -2000 -print Note: on systems with a large number of files, this may be a long-running process.

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

Ensure that no rogue SUID or SGID programs have been introduced into the system. Review the files returned by the action in the Audit section and confirm the integrity of these binaries.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
freebsdpermissions
Tham chiếu
CIS FreeBSD 14 Benchmark v1.0.1 - 6.1.7 Ensure SUID and SGID files are reviewed