TMAegis
freebsd 관련 규칙 더 보기

FreeBSD

TMA-FREEBSD-4.3.4

Ensure users must provide password for escalation

높음레벨 2자동freebsd

설명

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.

점검 방법

감사 방식: 셸 명령

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
예상 출력
compliant

조치 방법

조치 방식: 가이드 또는 인프라 패치

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.

속성

운영 체제
모두
태그
freebsdpassword-policy
참고 자료
CIS FreeBSD 14 Benchmark v1.0.1 - 4.3.4 Ensure users must provide password for escalation

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target freebsd --level 2