TMAegisBeta
Thêm quy tắc cho freebsd

FreeBSD

TMA-FREEBSD-4.3.4

Ensure users must provide password for escalation

CaoCấp 2Tự độngfreebsd

Mô tả

The operating system must be configured so that users must provide a password for privilege escalation. Without re-authentication, users may access resources or perform tasks for which they do not have authorization. When operating systems provide the capability to escalate a functional capability, it is critical the user re-authenticate. 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
c=$(cat /usr/local/etc/sudoers /usr/local/etc/sudoers.d/* 2>/dev/null); [ -n "$c" ] || exit 1; printf '%s\n' "$c" | grep -E "^[^#].*NOPASSWD" | head -n 5 | grep . || echo compliant
Đầ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

Based on the outcome of the audit procedure, use visudo -f <PATH TO FILE> to edit the relevant sudoers file. Remove any line with occurrences of NOPASSWD tags in the file.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
freebsdpassword-policy
Tham chiếu
CIS FreeBSD 14 Benchmark v1.0.1 - 4.3.4 Ensure users must provide password for escalation

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 freebsd --level 2