TMAegis
bind 관련 규칙 더 보기

TMA-BIND-2.2

Give the BIND User Account an Invalid Shell

보통레벨 1자동bind

설명

The BIND user account, named by default, must not be used as a regular login account, and should be assigned an invalid or nologin shell to ensure that the account cannot be used to login. The audit reads /etc/passwd and requires the named (or bind) account shell to be /sbin/nologin, /bin/false or /dev/null.

점검 방법

감사 방식: 셸 명령

shell
bad=0; n=0
for u in named bind; do
  s=$(awk -F: -v u=$u '$1==u{print $7}' /etc/passwd) || exit 1
  [ -n "$s" ] || continue; n=1
  case "$s" in /sbin/nologin|/usr/sbin/nologin|/bin/false|/usr/bin/false|/dev/null) ;; *) echo "$u shell $s"; bad=1 ;; esac
done
[ "$n" -eq 1 ] || { echo 'no named/bind account'; exit 1; }
[ "$bad" -eq 0 ] && echo compliant
예상 출력
compliant

조치 방법

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

Change the named account to use the nologin shell as shown: # chsh -s /sbin/nologin named

속성

운영 체제
모두
태그
binddnspermissions
참고 자료
CIS ISC BIND DNS Server 9.11 Benchmark v1.0.0 - 2.2 Give the BIND User Account an Invalid Shell

이 호스트 점검하기

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

shell
tmaegis scan --target bind