TMAegis
ros のその他のルール

TMA-ROS1-5.2.11

Ensure SSH PermitEmptyPasswords is disabled

高レベル 1自動ros

説明

The PermitEmptyPasswords parameter specifies if the SSH server allows login to accounts with empty password strings. The audit requires PermitEmptyPasswords no. The audit reads the effective sshd configuration (sshd -T, root). Host-level control from the CIS ROS Melodic benchmark (Ubuntu 18.04 robot hosts); run as root.

チェック方法

監査方法: シェルコマンド

shell
command -v sshd >/dev/null 2>&1 || exit 1
out=$(sshd -T -C user=root -C host="$(hostname)" -C addr="$(hostname -I 2>/dev/null | cut -d' ' -f1)" 2>/dev/null) || out=$(sshd -T 2>/dev/null) || exit 1
v=$(printf '%s\n' "$out" | awk 'tolower($1)=="permitemptypasswords"{print tolower($2); exit}')
case "$v" in no) echo compliant ;; *) echo "PermitEmptyPasswords ${v:-unset}" ;; esac
期待される出力
compliant

修正方法

修正方法: ガイダンスまたは IaC パッチ

Edit the /etc/ssh/sshd_config file to set the parameter as follows: PermitEmptyPasswords no

プロパティ

オペレーティングシステム
すべて
タグ
rosros1melodicaccess-control
参照
CIS ROS Melodic Benchmark v1.0.0 - 5.2.11 Ensure SSH PermitEmptyPasswords is disabled

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target ros