BIND DNS
TMA-BIND-2.3
Lock the BIND User Account
OrtaDüzey 1Otomatikbind
Açıklama
The user account under which BIND runs should not have a valid password, but should be locked. The audit reads /etc/shadow (root) and requires the password field of the named (or bind) account to start with ! or * (locked, what passwd -S reports as LK/L).
Nasıl denetlenir
Denetim yöntemi: Kabuk komutu
shell
[ -r /etc/shadow ] || exit 1
bad=0; n=0
for u in named bind; do
p=$(awk -F: -v u=$u '$1==u{print $2; f=1} END{if(!f) print "-"}' /etc/shadow)
[ "$p" = - ] && continue; n=1
case "$p" in '!'*|'*'*) ;; *) echo "$u account is not locked"; bad=1 ;; esac
done
[ "$n" -eq 1 ] || { echo 'no named/bind account in /etc/shadow'; exit 1; }
[ "$bad" -eq 0 ] && echo compliant- Beklenen çıktı
compliant
Nasıl düzeltilir
Düzeltme yöntemi: Kılavuz veya altyapı yaması
To remediate, lock the named account using the password command with the lock option as shown below. # passwd -l named Locking password for user named. passwd: Success
Özellikler
- İşletim sistemleri
- Herhangi biri
- Etiketler
- binddnspermissions
- Referans
- CIS ISC BIND DNS Server 9.11 Benchmark v1.0.0 - 2.3 Lock the BIND User Account
Bu ana makineyi denetle
Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.
shell
tmaegis scan --target bind